Add Multilingual Support to Windows 10 Distribution - automated batch script

Discussion in 'Windows 10' started by abbodi1406, Mar 30, 2016.

  1. liliactr

    liliactr MDL Addicted

    Sep 3, 2009
    530
    188
    30
  2. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,666
    340
    Just download the listed FOD files and move on, the script will skip the unapplicable
     
  3. forumnoob2

    forumnoob2 MDL Novice

    Aug 30, 2018
    3
    0
    0
    (Sorry for my bad english) Please, can someone make a video or a gif explaining how to create a Windows 11 IoT Enterprise LTSC pt-BR ISO (from 26100.1.240331-1435.ge_release_CLIENT_ENTERPRISES_OEM_x64FRE_en-us.iso), using "26100.1.240331-1435.ge_release_amd64fre_CLIENT_LOF_PACKAGES_OEM.iso" language pack?
     
  4. shhnedo

    shhnedo MDL Expert

    Mar 20, 2011
    1,826
    2,426
    60
    There's a readme.txt, you'll find all needed instructions there. Read it instead of destroying your attention span with videos all the time.
     
  5. forumnoob2

    forumnoob2 MDL Novice

    Aug 30, 2018
    3
    0
    0
    #825 forumnoob2, Jun 26, 2024
    Last edited: Jun 26, 2024
    I've already read that, but I need more details. For example, I don't know if the ISOs I mentioned are up to date, what are the differences between language packs, ondemand packs and updates files.
    I need more information about the W10UI.ini settings.
    Where do I put the source ISO and language pack ISO?
    Do I have to extract both ISOs? If so, where do I put those folders?
    I'm asking these questions because there is no other tutorial on the internet.
     
  6. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,306
    450
    What does this have to do with the adding of Language files, if you want it to be uptodate then add the updates and LATEST w10ui to the updates folder, as mentioned in the readme.

    Also mentioned in its readme, but you can simply ignore the ini when using the w10Ui script in the W10MUI scenario.

    Source ISO next to the script, language pack ISO is not used, read the readme and/or the txt files inside the "Languages" folder and the "Ondemands" folder.

    The script will extract the source ISO, the only ISO used in this script.
     
  7. forumnoob2

    forumnoob2 MDL Novice

    Aug 30, 2018
    3
    0
    0
    What are these update files? There is no "readme" inside the Updates folder specifying these files and where I should get them.

    Inside the folders there is "26100-LPs" and "26100-OnDemand" readme files containing links, but the ISO version is 26100.1 (Windows 11 IoT Enterprise LTSC 24H2 OEM).
    Can I use the links from 26100 readme files?
     
  8. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,578
    1,581
    150
    Its still 26100 so its the same nomatter numbers after the .
     
  9. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    49,647
    103,306
    450
    W10UI
     
  10. Outbreaker

    Outbreaker MDL Senior Member

    Jan 20, 2018
    333
    85
    10
    #830 Outbreaker, Jul 11, 2024
    Last edited: Jul 11, 2024
    @abbodi1406
    Is it possible to only add the WinPE files? Becaues the script always ask me for a cab/esd file in the Langs folder.

    Here is also an updated "aria2_uupdump" script that counts the download links and the downloaded files.
    Code:
    @echo off
    :: Limit the download speed, example: 1M, 500K "0 = unlimited"
    set "_l=0"
    
    set "_work=%~dp0"
    Set "CountLinks=0"
    Set "CountFiles=0"
    setlocal EnableDelayedExpansion
    pushd "!_work!"
    set _e=0
    if exist "aria2c.exe" set _e=1
    for %%i in (aria2c.exe) do @if not "%%~$PATH:i"=="" set _e=1
    if %_e%==0 echo.&echo Error: aria2c.exe is not detected&echo.&popd&pause&exit /b
    if not exist "aria2_links.txt" echo.&echo Error: aria2_links.txt is not found&echo.&popd&pause&exit /b
    echo.
    echo Downloading...
    for /f "tokens=* delims=" %%A in ('findstr /i /c:"getfile\.php" aria2_links.txt') do (
    set "_u=%%A"
    for /f "tokens=3 delims==" %%# in ("%%~A") do set "_f=%%#"
    call :DoD
    )
    echo.
    echo Finished.
    For %%f in (*.cab) do Set /a "CountFiles+=1"
    For /f "tokens=*" %%c in ('Dir /b "%~dp0" 2^>NUL ^| FindStr /i /c:"basic-zh-tw-package-x86\.cab" /c:"basic-zh-hk-package-x86\.cab" /c:"fonts-hant-package-x86\.cab"') do Set /a "CountLinks=%CountLinks%-1"
    For /f "tokens=*" %%c in ('Dir /b "%~dp0" 2^>NUL ^| FindStr /i /c:"basic-zh-tw-package-amd64\.cab" /c:"basic-zh-hk-package-amd64\.cab" /c:"fonts-hant-package-amd64\.cab"') do Set /a "CountLinks=%CountLinks%-1"
    ECHO Download Links   = %CountLinks%
    ECHO Downloaded Files = %CountFiles%
    ECHO.
    echo.&echo Press any key to exit.&popd&pause >nul&exit /b
    
    :DoD
    ping -n 3 localhost >nul && aria2c.exe --async-dns=false --enable-http-keep-alive=false --conditional-get=true --file-allocation=none -x16 -s16 -c -R --max-overall-download-limit=%_l% -d . -o "%_f%" "%_u%"
    If ErrorLevel 0 Set /a "CountLinks=%CountLinks%+1"
    goto :eof
     
  11. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,666
    340
    Not really
    most of detection and variables depends on install.wim and main Langs files
     
  12. BubuXP

    BubuXP MDL Member

    Jul 21, 2009
    179
    86
    10
    #832 BubuXP, Jul 12, 2024
    Last edited: Jul 16, 2024
    Making an Italian W11 LTSC ISO.
    Italian LP files taken from:
    Code:
    26100.1.240331-1435.ge_release_amd64fre_CLIENT_LOF_PACKAGES_OEM.iso
    Integrated them with W10MUI. Main OS image added all needed packages.
    Some of the WinPE packages were skipped and I added them manually.
    Here is the list of the skipped .cab files:

    Code:
    in boot.wim, index 1 and 2
    
    winpe-atbroker_it-it.cab
    winpe-audiocore_it-it.cab
    winpe-audiodrivers_it-it.cab
    winpe-narrator_it-it.cab
    winpe-speech-tts_it-it.cab
    winpe-srh_it-it.cab
    
    Code:
    in Winre.wim (index 1 only)
    
    winpe-appxdeployment_it-it.cab
    winpe-appxpackaging_it-it.cab
    winpe-atbroker_it-it.cab
    winpe-audiocore_it-it.cab
    winpe-audiodrivers_it-it.cab
    winpe-connectivity_it-it.cab
    winpe-narrator_it-it.cab
    winpe-opcservices_it-it.cab
    winpe-speech-tts_it-it.cab
    winpe-srh_it-it.cab
    winpe-wifi_it-it.cab
    winpe-windowsupdate_it-it.cab
    
    I know they were skipped because en-US packages were installed for these but there were no it-IT packages with the same names (other packages after integrating the it-IT LPs have both en-US and it-IT version installed).

    Speaking of WinPE language packs: in the LP iso, on the same level of the WinPE it-it folder, there is a WinPE-Speech-TTS-it-IT.cab that is much bigger than the file with the almost identical name inside the it-it folder, because it probably contains some Italian synth voice, but I don't know. Is it managed by W10MUI? Is it necessary to install it? What's his purpose?

    EDIT: I'm answering myself about the WinPE-Speech-TTS packages.
    For a full language translation (example it-IT) you need:
    WinPE-Speech-TTS.cab - this is a core package for the TTS functionality in WinPE, it probably contains the TTS engine and also contain the en-US voice (so it doesn't exist a WinPE-Speech-TTS-en-US.cab);
    WinPE-Speech-TTS-it-IT.cab - this contains the it-IT voice without engine, and it depends on the WinPE-Speech-TTS package to work;
    winpe-speech-tts_it-it.cab - this is needed to translate the GUI text elements related to TTS. This exist in the winpe-speech-tts_en-us.cab variant. The package name differs from the voice packages only for the _[underscore] after tts instead of the -[minus] (if you don't considers the capital letters, as Windows is case-insensitive).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    17,190
    90,666
    340
    The script only support predefined known list of packages, which are require to localize setup

    it doesn't support or add any of those WinPE acks, even if exist
     
  14. axinglaila

    axinglaila MDL Novice

    Apr 28, 2020
    7
    1
    0
    #834 axinglaila, Jul 23, 2024
    Last edited: Jul 23, 2024
    How to remove en-US source language after Windows 11 IoT Enterprise LTSC 2024 integrates other languages with W10MUI, only single language
     
  15. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,578
    1,581
    150
    Does it say it removes languages? No, so it cant remove languages
     
  16. BubuXP

    BubuXP MDL Member

    Jul 21, 2009
    179
    86
    10
    #836 BubuXP, Jul 23, 2024
    Last edited: Jul 24, 2024
    Assuming that:
    - your language is ja-JP
    - you already integrated ja-JP LPs into the Win11 DVD located in C:\DVDwork
    - the install.wim image has been loaded in C:\mount11

    just copy-paste the following in an administrative command prompt (not Powershell):
    Code:
    dism /Image:C:\mount11 /Remove-Package ^
    /PackageName:Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~10.0.26100.1 ^
    /PackageName:Microsoft-Windows-LanguageFeatures-Speech-en-us-Package~31bf3856ad364e35~amd64~~10.0.26100.1 ^
    /PackageName:Microsoft-Windows-LanguageFeatures-TextToSpeech-en-us-Package~31bf3856ad364e35~amd64~~10.0.26100.1 ^
    /PackageName:Microsoft-Windows-LanguageFeatures-OCR-en-us-Package~31bf3856ad364e35~amd64~~10.0.26100.1 ^
    /PackageName:Microsoft-Windows-LanguageFeatures-Handwriting-en-us-Package~31bf3856ad364e35~amd64~~10.0.26100.1 ^
    /PackageName:Microsoft-Windows-LanguageFeatures-Basic-en-us-Package~31bf3856ad364e35~amd64~~10.0.26100.1
    dism /Image:C:\mount11 /Set-AllIntl:ja-JP
    dism /Image:C:\mount11 /Set-SKUIntlDefaults:ja-JP
    dism /Image:C:\mount11 /Gen-LangINI /Distribution:C:\DVDwork
    dism /Image:C:\mount11 /Set-SetupUILang:ja-JP /Distribution:C:\DVDwork
    echo ok
    
    This is only for the main OS. If you want to remove en-US also from Winre.wim (the Windows integrated recovery) and/or from boot.wim (setup and recovery from DVD) let me know.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. axinglaila

    axinglaila MDL Novice

    Apr 28, 2020
    7
    1
    0
    ye
    yes, remove en-US language from Winre.wim, boot.wim, install.wim, and only keep ja-JP, thank you
     
  18. BubuXP

    BubuXP MDL Member

    Jul 21, 2009
    179
    86
    10
    #838 BubuXP, Jul 24, 2024
    Last edited: Jul 24, 2024
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. liliactr

    liliactr MDL Addicted

    Sep 3, 2009
    530
    188
    30
  20. 12 lb Turkey

    12 lb Turkey MDL Member

    Nov 24, 2022
    120
    64
    10