Install shortcuts for all users

Implements #2413
This commit is contained in:
Daniel Molkentin 2014-10-27 12:25:48 -04:00
parent 99d674c346
commit 56a907128a

View file

@ -512,7 +512,9 @@ SectionGroup $SectionGroup_Shortcuts
SetDetailsPrint textonly SetDetailsPrint textonly
DetailPrint $OPTION_SECTION_SC_DESKTOP_DetailPrint DetailPrint $OPTION_SECTION_SC_DESKTOP_DetailPrint
SetDetailsPrint listonly SetDetailsPrint listonly
SetShellVarContext all
CreateShortCut "$DESKTOP\${APPLICATION_NAME}.lnk" "$INSTDIR\${APPLICATION_EXECUTABLE}" CreateShortCut "$DESKTOP\${APPLICATION_NAME}.lnk" "$INSTDIR\${APPLICATION_EXECUTABLE}"
SetShellVarContext current
${MementoSectionEnd} ${MementoSectionEnd}
!endif !endif
@ -521,8 +523,10 @@ SectionGroup $SectionGroup_Shortcuts
SectionIn 1 2 SectionIn 1 2
SetDetailsPrint textonly SetDetailsPrint textonly
DetailPrint $OPTION_SECTION_SC_QUICK_LAUNCH_DetailPrint DetailPrint $OPTION_SECTION_SC_QUICK_LAUNCH_DetailPrint
SetShellVarContext all
SetDetailsPrint listonly SetDetailsPrint listonly
CreateShortCut "$QUICKLAUNCH\${APPLICATION_NAME}.lnk" "$INSTDIR\${APPLICATION_EXECUTABLE}" CreateShortCut "$QUICKLAUNCH\${APPLICATION_NAME}.lnk" "$INSTDIR\${APPLICATION_EXECUTABLE}"
SetShellVarContext current
${MementoSectionEnd} ${MementoSectionEnd}
!endif !endif
@ -672,18 +676,22 @@ Section Uninstall
;Desktop shortcut. ;Desktop shortcut.
!ifdef OPTION_SECTION_SC_DESKTOP !ifdef OPTION_SECTION_SC_DESKTOP
${If} ${HasSection} SEC_DESKTOP ${If} ${HasSection} SEC_DESKTOP
SetShellVarContext all
${If} ${FileExists} "$DESKTOP\${APPLICATION_NAME}.lnk" ${If} ${FileExists} "$DESKTOP\${APPLICATION_NAME}.lnk"
Delete "$DESKTOP\${APPLICATION_NAME}.lnk" Delete "$DESKTOP\${APPLICATION_NAME}.lnk"
${EndIf} ${EndIf}
SetShellVarContext current
${EndIf} ${EndIf}
!endif !endif
;Quick Launch shortcut. ;Quick Launch shortcut.
!ifdef OPTION_SECTION_SC_QUICK_LAUNCH !ifdef OPTION_SECTION_SC_QUICK_LAUNCH
${If} ${HasSection} SEC_QUICK_LAUNCH ${If} ${HasSection} SEC_QUICK_LAUNCH
SetShellVarContext all
${If} ${FileExists} "$QUICKLAUNCH\${APPLICATION_NAME}.lnk" ${If} ${FileExists} "$QUICKLAUNCH\${APPLICATION_NAME}.lnk"
Delete "$QUICKLAUNCH\${APPLICATION_NAME}.lnk" Delete "$QUICKLAUNCH\${APPLICATION_NAME}.lnk"
${EndIf} ${EndIf}
SetShellVarContext current
${EndIf} ${EndIf}
!endif !endif