mirror of
https://github.com/slorelee/wimbuilder2.git
synced 2025-05-06 18:25:51 +08:00
update Slim_Safely.bat for keeping NLS files (zh-CN, zh-TW)
This commit is contained in:
parent
44fc38d759
commit
604e75a83c
@ -4,6 +4,7 @@ set WB_PE_OEMCP=*
|
||||
|
||||
rem known code page
|
||||
if "x%WB_PE_LANG%"=="xzh-CN" set "WB_PE_ACP=936" && set "WB_PE_OEMCP=936" && goto :END_CODEPAGE
|
||||
if "x%WB_PE_LANG%"=="xzh-TW" set "WB_PE_ACP=950" && set "WB_PE_OEMCP=950" && goto :END_CODEPAGE
|
||||
if "x%WB_PE_LANG%"=="xen-US" set "WB_PE_ACP=1252" && set "WB_PE_OEMCP=437" && goto :END_CODEPAGE
|
||||
|
||||
for /f "tokens=3" %%i in ('reg query HKLM\Tmp_SYSTEM\ControlSet001\Control\Nls\CodePage /v ACP') do (
|
||||
|
@ -75,6 +75,12 @@ call :KEEP_FILES \Windows\System32\ "C_1252.NLS,C_28591.NLS,C_437.NLS,C_20127.NL
|
||||
if not "x%WB_PE_ACP%"=="x1252" (
|
||||
call :KEEP_FILE \Windows\System32\C_%WB_PE_ACP%.NLS
|
||||
)
|
||||
if "x%WB_PE_ACP%"=="x936" (
|
||||
call :KEEP_FILE \Windows\System32\C_950.NLS
|
||||
)
|
||||
if "x%WB_PE_ACP%"=="x950" (
|
||||
call :KEEP_FILE \Windows\System32\C_936.NLS
|
||||
)
|
||||
if not "x%WB_PE_OEMCP%"=="x437" (
|
||||
call :KEEP_FILE \Windows\System32\C_%WB_PE_OEMCP%.NLS
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user