How to Detect if .NET Framework is installed


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: How to Detect if .NET Framework is installed

  1. #1
    Join Date
    Aug 2004
    Location
    Orange, California
    Posts
    1,263

    How to Detect if .NET Framework is installed

    I tried to run my program on a clients machine and it crashed because the .NET Framework was not installed.

    I need to detect if .NET is not installed and prompt the user to install it.

    Now the main question is won't my program crash even before I can detect that the .NET Framework is not installed, since my program is a .NET program?

    I am using VB 2005...

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Hi, Ron: You are correct that you must use a non-.NET program to detect whether the .NET Framework is installed. Your setup program is an ideal place to do that: http://msdn.microsoft.com/en-us/library/aa480239.aspx
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Aug 2004
    Location
    Orange, California
    Posts
    1,263
    I am not allowed to use a setup program for this one app. Except for the .NET Framework itself, if it is not already installed.

    Is there anyway I can write a VB6 program that asks the user to install .NET if it is not there or starts my app otherwise?

    Again the vb6 app can't have a setup program. It just has to run?

  4. #4
    Join Date
    Aug 2004
    Location
    Orange, California
    Posts
    1,263
    Another Idea is there a way to create a setup program that just checks for and installs the .NET Framework, and nothing else?

    You see my program is going to be pre-installed on a USB Hard Drive. It needs to be able to run from there and no where else. So I don't want the users installing it, just running it from the USB Drive.

  5. #5
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    That should work, as long as you can be sure your users will have the VB6 runtime installed. You may find this thread helpful: http://www.bigresource.com/VB-Detect...CX77qL8rk.html
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  6. #6
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

Similar Threads

  1. Replies: 0
    Last Post: 05-28-2003, 10:34 AM
  2. .Net Framework
    By rbs in forum .NET
    Replies: 2
    Last Post: 02-10-2003, 07:29 AM
  3. Companies Using .NET
    By DotNet Programmer in forum .NET
    Replies: 207
    Last Post: 12-06-2001, 04:09 PM
  4. Replies: 0
    Last Post: 11-19-2001, 05:08 PM
  5. Replies: 2
    Last Post: 05-03-2001, 11:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center