473,321 Members | 1,778 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,321 software developers and data experts.

Determine if .net is installed then do something about it.

I have written a vbs file to take care of this but I didn't know that
an autorun.inf could not use a vbs file. So I feel like I am caught
between a rock and a hard place.

Can anyone point me in the direction of how a free compiler for another
language that does not require .net to be installed so I can have a
valid Win32 application for the AutoRun to use. Just looking for a way
to create an exe that does this:

-------------------------------------------------------------------

DIM ReturnValue
DIM RegKeyValue1
DIM RegKeyValue1Dot1
DIM objShell
ReturnValue = FALSE
set objShell = WScript.CreateObject("WScript.Shell")
ON ERROR RESUME NEXT
RegKeyValue1 = objShell.RegRead
("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramew ork\policy\v1.0\3705")
RegKeyValue1Dot1 = objShell.RegRead
("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramew ork\policy\v1.1\4322")

If RegKeyValue1 <> "" then
ReturnValue = TRUE
Else
ReturnValue = FALSE
End If
If RegKeyValue1Dot1 <> "" then
ReturnValue = TRUE
Else
ReturnValue = FALSE
End If
If ReturnValue = FALSE then
MSGBox
objShell.Run "dotnetfx.exe"
Else
MSGBox(".Net Framework is installed and we will now install the NDemand
software.")
objShell.Run """Company Installation.exe"""
End If

-------------------------------------------------------------------

The name of the installation is not "Company Installation.exe" I just
changed it in case one of our customers does a search we really don't
want them to find this because it has our company name in the file
name.

Thanks in advance.

Sep 28 '05 #1
0 741

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

88
by: Mike | last post by:
Is there a way to determine what a user's default email client is? I read a post from 3 years ago that said no. I guess I'm hoping something has come along since then.
2
by: Shravan | last post by:
Hi, In my application I need to determine whether Excel is installed on my system or not. Can anybody tell me how to check that. Thanks, Shravan.
1
by: Tarren | last post by:
I have to write an auto patcher for all of the client pcs, but some are running different versions of office. How can I determine which version of Microsoft Office is installed? Do I get it...
0
by: Jon Turlington | last post by:
I have written a vbs file to take care of this but I didn't know that an autorun.inf could not use a vbs file. So I feel like I am caught between a rock and a hard place. Can anyone point me in...
1
by: PetersonMike | last post by:
One gets countless hits when searching for discussions on the need to install IIS before .NET so that ISAPI references are setup properly. It's also documented that one can run apsnet_regiis.exe...
2
by: Mike C# | last post by:
Hi all, What's the "best" way to determine an EXE file's DLL dependencies from within a program? I basically need to figure out which DLL's are required by an EXE like Dependency Walker, from...
3
by: balakrishnan.dinesh | last post by:
hi frnds How to determine the version of the MSXML installed on a computer and How to determine the version of the MSXML used by Internet Explorer through javascript code. Can anyone say me ,...
0
by: thought.contagion | last post by:
I need to determine if Excel 2007 is installed. For Office 2003, we had the component ID for Excel 2003 and could use the msi.dll to enumerate and that would tell us if it was installed: iRet...
7
by: Cramer | last post by:
I'm wondering if there is an easy way to programmatically determine if an assembly is installed in the GAC. This would be similar to our ability to easily determine if a file exists...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.