aboutsummaryrefslogtreecommitdiff
path: root/program_info
diff options
context:
space:
mode:
Diffstat (limited to 'program_info')
-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}