aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-06-21 11:29:15 +0200
committerGitHub <noreply@github.com>2022-06-21 11:29:15 +0200
commitefb1f4abf254cfb208e8c824928a66684c1ac81f (patch)
treeb7d5786c67bc85ef97f9006e680ac9f1ff7485a1
parent036a826b3ad5af9a31a02100b7542f57307209cd (diff)
parent251942323e53913112bf807cedf54c98ddc5a2a4 (diff)
downloadPrismLauncher-efb1f4abf254cfb208e8c824928a66684c1ac81f.tar.gz
PrismLauncher-efb1f4abf254cfb208e8c824928a66684c1ac81f.tar.bz2
PrismLauncher-efb1f4abf254cfb208e8c824928a66684c1ac81f.zip
Merge pull request #797 from kthchew/fix/update-shortcut
-rw-r--r--program_info/win_install.nsi.in3
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}