mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 18:15:10 +02:00
attempt to sign in inner invocation
This commit is contained in:
parent
ed56dd7303
commit
75a8ab56bc
1 changed files with 7 additions and 7 deletions
|
@ -42,7 +42,7 @@
|
|||
; it is invoked, will just write the uninstaller to some location, and then exit.
|
||||
; Be sure to substitute the name of this script here.
|
||||
|
||||
!system "set __COMPAT_LAYER=RunAsInvoker&$\"${NSISDIR}\makensis$\" /DINNER project.nsi" = 0
|
||||
!system "set __COMPAT_LAYER=RunAsInvoker && $\"${NSISDIR}\makensis$\" /DINNER project.nsi" = 0
|
||||
|
||||
; Require administrator access
|
||||
RequestExecutionLevel admin
|
||||
|
@ -52,12 +52,6 @@
|
|||
|
||||
!system "$%TEMP%\tempinstaller.exe" = 2
|
||||
|
||||
; The Inner invocation has written an uninstaller binary for us.
|
||||
; We need to sign it if it's a production or PR build.
|
||||
!if @PRODUCTION_BUILD@ == 1
|
||||
!system '"@SIGNTOOL_EXECUTABLE@" sign /f %HF_PFX_FILE% /p %HF_PFX_PASSPHRASE% /tr http://tsa.starfieldtech.com /td SHA256 $%TEMP%\uninstaller.exe' = 0
|
||||
!endif
|
||||
|
||||
; Good. Now we can carry on writing the real installer.
|
||||
|
||||
;Name and file
|
||||
|
@ -1102,6 +1096,12 @@ Function .onInit
|
|||
|
||||
WriteUninstaller "$%TEMP%\uninstaller.exe"
|
||||
|
||||
; We've written the uninstaller binary.
|
||||
; We need to sign it if it's a production or PR build.
|
||||
!if @PRODUCTION_BUILD@ == 1
|
||||
!system '"@SIGNTOOL_EXECUTABLE@" sign /f %HF_PFX_FILE% /p %HF_PFX_PASSPHRASE% /tr http://tsa.starfieldtech.com /td SHA256 $%TEMP%\uninstaller.exe' = 0
|
||||
!endif
|
||||
|
||||
; just bail out quickly when running the "inner" installer
|
||||
Quit
|
||||
!endif
|
||||
|
|
Loading…
Reference in a new issue