wimbuilder2 icon indicating copy to clipboard operation
wimbuilder2 copied to clipboard

support Chinese softwares for English WIN10XPE

Open slorelee opened this issue 4 years ago • 11 comments

This feature request is reference in #25

As ADK can add the language cab, I think it can be done.

slorelee avatar May 07 '20 07:05 slorelee

另外个问题,我的ISO是英文版的,打开中文软件,文字全部变成了问号,这个有办法在WimBuilder里怎么设置一下成支持中文显示么?

slorelee avatar May 07 '20 07:05 slorelee

This feature request is reference in #25

As ADK can add the language cab, I think it can be done.

Do you mean it can be done by the user? If so, can you explain how? I want English Win10XPE to display both traditional and simplified characters on File Explorer too. From where can I download the following files? WinPE-FontSupport-Zh-CN.cab WinPE-FontSupport-Zh-TW.cab

Matthew-Wai avatar Jun 03 '20 04:06 Matthew-Wai

I want to get only "WinPE-FontSupport-Zh-TW.cab". Which features below should be selected?

Image 4

Matthew-Wai avatar Jul 22 '20 13:07 Matthew-Wai

I want to get only "WinPE-FontSupport-Zh-TW.cab". Which features below should be selected?

None of them. WinPE part was seperated from ADK. You need to download ADK WinPE Addons, not the ADK.

slorelee avatar Jul 24 '20 03:07 slorelee

Mr. Lee, you may ignore my question on 无忧启动 if you respond to my following request.

I have already copied "WinPE-FontSupport-ZH-TW.cab" and "zh-tw\lp.cab" into the following folder:

"\WimBuilder2\Projects\WIN10XPE\Language"

I intend to put the attached CMD script into the same folder. Please take a look at the script and tell me whether it is okay. Add_language.txt

If I use "WinPE-FontSupport-ZH-HK.cab" and "zh-tw\lp.cab", will it work? "zh-hk\lp.cab" does not exist in the following folder: "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs"

Matthew-Wai avatar Jul 24 '20 04:07 Matthew-Wai

\WimBuilder2\Projects\WIN10XPE\X\Windows\Fonts\

Mr. Lee, I have copied the following files into the above folder:

msjh.ttc simsun.ttc mingliu.ttc

Am I right in thinking that they will be copied into the following folder?

\sources\boot.wim\Windows\Fonts\

I intend to create WinPE from an English Windows ISO file, and I want WinPE able to display Chinese text in a file.

Matthew-Wai avatar Jul 24 '20 06:07 Matthew-Wai

Mr. Lee, I want a CMD script to be run after the ISO file has been created. Where should the script be located?

Matthew-Wai avatar Jul 24 '20 08:07 Matthew-Wai

Mr. Lee, I want a CMD script to be run after the ISO file has been created. Where should the script be located?

WimBuilder2\Projects\WIN10XPE_CustomFiles__CustomISO_.bat

you can make your custom CustomISO.bat in WimBuilder2\AppData\Projects\WIN10XPE_CustomFiles__CustomISO_.bat :PostISO rem your batch code goto :EOF

Or you can write a cmd file into WimBuilder2\test\testiso.cmd, and write the execute command testiso,cmd text on BUILD page.

slorelee avatar Jul 24 '20 10:07 slorelee

\WimBuilder2\Projects\WIN10XPE\X\Windows\Fonts\

Mr. Lee, I have copied the following files into the above folder:

msjh.ttc simsun.ttc mingliu.ttc

Am I right in thinking that they will be copied into the following folder?

\sources\boot.wim\Windows\Fonts\

I intend to create WinPE from an English Windows ISO file, and I want WinPE able to display Chinese text in a file.

if you have install.wim, you can use AddFiles to extract the files. if not, Yes, use the \X\Windows\Fonts folder, the font files will copy to boot.wim. and you need to export the next registry items.

main.bat

call AddFiles "@\Windows\Fonts\#nmsjh.ttc,msyhl.ttc,simsun.ttc,mingliu.ttc"
call RegCopy "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts"
call RegCopy "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont"
call RegCopy "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontMapper"

slorelee avatar Jul 24 '20 11:07 slorelee

Mr. Lee, my English version of "install.wim" has "msjh.ttc" and "simsun.ttc" but has no "mingliu.ttc". On my Chinese Win10XPE, if "mingliu.ttc" is missing, junk characters will appear as shown in the attached screenshot. I intend to use my English "install.wim". Is it necessary to copy "mingliu.ttc" into boot.wim so as to prevent junk characters?

+ 要有 mingliu ttc 才不會出現 亂碼--CanoScan LiDE driver

I intend to put my CMD script into "\WimBuilder2\Projects\Post_ISO.cmd". The script has to be run after the creation of the ISO file. Do I have to add :PostISO and goto :EOF as shown below?

:PostISO rem my CMD codes goto :EOF

Matthew-Wai avatar Jul 24 '20 11:07 Matthew-Wai

Please tell me whether you can find a mistake below:

\WimBuilder2\Projects\WIN10XPE\Matthew_Wai\Add_language.cmd

::========================================================= call PERegPorter.bat Tmp UNLOAD

cd /d "%~dp0" Dism /image:X: /add-package /packagepath:"WinPE-FontSupport-ZH-TW.cab" Dism /image:X: /add-package /packagepath:"zh-tw\lp.cab" Dism /image:X: /Get-Intl Dism /image:X: /Set-UILang:ZH-TW Dism /image:X: /Set-AllIntl:ZH-TW Dism /image:X: /Get-Intl

call PERegPorter.bat Tmp LOAD ::========================================================= call AddFiles "@\Windows\Fonts#nmsjh.ttc,simsun.ttc" call RegCopy "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" call RegCopy "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Console\TrueTypeFont" call RegCopy "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontMapper" ::=========================================================

Matthew-Wai avatar Jul 24 '20 14:07 Matthew-Wai