mirror of https://github.com/Syncplay/syncplay
Add LANG Parameter (#460)
If LANG parameter set, don't show language dialog. Example usage: .\Syncplay-X.X.X-Setup.exe /S /LANG=1033
This commit is contained in:
parent
d71b7fca78
commit
1bbbab245f
|
@ -286,7 +286,16 @@ NSIS_SCRIPT_TEMPLATE = r"""
|
||||||
|
|
||||||
Call GetSize
|
Call GetSize
|
||||||
Call DriveSpace
|
Call DriveSpace
|
||||||
Call Language
|
|
||||||
|
$${GetParameters} $$0
|
||||||
|
ClearErrors
|
||||||
|
$${GetOptions} $$0 "/LANG=" $$0
|
||||||
|
$${IfNot} $${Errors}
|
||||||
|
$${AndIf} $$0 <> 0
|
||||||
|
StrCpy $$LANGUAGE $$0
|
||||||
|
$${Else}
|
||||||
|
Call Language
|
||||||
|
$${EndIf}
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
;Language selection dialog
|
;Language selection dialog
|
||||||
|
|
Loading…
Reference in New Issue