none
.NET Deployment RRS feed

  • Question

  •  

    I'm developing a .NET application in Visual C++, that works well, and will work in Windows XP, 2000 and Vista but there is the need for the .NET framework to go with it so it is installed first on target system b4 installing the program.

     

    How can I bundle the .net installer with my application into a complete installer that is capable of first checking the system for the framework b4 knowing what 2 do?

     

    Regards.

    Wednesday, May 14, 2008 3:46 PM

Answers

  •  

    Hi Elijah

     

    you can use the following code in your setup authoring of the application to first check for a particular version of the .NET Framework and then redirect the user to the url for downloading the Framework redist.

     

    <!-- Block installation if .NET 3.5 RTM is not present -->
        <Property Id='FRAMEWORK35'>
          <RegistrySearch Id='Framework35Registry' Type='raw' Root='HKLM' Key='Software\Microsoft\NET Framework Setup\NDP\v3.5' Name='Install' />
        </Property>

        <Condition Message='.NET Framework 3.5 is not present on this computer. Please install it from http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe '>
          FRAMEWORK35 = "#1"
        </Condition>

    This example is for .NET Framework 3.5, but you cna easily modify it to target any Framework version.

     

    Thanks

    Wednesday, May 14, 2008 9:10 PM
    Moderator

All replies

  •  

    Hi Elijah

     

    you can use the following code in your setup authoring of the application to first check for a particular version of the .NET Framework and then redirect the user to the url for downloading the Framework redist.

     

    <!-- Block installation if .NET 3.5 RTM is not present -->
        <Property Id='FRAMEWORK35'>
          <RegistrySearch Id='Framework35Registry' Type='raw' Root='HKLM' Key='Software\Microsoft\NET Framework Setup\NDP\v3.5' Name='Install' />
        </Property>

        <Condition Message='.NET Framework 3.5 is not present on this computer. Please install it from http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe '>
          FRAMEWORK35 = "#1"
        </Condition>

    This example is for .NET Framework 3.5, but you cna easily modify it to target any Framework version.

     

    Thanks

    Wednesday, May 14, 2008 9:10 PM
    Moderator
  • Sunday, May 25, 2008 1:53 PM