Unselect shortcut installation by default if PolyMC is already installed
This is the same behavior as the `/NoShortcuts` switch.
This commit is contained in:
parent
707a68cb4f
commit
8e3efec40f
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user