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:
Ata Gülalan 2021-10-17 15:40:57 +03:00 committed by GitHub
parent d71b7fca78
commit 1bbbab245f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 1 deletions

View File

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