aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Chew <kenneth.c0@protonmail.com>2022-05-23 14:15:49 -0400
committerKenneth Chew <kenneth.c0@protonmail.com>2022-05-23 14:15:49 -0400
commit997bf9144258c89f4c1e5fb23d7f3218790ac5ea (patch)
treec2bbbb0bf53a0524c353d3cc85d4d54db556df9c
parentdca4ea5ceaa30f1285570d2bf32ea112118b9204 (diff)
downloadPrismLauncher-997bf9144258c89f4c1e5fb23d7f3218790ac5ea.tar.gz
PrismLauncher-997bf9144258c89f4c1e5fb23d7f3218790ac5ea.tar.bz2
PrismLauncher-997bf9144258c89f4c1e5fb23d7f3218790ac5ea.zip
Add desktop shortcut to Windows installer
-rw-r--r--program_info/win_install.nsi12
1 files changed, 10 insertions, 2 deletions
diff --git a/program_info/win_install.nsi b/program_info/win_install.nsi
index 4ca4de1a..cb4c8d1d 100644
--- a/program_info/win_install.nsi
+++ b/program_info/win_install.nsi
@@ -141,12 +141,18 @@ Section "PolyMC"
SectionEnd
-Section "Start Menu Shortcuts" SHORTCUTS
+Section "Start Menu Shortcut" SM_SHORTCUTS
CreateShortcut "$SMPROGRAMS\PolyMC.lnk" "$INSTDIR\polymc.exe" "" "$INSTDIR\polymc.exe" 0
SectionEnd
+Section "Desktop Shortcut" DESKTOP_SHORTCUTS
+
+ CreateShortcut "$DESKTOP\PolyMC.lnk" "$INSTDIR\polymc.exe" "" "$INSTDIR\polymc.exe" 0
+
+SectionEnd
+
;--------------------------------
; Uninstaller
@@ -215,6 +221,7 @@ Section "Uninstall"
RMDir /r $INSTDIR\styles
Delete "$SMPROGRAMS\PolyMC.lnk"
+ Delete "$DESKTOP\PolyMC.lnk"
RMDir "$INSTDIR"
@@ -228,6 +235,7 @@ Function .onInit
${GetParameters} $R0
${GetOptions} $R0 "/NoShortcuts" $R1
${IfNot} ${Errors}
- !insertmacro UnselectSection ${SHORTCUTS}
+ !insertmacro UnselectSection ${SM_SHORTCUTS}
+ !insertmacro UnselectSection ${DESKTOP_SHORTCUTS}
${EndIf}
FunctionEnd