diff --git a/buildPy2exe.py b/buildPy2exe.py index 362fa32..0747702 100755 --- a/buildPy2exe.py +++ b/buildPy2exe.py @@ -286,7 +286,16 @@ NSIS_SCRIPT_TEMPLATE = r""" Call GetSize Call DriveSpace - Call Language + + $${GetParameters} $$0 + ClearErrors + $${GetOptions} $$0 "/LANG=" $$0 + $${IfNot} $${Errors} + $${AndIf} $$0 <> 0 + StrCpy $$LANGUAGE $$0 + $${Else} + Call Language + $${EndIf} FunctionEnd ;Language selection dialog