.NET各个版本安装

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

.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

.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

.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

.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

.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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值