Creating a combined install point with the .NET Framework and a service pack


Hey all, I have had a couple folks ask me if it is possible to create a package that will install the .NET Framework 1.1 and SP1 at the same time (or 1.0 and SP3 at the same time).  Here are a set of steps you can follow to use Windows Installer command line parameters to create an installable layout that includes the .NET Framework and a service pack:

  1. Download the .NET Framework 1.0 or the .NET Framework 1.1
  2. Extract the contents of the .NET Framework to a folder - you can do this by running dotnetfx.exe /t:c:\temp /c (where c:\temp is any folder of your choosing)
  3. Download the .NET Framework 1.0 SP3 or the .NET Framework 1.1 SP1
  4. Extract the service pack MSP package to a folder by running <name_of_SP_EXE>.exe /Xp:c:\temp\ndpsp.msp
  5. Run msiexec.exe /a c:\temp\netfx.msi TARGETDIR=c:\temp\new_netfx
  6. Run msiexec.exe /a c:\temp\new_netfx\netfx.msi /p c:\temp\ndpsp.msp

Following these steps will create an MSI and a set of files in the folder c:\temp that can be used to install the .NET Framework and a service pack.  Now you can share out the folder or install directly from there in order to install the .NET Framework and the service pack at the same time.

 

Comments (10)

  1. Udo says:

    Some folks created a instller package of framework 1.1 which has SP1 inside.
    <br>This means, double clicking one file and getting the framework including SP1 installed.
    <br>
    <br>The file can be downloaded from the URL above.
    <br>I used it several times and can recommend it.

  2. Mike Rickard says:

    Step 5 didn’t work for me until I broke it down, and chose to create the admin install point elsewhere.

    5a. Run msiexec.exe /a c:tempnetfx.msi TARGETDIR=c:tempnetfx

    5b. Run msiexec /p c:tempndpsp.msp /a c:tempnetfxnetfx.msi

  3. Thank you for the heads up!

  4. Yaron Shkop says:

    You just forget that the SP of the framework is determined by the OS Version and there are several SP packages. (Which one will be merged into the MSI???)

    I had to include both service packs packages (NT family and 2003 family) and install the appropriate one by a bootstrapper.

  5. You’re right, I did not explain this aspect very well. The instructions I gave for creating a combined package with the .NET Framework and a service pack will only work for the MSI version(s) of the .NET Framework.

    If the .NET Framework is included as part of the OS, you have to obtain a different service pack that works for INF-based versions of the .NET Framework. These cases include the .NET Framework 1.0 on Tablet PC or Media Center, and the .NET Framework 1.1 on Windows Server 2003. For those cases, creating a combined package is essentially the same as integrating an OS hotfix into the main OS setup.

    If you are intending to create a package for redistribution that targets multiple OSs, you will need to carry both packages as you describe above and then perform an OS version check to determine which one to launch at setup time.

  6. Yaron Shkop says:

    If I could create such combined msi’s even one for each OS it would still be very helpfull.

    Though, The result netfx.msi size is 3.7 MB and there are two more folders there…

    Maybe I miss something but shouldn’t it create a single msi file that combines the framework and the SP1 msp file?

  7. The instructions I provided above create a Windows Installer administrative install point, which can be used to install from later on. If you want to use it for redistribution you will have to repackage the contents of the administrative install point into a single package.

Skip to main content