diff options
-rw-r--r-- | cmake/modules/NSIS.template.in | 1 | ||||
l--------- | cmake/modules/oc.nsi | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/cmake/modules/NSIS.template.in b/cmake/modules/NSIS.template.in index 9da966286..e30c2f84d 100644 --- a/cmake/modules/NSIS.template.in +++ b/cmake/modules/NSIS.template.in @@ -720,6 +720,7 @@ Function .onInit ${MementoSectionRestore} UAC_TryAgain: + !insertmacro UAC_RunElevated ${Switch} $0 ${Case} 0 ${IfThen} $1 = 1 ${|} Quit ${|} ;we are the outer process, the inner process has done its work, we are done diff --git a/cmake/modules/oc.nsi b/cmake/modules/oc.nsi new file mode 120000 index 000000000..7e7401b14 --- /dev/null +++ b/cmake/modules/oc.nsi @@ -0,0 +1 @@ +NSIS.template.in
\ No newline at end of file |