Partager via


Mailbag: How can I perform an unattended uninstall of the .NET Framework?

Question

You have written blog posts in the past describing the command line parameters that can be used to install the .NET Framework in silent or unattended mode (here, herehere and here for example). What are the command line parameters required to perform a silent or unattended uninstall of the .NET Framework?

Answer

The following command lines can be used to perform silent uninstall of the .NET Framework redistributable. This is a fully automated uninstall with no visible UI and no user interaction required.

  • .NET Framework 1.0 - dotnetfx.exe /q:a /c:"install.exe /u /p Microsoft .NET Framework Full v1.0.3705 (1033) /q"
    Note - this command line varies depending on what language version of the .NET Framework 1.0 you have installed. You will have to change 1033 to be the 4 digit language code of the language of the .NET Framework 1.0 you have installed
  • .NET Framework 1.1 - dotnetfx.exe /q:a /c:"install.exe /u /q"
  • .NET Framework 1.1 language pack - langpack.exe /q:a /c:"inst.exe /u /q"
  • .NET Framework 2.0 - dotnetfx.exe /q:a /c:"install.exe /u /q"
  • .NET Framework 2.0 language pack - langpack.exe /q:a /c:"install.exe /u /q"

The following command lines can be used to perform unattended uninstall of the .NET Framework redistributable.This is a fully automated uninstall with visible progress UI but no user interaction required.

  • .NET Framework 1.0 - Unattended mode was not supported in 1.0
  • .NET Framework 1.1 - dotnetfx.exe /q:a /c:"install.exe /u /qb"
  • .NET Framework 1.1 language pack - Unattended mode was not supported in 1.1 language packs
  • .NET Framework 2.0 - dotnetfx.exe /q:a /c:"install.exe /u /qb"
  • .NET Framework 2.0 language pack - langpack.exe /q:a /c:"install.exe /u /qb"

The following command line can be used to perform silent uninstall of the .NET Framework SDK (the same command line will work for versions 1.0, 1.1 and 2.0):

setup.exe /q:a /c:"install.exe /u /q"

The following command line can be used to perform unattended uninstall of the .NET Framework SDK 1.1 and 2.0 (unattended mode was not supported in 1.0):

setup.exe /q:a /c:"install.exe /u /qb"

Comments

  • Anonymous
    February 08, 2006
    The comment has been removed
  • Anonymous
    February 08, 2006
    Вам надоел дотнет? У вас неперносимость перносимого кода? Вы опасаетесь, что Сбо
  • Anonymous
    February 09, 2006
    The comment has been removed
  • Anonymous
    April 11, 2006
    The comment has been removed
  • Anonymous
    August 28, 2006
    I've tried either setup.exe /q:a /c:"install.exe /u /q" or setup.exe /q:a /c:"install.exe /u /qb" but it's still on the Add/Remove Program entry. I'm trying appwiz.cpl (Add/Remove Program), but some "PRXXX.tmp"s in c:windowstemp are growing now (faint).
  • Anonymous
    August 28, 2006
    Hi Ranraz1224 - Can you please try to simply run setup.exe and see if you can uninstall that way?  If that does not work, can you please try the steps listed at http://blogs.msdn.com/astebner/archive/2005/10/30/487096.aspx to locate and manually uninstall the .NET Framework SDK from your system?
  • Anonymous
    August 28, 2006
    Hi all,
    I just found that c:windowstempPRXXX.tmp (where X=[0-9a-f]) are generated by my Kaspersky AntiVirus. After letting my PC offline and turning of Kaspersky AntiVirus, the (un)installation works as usual. Apologies for my previous comments.
  • Anonymous
    September 26, 2006
    Hello,
    I am trying to do an “Un installation of the Service Pack 1 for .Net Framework 1.1 in Silent Mode”.

    Can you please let me know the command to do the same? We tried with “NDP1.1sp1-KB867460-X86.exe /q /u”” and “NDP1.1sp1-KB867460-X86.exe /u /qb”, but this did not help.

    It is a urgent issue. Thank you in advance.



    Please let me know the same as it is very urgent
  • Anonymous
    September 26, 2006
    Hi Srinivas - Unfortunately, uninstalling .NET Framework 1.0 and 1.1 service packs is not supported.  Once you install one of these service packs, the only way you can uninstall them is to uninstall the .NET Framework itself.
  • Anonymous
    July 18, 2007
    The comment has been removed
  • Anonymous
    March 04, 2009
    Question: I have seen your blog posts that describe how to silently repair and uninstall the following