aboutsummaryrefslogtreecommitdiff
path: root/program_info
diff options
context:
space:
mode:
authorKenneth Chew <kenneth.c0@protonmail.com>2022-06-15 00:41:52 -0400
committerKenneth Chew <kenneth.c0@protonmail.com>2022-06-15 00:41:52 -0400
commit8e3efec40fed65daa48bfd5290b552928e76d6f1 (patch)
tree74b99ef7dd3cb385516c8dd9590916659401ad68 /program_info
parent707a68cb4f71c8de5476064215f49ead011a9038 (diff)
downloadPrismLauncher-8e3efec40fed65daa48bfd5290b552928e76d6f1.tar.gz
PrismLauncher-8e3efec40fed65daa48bfd5290b552928e76d6f1.tar.bz2
PrismLauncher-8e3efec40fed65daa48bfd5290b552928e76d6f1.zip
Unselect shortcut installation by default if PolyMC is already installed
This is the same behavior as the `/NoShortcuts` switch.
Diffstat (limited to 'program_info')
-rw-r--r--program_info/win_install.nsi.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/program_info/win_install.nsi.in b/program_info/win_install.nsi.in
index e5687de7..98a87880 100644
--- a/program_info/win_install.nsi.in
+++ b/program_info/win_install.nsi.in
@@ -245,6 +245,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}