8

Is there any switch for silent uninstallation? like we do /s while installing. I tried the same with uninst,exe but didn't work.

Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
logeeks
  • 4,849
  • 15
  • 62
  • 93

1 Answers1

11

It is documented to work for the uninstaller also but it has to be uppercase (/S) and if you are calling the uninstaller from your installer to uninstall a older version you should also provide the special _?= uninstaller parameter. How silent it is depends on your code; a MessageBox without /SD will not be silent etc.

Anders
  • 97,548
  • 12
  • 110
  • 164
  • Reading the documentation, I do not understand, what your mentioned `/SD` in the uninstaller would do. Can you shed some light on that, please? **Update:** I just found out that `/SD` is for `MessageBox`, not for the call of the uninstaller. Sorry for not reading better. – Uwe Keim Feb 27 '18 at 16:06
  • 1
    From the MessageBox documentation: "Use the /SD parameter with one of the return_check values above to specify the option that will be used when the installer is silent." In other words, /SD means silent default. If it is left out, then the message box will still appear to ask the user for input. – Daniel N Feb 27 '18 at 16:09