Silent uninstaller
Hello all,
Couple cases in my project, we have to uninstall a previous version silently before install the new version. I have a problem where a message box is always display, I have tried couple scenarios but still not working.
This is how I call the uninstall in the before install section:
ExecWait "$PROGRAMFILES\${COMPANY_NAME}\$PRODUCTNAME$\uninstall.exe /S"
In the before uninstall section:
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2|MB_TOPMOST "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
Abort
I tried:
IfSilent +3
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2|MB_TOPMOST "Are you sure you want to completely remove $(^Name) and all of its components?" IDYES +2
Abort
Also:
MessageBox MB_ICONQUESTION|MB_YESNO|MB_DEFBUTTON2|MB_TOPMOST "Are you sure you want to completely remove $(^Name) and all of its components?" /SD IDYES IDYES +2
Abort
Am I missing any setting?
Thanks!