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
|
||||
; remove all the npp shortcuts from current user
|
||||
Delete "$DESKTOP\Notepad++.lnk"
|
||||
Delete "$SMPROGRAMS\Notepad++.lnk"
|
||||
Delete "$SMPROGRAMS\${APPNAME}\Notepad++.lnk"
|
||||
Delete "$SMPROGRAMS\${APPNAME}\readme.lnk"
|
||||
Delete "$SMPROGRAMS\${APPNAME}\Uninstall.lnk"
|
||||
@ -274,8 +275,7 @@ Function shortcutLinkManagement
|
||||
SetOutPath "$INSTDIR\"
|
||||
|
||||
; add all the npp shortcuts for all user or current user
|
||||
CreateDirectory "$SMPROGRAMS\${APPNAME}"
|
||||
CreateShortCut "$SMPROGRAMS\${APPNAME}\Notepad++.lnk" "$INSTDIR\notepad++.exe"
|
||||
CreateShortCut "$SMPROGRAMS\Notepad++.lnk" "$INSTDIR\notepad++.exe"
|
||||
${If} $createShortcutChecked == ${BST_CHECKED}
|
||||
CreateShortCut "$DESKTOP\Notepad++.lnk" "$INSTDIR\notepad++.exe"
|
||||
${EndIf}
|
||||
|
@ -170,6 +170,7 @@ FunctionEnd
|
||||
SetShellVarContext all
|
||||
|
||||
Delete "$DESKTOP\Notepad++.lnk"
|
||||
Delete "$SMPROGRAMS\Notepad++.lnk"
|
||||
Delete "$SMPROGRAMS\Notepad++\Notepad++.lnk"
|
||||
Delete "$SMPROGRAMS\Notepad++\readme.lnk"
|
||||
|
||||
@ -203,6 +204,7 @@ Section Uninstall
|
||||
SetShellVarContext all ; make context for all user
|
||||
|
||||
Delete "$DESKTOP\Notepad++.lnk"
|
||||
Delete "$SMPROGRAMS\Notepad++.lnk"
|
||||
Delete "$SMPROGRAMS\${APPNAME}\Notepad++.lnk"
|
||||
Delete "$SMPROGRAMS\${APPNAME}\readme.lnk"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user