Add /NoShortcuts
parameter for Windows installer
This commit is contained in:
parent
cdd83c279c
commit
1ec7878c07
@ -141,7 +141,7 @@ Section "PolyMC"
|
||||
|
||||
SectionEnd
|
||||
|
||||
Section "Start Menu Shortcuts"
|
||||
Section "Start Menu Shortcuts" SHORTCUTS
|
||||
|
||||
CreateShortcut "$SMPROGRAMS\PolyMC.lnk" "$INSTDIR\polymc.exe" "" "$INSTDIR\polymc.exe" 0
|
||||
|
||||
@ -219,3 +219,15 @@ Section "Uninstall"
|
||||
RMDir "$INSTDIR"
|
||||
|
||||
SectionEnd
|
||||
|
||||
;--------------------------------
|
||||
|
||||
; Extra command line parameters
|
||||
|
||||
Function .onInit
|
||||
${GetParameters} $R0
|
||||
${GetOptions} $R0 "/NoShortcuts" $R1
|
||||
${IfNot} ${Errors}
|
||||
!insertmacro UnselectSection ${SHORTCUTS}
|
||||
${EndIf}
|
||||
FunctionEnd
|
||||
|
Loading…
Reference in New Issue
Block a user