Installing .NET 1.1 on Windows 7 x64
Microsoft did not include the .NET 1.1 Framework in Windows 7. As a result, any application wanting to use the .NET Framework 1.1 will be unable to do so by default on Windows 7. Further, when you attempt to run the .NET 1.1 installer on Windows 7, the following error may be generated:
This error prevents the installer from being silently executed.
Fortunately, it is possible to package the .NET Framework in a way that it can be installed silently on Windows 7.
The first step is to create an administrative installer for the .NET Framework. This is done by downloading the .NET installer and using the command:
Dotnetfx.exe /c:”msiexec.exe /a netfx.msi TARGETDIR=C:\Temp”
This will create an MSI installer and a couple of folders in the C:\Temp directory (or whichever directory you specified in the TARGETDIR property above.
Next, download the .NET Framework 1.1 SP1 patch. Save it as “dotnetsp1.exe” and then issue the following command:
Dotnetsp1.exe /Xp:C:\Temp\dotnetsp1.msp
This will create an MSP (patch) file in the C:\Temp directory.
Next, you’ll need to create an administrative installer with SP1 slipstreamed into it, using the following command:
Msiexec.exe /a C:\temp\netfx.msi /p c:\temp\dotnetsp1.msp
This will roll the SP1 fixes into the netfx.msi installer. You can now discard the MSP file if you want to do so.
If you launch this newly-updated MSI, you’ll see the same incompatibility warning depicted earlier. This will prevent silent installation, so you will want to bypass it. This can be done by starting a setup capture and then launching the installer to trigger the incompatibility warning. When it comes up, check the “Don’t show this message again” box and click “Run program”. Complete the setup capture and you’ll find a registry key is created:
[HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags]
"{11f1f8ee-7e7f-4f1d-be93-b4d310f0760a}"=dword:00000004
Changing this from “HKEY_CURRENT_USER” to “HKEY_LOCAL_MACHINE” makes it applicable to all users on the system.
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags]
"{11f1f8ee-7e7f-4f1d-be93-b4d310f0760a}"=dword:00000004
(Note that changing HKCU to HKLM does not work for all registry keys, but in this case it does.)
Save this modified registry key to a file named “disable-warning.reg” for later use.
To silently install the software, you now need to perform two commands:
Regedit /s disable-warning.reg
Msiexec /i netfx.msi /quiet /norestart
The first command loads the registry key that disables the compatibility warning. The second performs the silent installation of the software.
Silent uninstall uses the MSIEXEC utility, as it would for any other MSI:
Msiexec /x {CB2F7EDD-9D1F-43C1-90FC-4F52EAE172A1} /quiet /norestart
Alternatively, you can use:
Msiexec /x netfx.msi /quiet /norestart
Either of these will silently uninstall the software.
We currently deploy 1.1 with Windows 7 X64 using SCCM . Use command-line (dotnetfx.exe /q:a /c:"install.exe /qb /l") the uninstall string is MsiExec.exe /X{CB2F7EDD-9D1F-43C1-90FC-4F52EAE172A1} /qb.
Here is a method to enable .Net 3.5 on Windows 8 with a powershell script. this method is usefull when you deploy windows 8 with SCCM (this script can be used as part of a task sequence)
because this script is explained at Microsoft Technet i will not post the steps. you can download the script at:http://gallery.technet.microsoft.com/scriptcenter/Install-NET-Framework-35-f791c035
This page also explains the usage of the script.
Installing Microsoft .NET 3.5 during KACE K2000 Imaging processes as a Post Installation Task.
MD C:\ITTEMP\Sources - This will create the source folder to copy files from for installation
xcopy *.* C:\ITTEMP\Sources\ /E/Y - This will copy the entire sxs directory and files to the directory to install from
DISM.exe /Online /Enable-Feature /FeatureName:NetFx3 /All /LimitAccess /Source:C:\ITTemp\Sources\sxs - This will start the installation of .NET 3.5
View inventory records anonymously contributed by opt-in users of the K1000 Systems Management Appliance.