Silent install, repair and uninstall command lines for each version of the .NET Framework
I often get asked about how to perform silent and unattended installs for various versions of the .NET Framework. In order to hopefully make things easier to find going forward, I decided to create a single blog post with information about silent and unattended installs, repairs and uninstalls for each shipping version of the .NET Framework.
The command lines listed in this blog post do not apply to versions of the .NET Framework installed as a part of the OS. You can refer to this blog post for a list of which version of the .NET Framework ships with which version of Windows.
.NET Framework 1.0 product family
- Download location
- Deployment guide with silent install command lines -http://msdn.microsoft.com/library/ms994349.aspx
.NET Framework 1.0 - silent repair
dotnetfx.exe /q:a /c:"msiexec.exe /fpecmsu netfx.msi REBOOT=ReallySuppress /l*v %temp%/netfx10_repair_log.txt /qn"
Note – repairing the .NET Framework 1.0 requires re-downloading the dotnetfx.exe installer and running the command line using this installer.
.NET Framework 1.0 - unattended repair
dotnetfx.exe /q:a /c:"msiexec.exe /fpecmsu netfx.msi REBOOT=ReallySuppress /l*v %temp%/netfx10_repair_log.txt /qb"
Note – repairing the .NET Framework 1.0 requires re-downloading the dotnetfx.exe installer and running the command line using this installer.
.NET Framework 1.0 - silent uninstall
msiexec /x {B43357AA-3A6D-4D94-B56E-43C44D09E548} REBOOT=ReallySuppress /qn /l*v %temp%/netfx10_uninstall_log.txt
Note - this command line varies depending on what language version of the .NET Framework 1.0 you have installed. The product code listed above corresponds to the English version of the .NET Framework 1.0, so you will need to use the appropriate non-English product code in order to uninstall non-English versions of the .NET Framework 1.0.
.NET Framework 1.0 - unattended uninstall
msiexec /x {B43357AA-3A6D-4D94-B56E-43C44D09E548} REBOOT=ReallySuppress /qb /l*v %temp%/netfx10_uninstall_log.txt
Note - this command line varies depending on what language version of the .NET Framework 1.0 you have installed. The product code listed above corresponds to the English version of the .NET Framework 1.0, so you will need to use the appropriate non-English product code in order to uninstall non-English versions of the .NET Framework 1.0.
.NET Framework 1.1 product family
- Download location
- Deployment guide with silent install command lines -http://msdn.microsoft.com/library/ms994339.aspx
.NET Framework 1.1 - silent repair
dotnetfx.exe /q:a /c:"msiexec.exe /fpecmsu netfx.msi REBOOT=ReallySuppress /l*v %temp%/netfx11_repair_log.txt /qn"
Note – repairing the .NET Framework 1.1 requires re-downloading the dotnetfx.exe installer and running the command line using this installer.
.NET Framework 1.1 - unattended repair
dotnetfx.exe /q:a /c:"msiexec.exe /fpecmsu netfx.msi REBOOT=ReallySuppress /l*v %temp%/netfx11_repair_log.txt /qb"
Note – repairing the .NET Framework 1.1 requires re-downloading the dotnetfx.exe installer and running the command line using this installer.
.NET Framework 1.1 - silent uninstall
msiexec /x {CB2F7EDD-9D1F-43C1-90FC-4F52EAE172A1} REBOOT=ReallySuppress /qn /l*v %temp%/netfx11_uninstall_log.txt
.NET Framework 1.1 - unattended uninstall
msiexec /x {CB2F7EDD-9D1F-43C1-90FC-4F52EAE172A1} REBOOT=ReallySuppress /qb /l*v %temp%/netfx11_uninstall_log.txt
.NET Framework 2.0 product family
- Download location (2.0)
- Download location (2.0 SP1)
- Download location (2.0 SP2)
- Deployment guide with silent install command lines (2.0) -http://msdn.microsoft.com/library/aa480243.aspx
- Deployment guide with silent install command lines (2.0 SP1 and 2.0 SP2) -http://msdn.microsoft.com/library/cc160716.aspx
.NET Framework 2.0 - silent repair
%windir%/Microsoft.NET/Framework/v2.0.50727/install.exe /q
.NET Framework 2.0 - unattended repair
%windir%/Microsoft.NET/Framework/v2.0.50727/install.exe /qb
.NET Framework 2.0 - silent uninstall
%windir%/Microsoft.NET/Framework/v2.0.50727/install.exe /u /q
.NET Framework 2.0 - unattended uninstall
%windir%/Microsoft.NET/Framework/v2.0.50727/install.exe /u /qb
.NET Framework 2.0 SP1 - silent repair
msiexec /i {B508B3F1-A24A-32C0-B310-85786919EF28} REBOOT=ReallySuppress /l*v %temp%/netfx20sp1_repair_log.txt /qn
.NET Framework 2.0 SP1 - silent uninstall
msiexec /x {B508B3F1-A24A-32C0-B310-85786919EF28} REBOOT=ReallySuppress /l*v %temp%/netfx20sp1_uninstall_log.txt /qn
.NET Framework 2.0 SP2 - silent repair
msiexec /fpecmsu {C09FB3CD-3D0C-3F2D-899A-6A1D67F2073F} REBOOT=ReallySuppress REINSTALL=ALL /l*v %temp%/netfx20sp2_repair_log.txt /qn
.NET Framework 2.0 SP2 - unattended repair
msiexec /fpecmsu {C09FB3CD-3D0C-3F2D-899A-6A1D67F2073F} REBOOT=ReallySuppress REINSTALL=ALL /l*v %temp%/netfx20sp2_repair_log.txt /qb
.NET Framework 2.0 SP2 - silent uninstall
msiexec /x {C09FB3CD-3D0C-3F2D-899A-6A1D67F2073F} REBOOT=ReallySuppress /l*v %temp%/netfx20sp2_uninstall_log.txt /qn
.NET Framework 2.0 SP2 - unattended uninstall
msiexec /x {C09FB3CD-3D0C-3F2D-899A-6A1D67F2073F} REBOOT=ReallySuppress /l*v %temp%/netfx20sp2_uninstall_log.txt /qb
.NET Framework 3.0 product family
- Download location (3.0)
- Download location (3.0 SP1)
- Deployment guide with silent install command lines (3.0) -http://msdn.microsoft.com/library/aa964979.aspx
- Deployment guide with silent install command lines (3.0 SP1 and 3.0 SP2) -http://msdn.microsoft.com/library/cc160716.aspx
.NET Framework 3.0 - silent repair
“%windir%/Microsoft.NET/Framework/v3.0/Microsoft .NET Framework 3.0/setup.exe” /q /f /norestart
.NET Framework 3.0 - unattended repair
“%windir%/Microsoft.NET/Framework/v3.0/Microsoft .NET Framework 3.0/setup.exe” /qb /f /norestart
.NET Framework 3.0 - silent uninstall
“%windir%/Microsoft.NET/Framework/v3.0/Microsoft .NET Framework 3.0/setup.exe” /q /remove /norestart
.NET Framework 3.0 - unattended uninstall
“%windir%/Microsoft.NET/Framework/v3.0/Microsoft .NET Framework 3.0/setup.exe” /qb /remove /norestart
.NET Framework 3.0 SP1 - silent repair
msiexec /i {2BA00471-0328-3743-93BD-FA813353A783} REBOOT=ReallySuppress /l*v %temp%/netfx30sp1_repair_log.txt /qn
.NET Framework 3.0 SP1 - unattended repair
msiexec /i {2BA00471-0328-3743-93BD-FA813353A783} REBOOT=ReallySuppress /l*v %temp%/netfx30sp1_repair_log.txt /qb
.NET Framework 3.0 SP1 - silent uninstall
msiexec /x {2BA00471-0328-3743-93BD-FA813353A783} REBOOT=ReallySuppress /l*v %temp%/netfx30sp1_uninstall_log.txt /qn
.NET Framework 3.0 SP1 - unattended uninstall
msiexec /x {2BA00471-0328-3743-93BD-FA813353A783} REBOOT=ReallySuppress /l*v %temp%/netfx30sp1_uninstall_log.txt /qb
.NET Framework 3.0 SP2 - silent repair
msiexec /fpecmsu {A3051CD0-2F64-3813-A88D-B8DCCDE8F8C7} REBOOT=ReallySuppress REINSTALL=ALL /l*v %temp%/netfx30sp2_repair_log.txt /qn
.NET Framework 3.0 SP2 - unattended repair
msiexec /fpecmsu {A3051CD0-2F64-3813-A88D-B8DCCDE8F8C7} REBOOT=ReallySuppress REINSTALL=ALL /l*v %temp%/netfx30sp2_repair_log.txt /qb
.NET Framework 3.0 SP2 - silent uninstall
msiexec /x {A3051CD0-2F64-3813-A88D-B8DCCDE8F8C7} REBOOT=ReallySuppress /l*v %temp%/netfx30sp2_uninstall_log.txt /qn
.NET Framework 3.0 SP2 - unattended uninstall
msiexec /x {A3051CD0-2F64-3813-A88D-B8DCCDE8F8C7} REBOOT=ReallySuppress /l*v %temp%/netfx30sp2_uninstall_log.txt /qb
.NET Framework 3.5 product family
- Download location (3.5)
- Download location (3.5 SP1)
- Deployment guide with silent install command lines -http://msdn.microsoft.com/library/cc160716.aspx
.NET Framework 3.5 - silent repair
"%windir%/Microsoft.NET/Framework/v3.5/Microsoft .NET Framework 3.5/setup.exe" /q /norestart
.NET Framework 3.5 - unattended repair
"%windir%/Microsoft.NET/Framework/v3.5/Microsoft .NET Framework 3.5/setup.exe" /qb /norestart
.NET Framework 3.5 - silent uninstall
"%windir%/Microsoft.NET/Framework/v3.5/Microsoft .NET Framework 3.5/setup.exe" /q /uninstall /norestart
.NET Framework 3.5 - unattended uninstall
"%windir%/Microsoft.NET/Framework/v3.5/Microsoft .NET Framework 3.5/setup.exe" /qb /uninstall /norestart
.NET Framework 3.5 SP1 - silent repair
"%windir%/Microsoft.NET/Framework/v3.5/Microsoft .NET Framework 3.5 SP1/setup.exe" /q /norestart
.NET Framework 3.5 SP1 - unattended repair
"%windir%/Microsoft.NET/Framework/v3.5/Microsoft .NET Framework 3.5 SP1/setup.exe" /qb /norestart
.NET Framework 3.5 SP1 - silent uninstall
"%windir%/Microsoft.NET/Framework/v3.5/Microsoft .NET Framework 3.5 SP1/setup.exe" /q /uninstall /norestart
.NET Framework 3.5 SP1 - unattended uninstall
"%windir%/Microsoft.NET/Framework/v3.5/Microsoft .NET Framework 3.5 SP1/setup.exe" /qb /uninstall /norestart