From ed56dd7303742cae935a16b34788de5e9b21c290 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 13 Jan 2016 12:21:21 -0800 Subject: [PATCH] call makensis with RunAsInvoker --- cmake/templates/NSIS.template.in | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmake/templates/NSIS.template.in b/cmake/templates/NSIS.template.in index 155d10115d..f57b91bbd8 100644 --- a/cmake/templates/NSIS.template.in +++ b/cmake/templates/NSIS.template.in @@ -38,14 +38,11 @@ !else !echo "Outer invocation" - ; make sure that makensis itself is not run elevated - !system "set __COMPAT_LAYER=RunAsInvoker&makensis ..." - ; Call makensis again, defining INNER. This writes an installer for us which, when ; 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 "$\"${NSISDIR}\makensis$\" /DINNER project.nsi" = 0 + !system "set __COMPAT_LAYER=RunAsInvoker&$\"${NSISDIR}\makensis$\" /DINNER project.nsi" = 0 ; Require administrator access RequestExecutionLevel admin