mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-26 10:48:38 -06:00
CPack/NSIS: Add support for unquoted (legacy) uninstaller strings
This commit is contained in:
committed by
Brad King
parent
b795c96727
commit
5d2ceaada8
@@ -932,7 +932,11 @@ Function .onInit
|
|||||||
;Run the uninstaller
|
;Run the uninstaller
|
||||||
uninst:
|
uninst:
|
||||||
ClearErrors
|
ClearErrors
|
||||||
|
StrCpy $2 $0 1
|
||||||
|
StrCmp '"' $2 0 +3 ; checks if string is quoted (CPack before v3.20.6 did not quote it)
|
||||||
ExecWait '$0 /S'
|
ExecWait '$0 /S'
|
||||||
|
Goto +2
|
||||||
|
ExecWait '"$0" /S'
|
||||||
|
|
||||||
IfErrors uninst_failed inst
|
IfErrors uninst_failed inst
|
||||||
uninst_failed:
|
uninst_failed:
|
||||||
|
|||||||
Reference in New Issue
Block a user