mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 20:08:56 +02:00
move uninstaller signing to onInit
This commit is contained in:
parent
cc4f7a9ad8
commit
7f08d77b36
1 changed files with 7 additions and 7 deletions
|
@ -49,13 +49,6 @@
|
||||||
|
|
||||||
!system "$%TEMP%\tempinstaller.exe" = 2
|
!system "$%TEMP%\tempinstaller.exe" = 2
|
||||||
|
|
||||||
; That will have written an uninstaller binary for us. Now we sign it with your
|
|
||||||
; favourite code signing tool, if it's a production build.
|
|
||||||
|
|
||||||
${If} "@PRODUCTION_BUILD@" == "1"
|
|
||||||
!system "signcode <signing options> $%TEMP%\uninstaller.exe" = 0
|
|
||||||
${EndIf}
|
|
||||||
|
|
||||||
; Good. Now we can carry on writing the real installer.
|
; Good. Now we can carry on writing the real installer.
|
||||||
|
|
||||||
;Name and file
|
;Name and file
|
||||||
|
@ -1110,6 +1103,13 @@ Function .onInit
|
||||||
Quit
|
Quit
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
|
; The Inner invocation has written an uninstaller binary for us.
|
||||||
|
; We need to sign it if it's a production build.
|
||||||
|
|
||||||
|
${If} "@PRODUCTION_BUILD@" == "1"
|
||||||
|
!system "signcode <signing options> $%TEMP%\uninstaller.exe" = 0
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
StrCmp "@CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL@" "ON" 0 inst
|
StrCmp "@CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL@" "ON" 0 inst
|
||||||
|
|
||||||
ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "UninstallString"
|
ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "UninstallString"
|
||||||
|
|
Loading…
Reference in a new issue