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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue