Merge topic 'silent-nsis-installs'

cb8db285 CPack/NSIS: Fix silent NSIS installs
This commit is contained in:
Brad King 2016-09-28 08:04:58 -04:00 committed by CMake Topic Stage
commit cd89d1998a
1 changed files with 2 additions and 2 deletions

View File

@ -905,7 +905,7 @@ Function .onInit
MessageBox MB_YESNOCANCEL|MB_ICONEXCLAMATION \
"@CPACK_NSIS_PACKAGE_NAME@ is already installed. $\n$\nDo you want to uninstall the old version before installing the new one?" \
IDYES uninst IDNO inst
/SD IDYES IDYES uninst IDNO inst
Abort
;Run the uninstaller
@ -913,7 +913,7 @@ uninst:
ClearErrors
StrLen $2 "\Uninstall.exe"
StrCpy $3 $0 -$2 # remove "\Uninstall.exe" from UninstallString to get path
ExecWait '"$0" _?=$3' ;Do not copy the uninstaller to a temp file
ExecWait '"$0" /S _?=$3' ;Do not copy the uninstaller to a temp file
IfErrors uninst_failed inst
uninst_failed: