473,666 Members | 2,047 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 RegKeyValue1Dot 1
DIM objShell
ReturnValue = FALSE
set objShell = WScript.CreateO bject("WScript. Shell")
ON ERROR RESUME NEXT
RegKeyValue1 = objShell.RegRea d
("HKEY_LOCAL_MA CHINE\SOFTWARE\ Microsoft\.NETF ramework\policy \v1.0\3705")
RegKeyValue1Dot 1 = objShell.RegRea d
("HKEY_LOCAL_MA CHINE\SOFTWARE\ Microsoft\.NETF ramework\policy \v1.1\4322")

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

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

The name of the installation is not "Company Installation.ex e" 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 752

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

Similar topics

88
12472
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
1529
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
2857
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 from the registry? Thanks
0
693
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 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: ...
1
2713
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 to correct the situation where ..NET is installed before IIS (as in a brand new installation of WinXP where ..NET is already loaded). My question is whether or not it is programmatically possible to determine who was installed first (or last) from...
2
3836
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 within a C++ application. Thanks
3
3542
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 , Is there any way to find this thing ? Waiting for ur quick response
0
1355
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 = MsiGetComponentPath(sProductCode.Trim, sComponentID, sPath, iLen) sProductCode is the Office 2003 Product Code, sComponentID is the Excel 2003 component ID. sPath would hold the path to excel.exe.
7
7617
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 (File.Exists(path)) - but for an assembly, of a particular version, etc in the GAC. I have googled this and failed to find anything useful. Thanks
0
8356
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8871
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8552
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8640
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7387
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6198
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5666
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4198
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2011
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.