mirror of
https://github.com/overte-org/overte.git
synced 2025-06-16 22:00:21 +02:00
run elevated prior to running temp installer
This commit is contained in:
parent
e1ebb5ae5d
commit
c0095e57d9
1 changed files with 4 additions and 4 deletions
|
@ -44,18 +44,18 @@
|
||||||
|
|
||||||
!system "$\"${NSISDIR}\makensis$\" /DINNER project.nsi" = 0
|
!system "$\"${NSISDIR}\makensis$\" /DINNER project.nsi" = 0
|
||||||
|
|
||||||
|
; Require administrator access
|
||||||
|
RequestExecutionLevel admin
|
||||||
|
|
||||||
; So now run that installer we just created as %TEMP%\tempinstaller.exe. Since it
|
; So now run that installer we just created as %TEMP%\tempinstaller.exe. Since it
|
||||||
; calls quit the return value isn't zero.
|
; calls quit the return value isn't zero.
|
||||||
|
|
||||||
!system "$%TEMP%\tempinstaller.exe" = 2
|
!system "$%TEMP%\tempinstaller.exe" = 2
|
||||||
|
|
||||||
;Require administrator access
|
|
||||||
RequestExecutionLevel admin
|
|
||||||
|
|
||||||
; The Inner invocation has written an uninstaller binary for us.
|
; The Inner invocation has written an uninstaller binary for us.
|
||||||
; We need to sign it if it's a production or PR build.
|
; We need to sign it if it's a production or PR build.
|
||||||
!if @PRODUCTION_BUILD@ == 1
|
!if @PRODUCTION_BUILD@ == 1
|
||||||
!execute '"@SIGNTOOL_EXECUTABLE@" sign /f %HF_PFX_FILE% /p %HF_PFX_PASSPHRASE% /tr http://tsa.starfieldtech.com /td SHA256 $%TEMP%\uninstaller.exe' = 0
|
!system '"@SIGNTOOL_EXECUTABLE@" sign /f %HF_PFX_FILE% /p %HF_PFX_PASSPHRASE% /tr http://tsa.starfieldtech.com /td SHA256 $%TEMP%\uninstaller.exe' = 0
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
; Good. Now we can carry on writing the real installer.
|
; Good. Now we can carry on writing the real installer.
|
||||||
|
|
Loading…
Reference in a new issue