diff --git a/PowerEditor/installer/nsisInclude/mainSectionFuncs.nsh b/PowerEditor/installer/nsisInclude/mainSectionFuncs.nsh index b0c969b8..917fbc1a 100644 --- a/PowerEditor/installer/nsisInclude/mainSectionFuncs.nsh +++ b/PowerEditor/installer/nsisInclude/mainSectionFuncs.nsh @@ -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} diff --git a/PowerEditor/installer/nsisInclude/uninstall.nsh b/PowerEditor/installer/nsisInclude/uninstall.nsh index fb6fc997..56beaac7 100644 --- a/PowerEditor/installer/nsisInclude/uninstall.nsh +++ b/PowerEditor/installer/nsisInclude/uninstall.nsh @@ -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"