Aaron Stebner's WebLog

Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio

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

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

  • Comments 11

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"

 

  • I have just posted this comment to an older entry, but since you have mentioned this again,
    look at this webpage which seems to me to suggest that ISVs are not allowed to do silent installs:
    http://msdn.microsoft.com/library/en-us/dnnetdep/html/isvdistmsdn.asp?frame=true

    The text here seems pretty clear to me:
    "Note that the redistribution license does not allow the ISV to alter the installation experience of the runtime components (for instance, it does not allow calling the runtime setup applications with the silent option turned on)."

    Obviously this is not just an academic gripe, I would like to know the answer to this one!

  • Вам надоел дотнет? У вас неперносимость перносимого кода? Вы опасаетесь, что Сбо
  • Hi John - You are correct.  I listed the command line parameters above that describe how you can perform an unattended install from a technical perspective.  From a policy perspective, however, ISVs are not allowed to perform silent installations if they include the .NET Framework as a part of their setup package.
  • This guide is intended to serve as a collection of links to articles, tools, tips and tricks that explain...
  • 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:\windows\temp are growing now (faint).
  • 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?
  • Hi all,
    I just found that c:\windows\temp\PRXXX.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.
  • 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
  • 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.
  • This guide is intended to serve as a collection of links to articles, tools, tips and tricks that explain

  • Question: I have seen your blog posts that describe how to silently repair and uninstall the following

Page 1 of 1 (11 items)
Leave a Comment
  • Please add 4 and 7 and type the answer here:
  • Post