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>2014-10-27 19:25:48 +0300
committerDaniel Molkentin <danimo@owncloud.com>2015-02-17 19:17:39 +0300
commit56a907128a7bfaeb7731389377836d183bba81ee (patch)
treeb18b6c20111494607a9bc9fcacc735c08f7b49ef /cmake/modules/NSIS.template.in
parent99d674c346ea5c854430c76f3b94a6254b2e335e (diff)
Install shortcuts for all users
Implements #2413
Diffstat (limited to 'cmake/modules/NSIS.template.in')
-rw-r--r--cmake/modules/NSIS.template.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/modules/NSIS.template.in b/cmake/modules/NSIS.template.in
index 50a8fe403..45c52f815 100644
--- a/cmake/modules/NSIS.template.in
+++ b/cmake/modules/NSIS.template.in
@@ -512,7 +512,9 @@ SectionGroup $SectionGroup_Shortcuts
SetDetailsPrint textonly
DetailPrint $OPTION_SECTION_SC_DESKTOP_DetailPrint
SetDetailsPrint listonly
+ SetShellVarContext all
CreateShortCut "$DESKTOP\${APPLICATION_NAME}.lnk" "$INSTDIR\${APPLICATION_EXECUTABLE}"
+ SetShellVarContext current
${MementoSectionEnd}
!endif
@@ -521,8 +523,10 @@ SectionGroup $SectionGroup_Shortcuts
SectionIn 1 2
SetDetailsPrint textonly
DetailPrint $OPTION_SECTION_SC_QUICK_LAUNCH_DetailPrint
+ SetShellVarContext all
SetDetailsPrint listonly
CreateShortCut "$QUICKLAUNCH\${APPLICATION_NAME}.lnk" "$INSTDIR\${APPLICATION_EXECUTABLE}"
+ SetShellVarContext current
${MementoSectionEnd}
!endif
@@ -672,18 +676,22 @@ Section Uninstall
;Desktop shortcut.
!ifdef OPTION_SECTION_SC_DESKTOP
${If} ${HasSection} SEC_DESKTOP
+ SetShellVarContext all
${If} ${FileExists} "$DESKTOP\${APPLICATION_NAME}.lnk"
Delete "$DESKTOP\${APPLICATION_NAME}.lnk"
${EndIf}
+ SetShellVarContext current
${EndIf}
!endif
;Quick Launch shortcut.
!ifdef OPTION_SECTION_SC_QUICK_LAUNCH
${If} ${HasSection} SEC_QUICK_LAUNCH
+ SetShellVarContext all
${If} ${FileExists} "$QUICKLAUNCH\${APPLICATION_NAME}.lnk"
Delete "$QUICKLAUNCH\${APPLICATION_NAME}.lnk"
${EndIf}
+ SetShellVarContext current
${EndIf}
!endif