473,508 Members | 2,437 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.

Nov 22 '05 #1
0 687

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

Similar topics

18
2849
by: Christopher W. Douglas | last post by:
I am writing a VB.NET application in Visual Studio 2003. I have written a method that handles several events, such as closing a form and changing the visible status of a form. I have some code...
88
12319
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.
0
745
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...
2
1521
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
2842
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...
1
2702
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
3823
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
3533
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
1345
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
7612
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
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7321
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7488
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5045
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.