Framework 4.0 detection

Discussion in 'Programming General' started by Harlem9191, Apr 28, 2010.

Framework 4.0 detection
  1. Unread #1 - Apr 28, 2010 at 2:21 PM
  2. Harlem9191
    Joined:
    Mar 10, 2009
    Posts:
    81
    Referrals:
    0
    Sythe Gold:
    0

    Harlem9191 Member

    Framework 4.0 detection

    Hi
    I am a bit desperate for a C++ application that detects whether .Net Framework 4.0 is installed. Here is a dot print version of what I am looking for:

    • Application loads and detects whether Framework 4.0 is installed
    • If Framework 4.0 is installed then 'EliteSwitch.exe' is loaded from within the same folder as itself.
    • If Framework 4.0 isn't installed the web page where it is downloaded from is loaded in the user's browser.

    If anyone could help me do this then that would be great. I'm sure it isn't too hard to achieve, I just don't fancy spending hours of learning C++ to do this when i'm only using Basic at the moment. I have already found a bit of code that searches Framework 4.0, which can be found here. I don't have any idea how to do the rest.

    Thanks
     
  3. Unread #2 - Apr 28, 2010 at 10:35 PM
  4. Flaming Idiots
    Joined:
    Dec 22, 2005
    Posts:
    235
    Referrals:
    1
    Sythe Gold:
    0
    Two Factor Authentication User

    Flaming Idiots Active Member
    Visual Basic Programmers

    Framework 4.0 detection

    I made you a small executable that should do what you want. It will check for .NET 4.0 Client profile, and if it cannot be found, it will open the download page for .NET 4.0, otherwise it will launch 'Eliteswitch.exe'. If you need to change it, the framework version and which files to launch can be found in the string table.

    View attachment 22531
     
  5. Unread #3 - Apr 29, 2010 at 12:34 PM
  6. Harlem9191
    Joined:
    Mar 10, 2009
    Posts:
    81
    Referrals:
    0
    Sythe Gold:
    0

    Harlem9191 Member

    Framework 4.0 detection

    Flaming how am I ever going to repay u. Thanks so much for this mate
    =]
     
< Favourite compiler? | Try Out This Kbot [always Flawless Scripts] >

Users viewing this thread
1 guest


 
 
Adblock breaks this site