Installer enhancement: Place program shortcut in top-level Start folder
Fix #2143, close #4342
This commit is contained in:
parent
ab903c4554
commit
a99fa9ae50
@ -258,6 +258,7 @@ FunctionEnd
|
|||||||
Function shortcutLinkManagement
|
Function shortcutLinkManagement
|
||||||
; remove all the npp shortcuts from current user
|
; remove all the npp shortcuts from current user
|
||||||
Delete "$DESKTOP\Notepad++.lnk"
|
Delete "$DESKTOP\Notepad++.lnk"
|
||||||
|
Delete "$SMPROGRAMS\Notepad++.lnk"
|
||||||
Delete "$SMPROGRAMS\${APPNAME}\Notepad++.lnk"
|
Delete "$SMPROGRAMS\${APPNAME}\Notepad++.lnk"
|
||||||
Delete "$SMPROGRAMS\${APPNAME}\readme.lnk"
|
Delete "$SMPROGRAMS\${APPNAME}\readme.lnk"
|
||||||
Delete "$SMPROGRAMS\${APPNAME}\Uninstall.lnk"
|
Delete "$SMPROGRAMS\${APPNAME}\Uninstall.lnk"
|
||||||
@ -274,8 +275,7 @@ Function shortcutLinkManagement
|
|||||||
SetOutPath "$INSTDIR\"
|
SetOutPath "$INSTDIR\"
|
||||||
|
|
||||||
; add all the npp shortcuts for all user or current user
|
; add all the npp shortcuts for all user or current user
|
||||||
CreateDirectory "$SMPROGRAMS\${APPNAME}"
|
CreateShortCut "$SMPROGRAMS\Notepad++.lnk" "$INSTDIR\notepad++.exe"
|
||||||
CreateShortCut "$SMPROGRAMS\${APPNAME}\Notepad++.lnk" "$INSTDIR\notepad++.exe"
|
|
||||||
${If} $createShortcutChecked == ${BST_CHECKED}
|
${If} $createShortcutChecked == ${BST_CHECKED}
|
||||||
CreateShortCut "$DESKTOP\Notepad++.lnk" "$INSTDIR\notepad++.exe"
|
CreateShortCut "$DESKTOP\Notepad++.lnk" "$INSTDIR\notepad++.exe"
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
@ -170,6 +170,7 @@ FunctionEnd
|
|||||||
SetShellVarContext all
|
SetShellVarContext all
|
||||||
|
|
||||||
Delete "$DESKTOP\Notepad++.lnk"
|
Delete "$DESKTOP\Notepad++.lnk"
|
||||||
|
Delete "$SMPROGRAMS\Notepad++.lnk"
|
||||||
Delete "$SMPROGRAMS\Notepad++\Notepad++.lnk"
|
Delete "$SMPROGRAMS\Notepad++\Notepad++.lnk"
|
||||||
Delete "$SMPROGRAMS\Notepad++\readme.lnk"
|
Delete "$SMPROGRAMS\Notepad++\readme.lnk"
|
||||||
|
|
||||||
@ -203,6 +204,7 @@ Section Uninstall
|
|||||||
SetShellVarContext all ; make context for all user
|
SetShellVarContext all ; make context for all user
|
||||||
|
|
||||||
Delete "$DESKTOP\Notepad++.lnk"
|
Delete "$DESKTOP\Notepad++.lnk"
|
||||||
|
Delete "$SMPROGRAMS\Notepad++.lnk"
|
||||||
Delete "$SMPROGRAMS\${APPNAME}\Notepad++.lnk"
|
Delete "$SMPROGRAMS\${APPNAME}\Notepad++.lnk"
|
||||||
Delete "$SMPROGRAMS\${APPNAME}\readme.lnk"
|
Delete "$SMPROGRAMS\${APPNAME}\readme.lnk"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user