Unselect shortcut installation by default if PolyMC is already installed

This is the same behavior as the `/NoShortcuts` switch.
This commit is contained in:
Kenneth Chew 2022-06-15 00:41:52 -04:00
parent 707a68cb4f
commit 8e3efec40f
No known key found for this signature in database
GPG Key ID: F17D3E14A07739DA

View File

@ -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}