For a lot of applications today you’ll need to install the Microsoft .NET Framework on your Windows systems to get them working. If you’re one of the administrators around the world that hasn’t made the jump to Windows Vista yet then you’ll know that the .NET Framework 2.0 doesn’t come pre-installed with Windows XP.

Here’s a simple script to perform a completely unattended installation of the Microsoft .NET Framework 2.0 and then update it to the .NET Framework 2.0 Service Pack 1. Note that the commands below will prevent the machine being worked on from restarting automatically after installing the service pack. The commands also assume you’ve got your .NET Framework installation files located in C:\InstallationFiles - change the location in the commands below if that’s not the case (it almost definitely won’t be!).

:: Install the .NET Framework 2.0
echo Installing .NET Framework 2.0 …
echo.
“C:\InstallationFiles\dotnetfx.exe” /q:a /c:”install.exe /qb!”

:: Install the .NET Framework 2.0 SP1
echo Installing .NET Framework 2.0 SP1 …
echo.
“C:\InstallationFiles\NetFx20SP1_x86.exe” /qb /norestart

At the time of writing this article the Microsoft .NET Framework 2.0 and .NET Framework 2.0 SP1 files can be downloaded from the links below.

Microsoft .NET Framework 2.0 Redistributable x86 (dotnetfx.exe)
Microsoft .NET Framework 2.0 Service Pack 1 x86 (NetFx20SP1_x86.exe)

Tags: , ,