diff --git a/cmake/templates/NSIS.template.in b/cmake/templates/NSIS.template.in index 9b8841c586..60b99bc7cf 100644 --- a/cmake/templates/NSIS.template.in +++ b/cmake/templates/NSIS.template.in @@ -49,6 +49,9 @@ !system "$%TEMP%\tempinstaller.exe" = 2 + ;Require administrator access + RequestExecutionLevel admin + ; 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 @@ -63,9 +66,6 @@ ;Set compression SetCompressor @CPACK_NSIS_COMPRESSOR@ - - ;Require administrator access - RequestExecutionLevel admin !endif @CPACK_NSIS_DEFINES@ @@ -677,8 +677,6 @@ Section "-Core installation" ;Package the signed uninstaller produced by the inner loop !ifndef INNER - SetOutPath $INSTDIR - ; this packages the signed uninstaller File $%TEMP%\uninstaller.exe !endif