diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-06-21 11:29:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-21 11:29:15 +0200 |
commit | efb1f4abf254cfb208e8c824928a66684c1ac81f (patch) | |
tree | b7d5786c67bc85ef97f9006e680ac9f1ff7485a1 /program_info | |
parent | 036a826b3ad5af9a31a02100b7542f57307209cd (diff) | |
parent | 251942323e53913112bf807cedf54c98ddc5a2a4 (diff) | |
download | PrismLauncher-efb1f4abf254cfb208e8c824928a66684c1ac81f.tar.gz PrismLauncher-efb1f4abf254cfb208e8c824928a66684c1ac81f.tar.bz2 PrismLauncher-efb1f4abf254cfb208e8c824928a66684c1ac81f.zip |
Merge pull request #797 from kthchew/fix/update-shortcut
Diffstat (limited to 'program_info')
-rw-r--r-- | program_info/win_install.nsi.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/program_info/win_install.nsi.in b/program_info/win_install.nsi.in index e8290108..987798b6 100644 --- a/program_info/win_install.nsi.in +++ b/program_info/win_install.nsi.in @@ -164,7 +164,7 @@ Section "Start Menu Shortcut" SM_SHORTCUTS SectionEnd -Section "Desktop Shortcut" DESKTOP_SHORTCUTS +Section /o "Desktop Shortcut" DESKTOP_SHORTCUTS CreateShortcut "$DESKTOP\@Launcher_CommonName@.lnk" "$INSTDIR\@Launcher_APP_BINARY_NAME@.exe" "" "$INSTDIR\@Launcher_APP_BINARY_NAME@.exe" 0 @@ -252,6 +252,7 @@ Function .onInit ${GetParameters} $R0 ${GetOptions} $R0 "/NoShortcuts" $R1 ${IfNot} ${Errors} +${OrIf} ${FileExists} "$InstDir\@Launcher_APP_BINARY_NAME@.exe" !insertmacro UnselectSection ${SM_SHORTCUTS} !insertmacro UnselectSection ${DESKTOP_SHORTCUTS} ${EndIf} |