mirror of
https://github.com/reactos/CMake.git
synced 2025-01-17 00:48:40 +00:00
Merge topic 'cpack-nsis-uninstall'
40566ef CPack/NSIS: Obtain path from which to uninstall from registry (#14124)
This commit is contained in:
commit
831dd5abab
@ -916,7 +916,9 @@ Function .onInit
|
|||||||
;Run the uninstaller
|
;Run the uninstaller
|
||||||
uninst:
|
uninst:
|
||||||
ClearErrors
|
ClearErrors
|
||||||
ExecWait '$0 _?=$INSTDIR' ;Do not copy the uninstaller to a temp file
|
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
|
||||||
|
|
||||||
IfErrors uninst_failed inst
|
IfErrors uninst_failed inst
|
||||||
uninst_failed:
|
uninst_failed:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user