Adblock breaks this site

Framework 4.0 detection

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

  1. Harlem9191

    Harlem9191 Member

    Joined:
    Mar 10, 2009
    Posts:
    81
    Referrals:
    0
    Sythe Gold:
    0
    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
     
  2. Flaming Idiots

    Flaming Idiots Active Member
    Visual Basic Programmers

    Joined:
    Dec 22, 2005
    Posts:
    235
    Referrals:
    1
    Sythe Gold:
    0
    Two Factor Authentication User
    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
     
  3. Harlem9191

    Harlem9191 Member

    Joined:
    Mar 10, 2009
    Posts:
    81
    Referrals:
    0
    Sythe Gold:
    0
    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] >


 
 
Adblock breaks this site