|
-
Jun 17th, 2003, 12:44 PM
#1
Thread Starter
Member
Testing for .net framework installed
I need help writing a program that determines whether or not the .net framework is installed on a particular computer (the program is running on this computer, of course).
If it detects the presence of the .net framework, it runs one program (the installation wizard). If it doens't detect the .net framework, it starts another program (the installation program for the framework) after displaying a short message telling the user what it is doing.
-
Jun 17th, 2003, 12:59 PM
#2
Check to see if
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework
is in the registry.
-
Jun 17th, 2003, 01:19 PM
#3
Thread Starter
Member
Thanks!
Unfortunately, I am not skilled enough in a non-visual basic language to do anything with the registry. Could someone help with that?
-
Jun 17th, 2003, 01:22 PM
#4
Its irrelevant to .NET. You need to ask in the C++ forum.
-
Jun 17th, 2003, 10:03 PM
#5
Sleep mode
You don't have to write any program to check that , VS.NET Setup and Deployment Project can do it for you . VS.NET includes a launch condition in both Windows and Web setup projects to check for the .NET Framework's presence on the target OS. If it doesn't find the .NET runtime environment, it displays a dialog box prompting the user to execute the .NET Framework redistributable file you should include with your setup.
-
Jun 18th, 2003, 06:32 AM
#6
Member
Why build it when it's already been built? So, OK, pride may make you want to figure it out. But, in case you don't, here is something Microsoft built to do just what you wanted.
Microsoft .NET Framework Setup.exe Bootstrapper Sample
And FYI, I do believe that you can check the registry in VB.NET. I haven't actually tried it but I do know I read about it in one of my books.
Hope this helps.
Eagle Eye
"Programming is easy ... when you are done."
-
Sep 15th, 2005, 03:41 AM
#7
Frenzied Member
Re: Testing for .net framework installed
Erm... A little of topic and probably a little late, but...
Why would it matter in this case if you can look in the registry in .Net? (Yes, you can by the way.)
If you don't have the .Net Framework installed... How can you possibly run the program to see if is installed...
Easiest way to use .Net to check for the framework... Attempt to run the program... if you can't run it, then you don't have it installed. Just a little logic, but probably false knowing my luck.
Squirrelly1
Now happily married and still crankin' away at the keyboard.  Life is grand for a coder, no?
-
Sep 15th, 2005, 04:29 AM
#8
Frenzied Member
Re: Testing for .net framework installed
aren't u 2.5 years late for this
-
Sep 15th, 2005, 01:04 PM
#9
Frenzied Member
Re: Testing for .net framework installed
Like I said...
Erm... A little of topic and probably a little late, but...
I hadn't looked at the dates until after I posted... *Ooops*
But I'm still faced with this deployment **** as far as .Net and MDAC go, so between getting up to make coffee and thumbing through old threads, MY DAY IS PACKED!
Later,
Squirrelly1
Now happily married and still crankin' away at the keyboard.  Life is grand for a coder, no?
-
Sep 16th, 2005, 01:45 AM
#10
Member
Re: Testing for .net framework installed
True ... but that was in the morning b4 work and caffeine. Not to mention that it was over 2 years ago :-)
Eagle Eye
"Programming is easy ... when you are done."
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|