Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Molkentin <danimo@owncloud.com>2015-05-28 16:54:52 +0300
committerDaniel Molkentin <danimo@owncloud.com>2015-07-17 15:42:26 +0300
commitfa6dc8dbb7bda171190dc2dda4eb189d19039baf (patch)
tree83198eec1214107f0b891674b4f82b0bb034146c /cmake/modules/NSIS.template.in
parent7a8a8ceedc6a1399943dca899a3b0e6cced73194 (diff)
Adjust to new version of NSIS UAC
Diffstat (limited to 'cmake/modules/NSIS.template.in')
-rw-r--r--cmake/modules/NSIS.template.in15
1 files changed, 3 insertions, 12 deletions
diff --git a/cmake/modules/NSIS.template.in b/cmake/modules/NSIS.template.in
index 1ef5634af..bc80acfbc 100644
--- a/cmake/modules/NSIS.template.in
+++ b/cmake/modules/NSIS.template.in
@@ -246,11 +246,7 @@ VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "${VERSION}"
##############################################################################
Function LaunchApplication
- ${UAC.CallFunctionAsUser} LaunchApplicationAsUser
-FunctionEnd
-
-Function LaunchApplicationAsUser
- Exec "$INSTDIR\${APPLICATION_EXECUTABLE}"
+ !insertmacro UAC_AsUser_ExecShell "" "$INSTDIR\${APPLICATION_EXECUTABLE}" "" "" ""
FunctionEnd
##############################################################################
@@ -365,7 +361,6 @@ Function PageLeaveReinstall
RMDir $INSTDIR
no_remove_uninstaller:
StrCmp $R0 "2" 0 +3
- UAC::Unload
Quit
BringToFront
reinst_done:
@@ -725,7 +720,7 @@ Function .onInit
${MementoSectionRestore}
UAC_Elevate:
- UAC::RunElevated
+ !insertmacro UAC_RunElevated
StrCmp 1223 $0 UAC_ElevationAborted ; UAC dialog aborted by user?
StrCmp 0 $0 0 UAC_Err ; Error?
StrCmp 1 $1 0 UAC_Success ;Are we the real deal or just the wrapper?
@@ -773,11 +768,9 @@ Function .onInstSuccess
${AndIf} $InstallRunIfSilent == "yes"
Call LaunchApplication
${EndIf}
- UAC::Unload ;Must call unload!
FunctionEnd
Function .onInstFailed
- UAC::Unload ;Must call unload!
FunctionEnd
##############################################################################
@@ -790,7 +783,7 @@ Function un.onInit
Call un.SetLang
UAC_Elevate:
- UAC::RunElevated
+ !insertmacro UAC_RunElevated
StrCmp 1223 $0 UAC_ElevationAborted ; UAC dialog aborted by user?
StrCmp 0 $0 0 UAC_Err ; Error?
StrCmp 1 $1 0 UAC_Success ;Are we the real deal or just the wrapper?
@@ -821,9 +814,7 @@ Function un.onInit
FunctionEnd
Function un.onUnInstSuccess
- UAC::Unload ;Must call unload!
FunctionEnd
Function un.onUnInstFailed
- UAC::Unload ;Must call unload!
FunctionEnd