request admin prior to system call

This commit is contained in:
Stephen Birarda 2016-01-13 11:55:06 -08:00
parent d8a0b28655
commit fceb916787

View file

@ -49,6 +49,9 @@
!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
@ -63,9 +66,6 @@
;Set compression ;Set compression
SetCompressor @CPACK_NSIS_COMPRESSOR@ SetCompressor @CPACK_NSIS_COMPRESSOR@
;Require administrator access
RequestExecutionLevel admin
!endif !endif
@CPACK_NSIS_DEFINES@ @CPACK_NSIS_DEFINES@
@ -677,8 +677,6 @@ Section "-Core installation"
;Package the signed uninstaller produced by the inner loop ;Package the signed uninstaller produced by the inner loop
!ifndef INNER !ifndef INNER
SetOutPath $INSTDIR
; this packages the signed uninstaller ; this packages the signed uninstaller
File $%TEMP%\uninstaller.exe File $%TEMP%\uninstaller.exe
!endif !endif