Silent uninstall from command line? - Advanced Installer Community
sbaird
Posts: 57
Joined: Tue Sep 01, 2015 2:08 pm

Silent uninstall from command line?

I have noticed there is no way to run a completely silent uninstall from the command line using the original bootstrapper package.
setup.exe /x // /qn gets me what I think is effectively basic UI mode with an active cancel button -- no user interaction is necessary, but we have a requirement to provide a completely silent uninstall. Right now this can only be accomplished like this: msiexec /x {ProductCode} /qn
Am I missing anything here?

it seems as though when using the bootstrapper, the /q switch doesn't have the proper effect.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Silent uninstall from command line?

Hello,
setup.exe /x // /qn gets me what I think is effectively basic UI mode with an active cancel button -- no user interaction is necessary
The boostrapper uses the Reduced UI (/qr) command line to launch the uninstall process of the .MSI. That means no modal dialog box displayed at the end of the installation.
The passed /qn command line switch is ignored.
msiexec /x {ProductCode} /qn
Indeed, to silently perform an uninstall process, you need to use the above command line. This way, the .MSI will be used directly and not the bootstrapper to launch the .MSI.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”