.NET各個版本安裝

來源:互聯網
上載者:User
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

Published Thursday, April 16, 2009 9:24 PM by astebner

Filed under: Setup Issues, Visual Studio and .NET Framework, .NET Framework setup and deployment, .NET Framework 3.5 setup and deployment

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.