Network Installation of Dotnet Framework (.net Framework)
This guide will help you do a network deployment of the .network framework package. This includes the more recent versions such as .net framework 4 or 4.5. To do a network install you need an offline standalone installer of the version of DotNet framework you are installing from mircosoft.
Once you have the standalone installer you need to check your computer needs to meet the minimum requires for the version you are installing. Im currently rolling out .net framework 4 and so i below are the requirements for that version.
System Requirements for .Net Framework 4
Supported Operating Systems: Windows 7, Windows 7 Service Pack 1, Windows Server 2003 Service Pack 2, Windows Server 2008, Windows Server 2008 R2, Windows Server 2008 R2 SP1, Windows Vista Service Pack 1, Windows XP Service Pack 3
- Windows XP SP3
- Windows Server 2003 SP2
- Windows Vista SP1 or later
- Windows Server 2008 (not supported on Server Core Role)
- Windows 7
- Windows Server 2008 R2 (not supported on Server Core Role)
- Windows 7 SP1
- Windows Server 2008 R2 SP1
- Supported Architectures:
- ia64 (some features are not supported on ia64 for example, WPF)
- Hardware Requirements:
- Recommended Minimum: Pentium 1 GHz or higher with 512 MB RAM or more
- Minimum disk space:
- x86 – 850 MB
- x64 – 2 GB
Once your computers have the prerequisits and you are the happy the install will be success you can continue. You need to put the offline/standalone installer in a location on the server which is accessible during startup. Create a batch file with the following code:
set ProductName="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft .NET Framework 4 Extended"
reg query %ProductName%
if %errorlevel%==1 (goto Deployframework4) else (goto End)
start /wait \\<Servername>\<install share>\dotnetfx40_Full_x86_x64.exe /q:a /c:"install /q /log \\<Servername>\<\Install Logs folder>\%COMPUTERNAME%.log
When the .net framework is installed it sets a registry setting for the add remvoe programs area. The code checks to see if this exists, if it does then the setup is not run as its already installed. If there is no registry key it runs the installation. Different versions of .net will have different names so the key will need to be changed. In this scenario its .net framework 4 full install. The start /wait command should make the computer wait for the install to be complete before allowing login. The /q etc makes the install run silently. Tthe /log specifies where to create log files relating to the install (make sure network services has right access to this directory). %computername%.log makes a file with the name of the computer thats installing the software.
Network Deplot Cont........
Once you have the code attached it to a Group Policy Object under > computer configuration > policies > windows settings > scripts > startup. Once the computer has picked up the group policy the next boot the script should run and hopefully "success" it is deployed.
Taglines : Deploy .net framework 4. Deploy dotnet framework 4, network installation of dotnet framework 4, network installation of .net framework 4