checking if .NET already installed

Hi Guys,

I'm running the 2003 version.

I have two MSI files: one with the .NET in and the other without the .NET.

I need to check if the .NET framework already installed on the PC so I will know what MSI to run.

Is there someone here that can help me here

Thanks...




Answer this question

checking if .NET already installed

  • biozal

    Do this-

    check for existance of this key

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v1.1.4322
    

    and then for this value-:

    Install (DWORD value = 1)
     
    http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetdep/html/redistdeploy1_1.asp 
    is very useful
    

  • Charger

    Thanks for the tip... i'm checking that with a PHP script


  • BertB

    When you say "one MSI with the .NET and one without" what exactly are you doing I've never known anyone do this, so it's very unusual. The generated setup probably has a launch condition already that checks for the existence of the framework. Typically people just have one MSI file.

    In addition, you are likely to run into problems when you want to ship a new version of the product. You have effectively got two products, and you're going to install just one of them. I would look very hard at alternatives, and just use one MSI file. If you carry on with this approach with two MSI files, I recommend you figure out exactly how you'll install an updated MSI file and test it before you ship the product and lose the chance to redesign it.



  • checking if .NET already installed