Thursday, October 13, 2011

Unattended/Silent installation of .NET Framework 2, 3 and 3.5


Today in this post I will going to explain the steps to install .NET Framework without manual interaction or using a single command. The biggest advantage of silent installation is that the user don’t have to monitor and follow all the installation steps.
The .NET Framework is an integral windows component that supports building and running the next generation of applications and XML web services on Windows Systems. You can download the .NET framework from following URLS and save them in one directory lets say c:/dotnet
DOWNLOAD:
Microsoft .NET Framework Version 2.0 Redistributable Package
http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5&displaylang=en

Microsoft .NET Framework Version 3.0 (Full Installation)
http://download.microsoft.com/download/3/F/0/3F0A922C-F239-4B9B-9CB0-DF53621C57D9/dotnetfx3.exe

Microsoft .NET Framework Version 3.5 (Full Installation)
http://download.microsoft.com/download/6/0/f/60fc5854-3cb8-4892-b6db-bd4f42510f28/dotnetfx35.exe

Microsoft .NET Framework 3.0 and 3.5 are usually installed via web installer i.e web installer downloads the executable from Microsoft website and then installs it automatically but the above download URL’s are full download of the components which don’t download anything from Internet once it get downloaded.
INSTALLATION:
1) Open Command Prompt (Start >> run >> cmd >> Enter).
2) Go to the folder where all the .NET Framework executable are downloaded. In our case we have downloaded the in C:\dotnet
C:/>cd c:/dotnet

Install .NET Framework 2

To install it execute following command
C:/dotnet>dotnetfx.exe /q:a /c:”install.exe /qb”

Install .NET Framework 3.0

To install it execute following command
C:/dotnet>dotnetfx3.exe /q /norestart

Install .NET Framework 3.5

To install it execute following command
C:/dotnet>dotnetfx35.exe /q /norestart

Now you can check if the .NET Framework is installed or not from Add remove programs.
windows Unattended/Silent installation of .NET Framework 2, 3 and 3.5
BATCH FILE For INSTALLATION
You can create a batch file for the installation. This batch file will install all the three versions of .NET Framework on double click. Open notepad and copy paste the following contents in it.
@ECHO OFF
ECHO Installation of DOTNET Framework 2.0
dotnetfx.exe /q:a /c:”install.exe /qb”
ECHO Installation of DOTNET Framework 3.0
dotnetfx3.exe /q /norestart
ECHO Installation of DOTNET Framework3.5
dotnetfx35.exe /q /norestart
exit

Save the file in the directory where installers are downloaded (C:\dotnet) Or you can get the batch file here

5 comments: