Integrate Language Packs into Windows 8

Discussion in 'Windows 8' started by l2p2c2, Aug 11, 2012.

  1. l2p2c2

    l2p2c2 MDL Member

    Apr 23, 2010
    201
    224
    10
    #1 l2p2c2, Aug 11, 2012
    Last edited by a moderator: Apr 20, 2017
    Why this post?

    I wanted to make a localized Windows 8 DVD. I searched around the forums and found lots of information.
    But all the tutorials missed something. That's why I bundled all the information here.
    When you follow these steps, you have a fully localized windows 8 source.

    In the example i integrate the dutch language pack (on an windows 7 x64 system) into the windows 8 source. If you want to integrate another language, just rename set LANG=nl-NL with your languagecode.



    Wat will be localized?

    All the support programs on the DVD (like migration wizard)
    Windows Upgrade Install function when you start the install on a previous version
    Windows Clean Install function when you do a fresh install
    Windows PE environment
    Windows Recovery console
    And ofcourse the actual Windows Operating System



    What is needed?

    Windows 8 ADK (http://forums.mydigitallife.net/thr...RTM-milestone!?p=601126&viewfull=1#post601126)
    Windows 8 DVD/ISO (http://forums.mydigitallife.net/threads/35580-Microsoft-Windows-8-Professional-RTM-x86-x64-WZT)
    Windows 8 Language Pack (http://forums.mydigitallife.net/threads/34664-Windows-8-Language-Packs)
    WinPE Language Pack (under C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\ after installation of ADK)



    How to create the Windows 7 MUI DVD?

    1) Install Windows 8 ADK

    2) Create following directory structure

    Code:
    C:\W7MUI\ 
    C:\W7MUI\DVD\        place here the contents of the Windows 8 DVD/ISO
    C:\W7MUI\LP\         place here your language pack (lp.cab)
    C:\W7MUI\LP\WinPE\   place here the WinPE language files (all the .cab files)
    C:\W7MUI\LP\EXT\
    C:\W7MUI\WIM\
    C:\W7MUI\TEMP\
    
    3) Copy following code to a textfile and call it "integrateLP.cmd" and place it in C:\W7MUI. Don't forget to change the line "set LANG=nl-NL" to your languagecode! Execute it as Administrator!

    Code:
    @echo off
    cls
    setLocal EnableDelayedExpansion
    set LANG=nl-NL
    Dism /Mount-Wim /WimFile:C:\W7MUI\DVD\sources\boot.wim /index:1 /MountDir:C:\W7MUI\WIM
    Dism /image:C:\W7MUI\WIM /add-package /packagepath:C:\W7MUI\LP\WinPE
    Dism /Unmount-Wim /MountDir:C:\W7MUI\WIM /commit
    Dism /Mount-Wim /WimFile:C:\W7MUI\DVD\sources\boot.wim /index:2 /MountDir:C:\W7MUI\WIM
    Dism /image:C:\W7MUI\WIM /add-package /packagepath:C:\W7MUI\LP\WinPE
    Dism /image:C:\W7MUI\WIM /Gen-LangINI /distribution:C:\W7MUI\WIM
    Dism /Unmount-Wim /MountDir:C:\W7MUI\WIM /commit
    Dism /Mount-Wim /WimFile:C:\W7MUI\DVD\sources\install.wim /index:1 /MountDir:C:\W7MUI\WIM
    Dism /Image:C:\W7MUI\WIM /Add-Package /PackagePath:C:\W7MUI\LP\lp.cab
    Dism /image:C:\W7MUI\WIM /Set-SKUIntlDefaults:%LANG% /Gen-LangINI /Set-SetupUILang:%LANG% /distribution:C:\W7MUI\DVD
    xcopy C:\W7MUI\WIM\windows\system32\recovery\WinRE.wim C:\W7MUI\Temp /cheriky
    Dism /Unmount-Wim /MountDir:C:\W7MUI\WIM /commit
    Dism /Mount-Wim /WimFile:C:\W7MUI\Temp\WinRE.wim /index:1 /MountDir:C:\W7MUI\WIM
    Dism /image:C:\W7MUI\WIM /add-package /packagepath:C:\W7MUI\LP\WinPE
    Dism /Unmount-Wim /MountDir:C:\W7MUI\WIM /commit
    Dism /Mount-Wim /WimFile:C:\W7MUI\DVD\Sources\install.wim /index:1 /MountDir:C:\W7MUI\WIM
    xcopy C:\W7MUI\Temp\WinRE.wim C:\W7MUI\WIM\windows\system32\recovery /cheriky
    Dism /UnMount-Wim /MountDir:C:\W7MUI\WIM /Commit
    Dism /Mount-Wim /WimFile:C:\W7MUI\DVD\sources\install.wim /index:2 /MountDir:C:\W7MUI\WIM
    Dism /Image:C:\W7MUI\WIM /Add-Package /PackagePath:C:\W7MUI\LP\lp.cab
    xcopy C:\W7MUI\Temp\WinRE.wim C:\W7MUI\WIM\windows\system32\recovery /cheriky
    Dism /Unmount-Wim /MountDir:C:\W7MUI\WIM /commit
    erase /F /Q C:\W7MUI\Temp\WinRE.wim
    expand "C:\W7MUI\LP\lp.cab" -f:* "C:\W7MUI\LP\EXT"
    xcopy "C:\W7MUI\LP\EXT\Setup\Sources\%LANG%\*" "C:\W7MUI\DVD\Sources\%LANG%\" /cherkyi
    xcopy "C:\W7MUI\LP\EXT\setup\sources\%LANG%\cli\*" "C:\W7MUI\DVD\Sources\%LANG%\" /cherkyi
    RD /S /Q "C:\W7MUI\DVD\Sources\%LANG%\cli"
    RD /S /Q "C:\W7MUI\DVD\Sources\%LANG%\dlmanifests"
    RD /S /Q "C:\W7MUI\DVD\Sources\%LANG%\etwproviders"
    RD /S /Q "C:\W7MUI\DVD\Sources\%LANG%\replacementmanifests"
    mkdir "C:\W7MUI\DVD\Sources\dlmanifests\%LANG%"
    mkdir "C:\W7MUI\DVD\Sources\replacementmanifests\%LANG%"
    xcopy "C:\W7MUI\LP\EXT\Setup\Sources\%LANG%\dlmanifests\microsoft-windows-storagemigration\*" "C:\W7MUI\DVD\Sources\dlmanifests\microsoft-windows-storagemigration\%LANG%\" /cherkyi
    xcopy "C:\W7MUI\LP\EXT\Setup\Sources\%LANG%\dlmanifests\microsoft-windows-sxs\*" "C:\W7MUI\DVD\sources\dlmanifests\microsoft-windows-sxs\%LANG%\" /cherkyi
    xcopy "C:\W7MUI\LP\EXT\Setup\Sources\%LANG%\replacementmanifests\microsoft-windows-offlinefiles-core\*" "C:\W7MUI\DVD\Sources\replacementmanifests\microsoft-windows-offlinefiles-core\%LANG%\" /cherkyi
    xcopy "C:\W7MUI\LP\EXT\Setup\Sources\%LANG%\replacementmanifests\microsoft-windows-storagemigration\*" "C:\W7MUI\DVD\Sources\replacementmanifests\microsoft-windows-storagemigration\%LANG%\" /cherkyi
    xcopy "C:\W7MUI\LP\EXT\Setup\Sources\%LANG%\replacementmanifests\microsoft-windows-sxs\*" "C:\W7MUI\DVD\Sources\replacementmanifests\microsoft-windows-sxs\%LANG%\" /cherkyi
    xcopy "C:\W7MUI\LP\EXT\Setup\Sources\%LANG%\etwproviders\*" "C:\W7MUI\DVD\Sources\etwproviders\%LANG%\" /cherkyi
    xcopy "C:\W7MUI\LP\EXT\Setup\Sources\%LANG%\etwproviders\*" "C:\W7MUI\DVD\support\logging\%LANG%\" /cherkyi
    xcopy "C:\W7MUI\LP\EXT\Setup\Sources\%LANG%\input.dll.mui" "C:\W7MUI\DVD\support\migwiz\%LANG%\" /chrkyi
    cd c:\w7mui\lp
    dir /b /s "credits.rtf" > C:\W7MUI\TEMP\search.txt
    for /f "tokens=* delims= " %%a in (C:\W7MUI\TEMP\search.txt) do (set ZOEKVELD=%%a)
    xcopy %ZOEKVELD% "C:\W7MUI\DVD\Sources\%LANG%\" /chriky
    ERASE /F /Q C:\W7MUI\TEMP\search.txt
    dir /b /s "migautoplay.exe.mui" > C:\W7MUI\TEMP\search.txt
    for /f "tokens=* delims= " %%a in (C:\W7MUI\TEMP\search.txt) do (set ZOEKVELD=%%a)
    xcopy %ZOEKVELD% "C:\W7MUI\DVD\support\migwiz\%LANG%\" /chriky
    ERASE /F /Q C:\W7MUI\TEMP\search.txt
    dir /b /s "migres.dll.mui" > C:\W7MUI\TEMP\search.txt
    for /f "tokens=* delims= " %%a in (C:\W7MUI\TEMP\search.txt) do (set ZOEKVELD=%%a)
    xcopy %ZOEKVELD% "C:\W7MUI\DVD\support\migwiz\%LANG%\" /chriky
    ERASE /F /Q C:\W7MUI\TEMP\search.txt
    dir /b /s "migsetup.exe.mui" > C:\W7MUI\TEMP\search.txt
    for /f "tokens=* delims= " %%a in (C:\W7MUI\TEMP\search.txt) do (set ZOEKVELD=%%a)
    xcopy %ZOEKVELD% "C:\W7MUI\DVD\support\migwiz\%LANG%\" /chriky
    ERASE /F /Q C:\W7MUI\TEMP\search.txt
    dir /b /s "migwiz.exe.mui" > C:\W7MUI\TEMP\search.txt
    for /f "tokens=* delims= " %%a in (C:\W7MUI\TEMP\search.txt) do (set ZOEKVELD=%%a)
    xcopy %ZOEKVELD% "C:\W7MUI\DVD\support\migwiz\%LANG%\" /chriky
    ERASE /F /Q C:\W7MUI\TEMP\search.txt
    dir /b /s "postmig.exe.mui" > C:\W7MUI\TEMP\search.txt
    for /f "tokens=* delims= " %%a in (C:\W7MUI\TEMP\search.txt) do (set ZOEKVELD=%%a)
    xcopy %ZOEKVELD% "C:\W7MUI\DVD\support\migwiz\%LANG%\" /chriky
    ERASE /F /Q C:\W7MUI\TEMP\search.txt
    dir /b /s "wet.dll.mui" > C:\W7MUI\TEMP\search.txt
    for /f "tokens=* delims= " %%a in (C:\W7MUI\TEMP\search.txt) do (set ZOEKVELD=%%a)
    xcopy %ZOEKVELD% "C:\W7MUI\DVD\support\migwiz\%LANG%\" /chriky
    ERASE /F /Q C:\W7MUI\TEMP\search.txt
    dir /b /s "erofflps.txt" > C:\W7MUI\TEMP\search.txt
    for /f "tokens=* delims= " %%a in (C:\W7MUI\TEMP\search.txt) do (set ZOEKVELD=%%a)
    xcopy %ZOEKVELD% "C:\W7MUI\DVD\Sources\%LANG%\" /chriky
    ERASE /F /Q C:\W7MUI\TEMP\search.txt
    dir /b /s "privacy.rtf" > C:\W7MUI\TEMP\search.txt
    for /f "tokens=* delims= " %%a in (C:\W7MUI\TEMP\search.txt) do (set ZOEKVELD=%%a)
    xcopy %ZOEKVELD% "C:\W7MUI\DVD\Sources\%LANG%\" /chriky
    ERASE /F /Q C:\W7MUI\TEMP\search.txt
    dir /b /s "oobe_help_opt_in_details.rtf" > C:\W7MUI\TEMP\search.txt
    for /f "tokens=* delims= " %%a in (C:\W7MUI\TEMP\search.txt) do (set ZOEKVELD=%%a)
    xcopy %ZOEKVELD% "C:\W7MUI\DVD\Sources\%LANG%\" /chriky
    ERASE /F /Q C:\W7MUI\TEMP\search.txt
    RD /S /Q "C:\W7MUI\LP\EXT"
    mkdir "C:\W7MUI\LP\EXT"
    expand "C:\W7MUI\LP\WinPE\WINPE-SETUP_%LANG%.CAB" -f:* "C:\W7MUI\LP\EXT"
    dir /b /s "setup_help_upgrade_or_custom.rtf" > C:\W7MUI\TEMP\search.txt
    for /f "tokens=* delims= " %%a in (C:\W7MUI\TEMP\search.txt) do (set ZOEKVELD=%%a)
    xcopy %ZOEKVELD% "C:\W7MUI\DVD\Sources\%LANG%\" /chriky
    ERASE /F /Q C:\W7MUI\TEMP\search.txt
    dir /b /s "vofflps.rtf" > C:\W7MUI\TEMP\search.txt
    for /f "tokens=* delims= " %%a in (C:\W7MUI\TEMP\search.txt) do (set ZOEKVELD=%%a)
    xcopy %ZOEKVELD% "C:\W7MUI\DVD\Sources\%LANG%\" /chriky
    ERASE /F /Q C:\W7MUI\TEMP\search.txt
    RD /S /Q "C:\W7MUI\LP\EXT"
    mkdir "C:\W7MUI\LP\EXT"
    "C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Deployment Tools\x86\Oscdimg\oscdimg.exe" -h -u2 -m -bC:\W7MUI\DVD\boot\etfsboot.com -lHRM_CCSA_X64FRE_%LANG%_DV5 C:\W7MUI\DVD C:\W7MUI\Windows8.iso
    pause
    exit
    
     
  2. Larson

    Larson MDL Junior Member

    Jul 30, 2009
    57
    12
    0
  3. l2p2c2

    l2p2c2 MDL Member

    Apr 23, 2010
    201
    224
    10
    It does not remove the english language. I'll look into it.
     
  4. smartboyhw

    smartboyhw MDL Language Packs Specialist

    Feb 22, 2012
    332
    266
    10
    I'm wondering: Shouldn't WinPE LPs be in the Windows 8 ADK, which is available for Windows Ecosystem Readiness program users in Microsoft Connect?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. VelleX

    VelleX MDL Member

    Jul 14, 2009
    203
    26
    10
    #5 VelleX, Aug 12, 2012
    Last edited by a moderator: Apr 20, 2017
    yes, it is.
    Code:
    C:\Program Files (x86)\Windows Kits\8.0\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\\WinPE_OCs
    "...\WinPE_OCs\de-de\lp.cab"
    "...\WinPE_OCs\de-de\WinPE-DismCmdlets_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-Dot3Svc_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-EnhancedStorage_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-HTA_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-LegacySetup_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-MDAC_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-NetFx4_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-PowerShell3_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-PPPoE_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-Rejuv_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-RNDIS_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-Scripting_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-SecureStartup_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-Setup_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-Setup-Client_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-Setup-Server_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-SRT_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-StorageWMI_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-WDS-Tools_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-WinReCfg_de-de.cab"
    "...\WinPE_OCs\de-de\WinPE-WMI_de-de.cab"
    
     
  6. Stannieman

    Stannieman MDL Guru

    Sep 4, 2009
    2,232
    1,803
    90
    #6 Stannieman, Aug 12, 2012
    Last edited by a moderator: Apr 20, 2017
    So WinPE can run .net programs now?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. VelleX

    VelleX MDL Member

    Jul 14, 2009
    203
    26
    10
    #7 VelleX, Aug 12, 2012
    Last edited: Aug 12, 2012
    Maybe?
    There is a .cab package to include in WinPE

    WinPE-NetFx4.cab (.NET Framework 4 for WinPE; WinPE-NetFx4-Package)
     
  8. joenamond

    joenamond MDL Junior Member

    Aug 3, 2012
    90
    7
    0
    #8 joenamond, Aug 12, 2012
    Last edited: Aug 12, 2012
    I was getting some kind of error that stopped the cmd processs and at the same time I was asked if WIM/windows/system32/recovery was a file or a folder, which was very weird.
    I picked folder, 5-10 minutes later it created the .iso. Though I'm really unsure about this because I recived a lot of errors. Sure most of them were "file not applicable" errors but there was one error which stopped the processes,
    something about having no acess. Can't remember the error but i think it was error 50 or soemthing. The process contunied as soon as I picked either file or folder on the system32/recovery question.
     
  9. Stannieman

    Stannieman MDL Guru

    Sep 4, 2009
    2,232
    1,803
    90
    Weird. I'd think they would include 4.5 rather than 4.0...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. l2p2c2

    l2p2c2 MDL Member

    Apr 23, 2010
    201
    224
    10
    #10 l2p2c2, Aug 16, 2012
    Last edited by a moderator: Apr 20, 2017
    (OP)
    I haven't been able to test is properly, but i think this is the code to remove the english language pack
    Code:
    @echo off
    cls
    set LANG=nl-NL
    Dism /Mount-Wim /WimFile:C:\W7MUI\DVD\sources\boot.wim /index:1 /MountDir:C:\W7MUI\WIM
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:Microsoft-Windows-WinPE-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-EnhancedStorage-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-IbsProvider-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-Scripting-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-SecureStartup-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-SRT-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-WDS-Tools-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-WMI-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    Dism /Unmount-Wim /MountDir:C:\W7MUI\WIM /commit
    Dism /Mount-Wim /WimFile:C:\W7MUI\DVD\sources\boot.wim /index:2 /MountDir:C:\W7MUI\WIM
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:Microsoft-Windows-WinPE-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-EnhancedStorage-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-IbsProvider-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-Scripting-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-SecureStartup-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-SRT-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-WDS-Tools-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-WMI-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-Setup-Client-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-Setup-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    Dism /image:C:\W7MUI\WIM /Gen-LangINI /distribution:C:\W7MUI\WIM
    Dism /Unmount-Wim /MountDir:C:\W7MUI\WIM /commit
    Dism /Mount-Wim /WimFile:C:\W7MUI\DVD\sources\install.wim /index:1 /MountDir:C:\W7MUI\WIM
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    Dism /image:C:\W7MUI\WIM /Set-SKUIntlDefaults:%LANG% /Gen-LangINI /Set-SetupUILang:%LANG% /distribution:C:\W7MUI\DVD
    xcopy C:\W7MUI\WIM\windows\system32\recovery\WinRE.wim C:\W7MUI\Temp /cheriky
    Dism /Unmount-Wim /MountDir:C:\W7MUI\WIM /commit
    Dism /Mount-Wim /WimFile:C:\W7MUI\Temp\WinRE.wim /index:1 /MountDir:C:\W7MUI\WIM
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:Microsoft-Windows-WinPE-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-EnhancedStorage-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-IbsProvider-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-Scripting-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-SecureStartup-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-SRT-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-WDS-Tools-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-WMI-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-Setup-Client-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:WinPE-Setup-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    Dism /Unmount-Wim /MountDir:C:\W7MUI\WIM /commit
    Dism /Mount-Wim /WimFile:C:\W7MUI\DVD\Sources\install.wim /index:1 /MountDir:C:\W7MUI\WIM
    xcopy C:\W7MUI\Temp\WinRE.wim C:\W7MUI\WIM\windows\system32\recovery  /cheriky
    Dism /UnMount-Wim /MountDir:C:\W7MUI\WIM /Commit
    Dism /Mount-Wim /WimFile:C:\W7MUI\DVD\sources\install.wim /index:2 /MountDir:C:\W7MUI\WIM
    dism /image:C:\W7MUI\WIM /Remove-Package /PackageName:Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~6.2.9200.16384
    xcopy C:\W7MUI\Temp\WinRE.wim C:\W7MUI\WIM\windows\system32\recovery  /cheriky
    Dism /Unmount-Wim /MountDir:C:\W7MUI\WIM /commit
    erase /F /Q C:\W7MUI\Temp\WinRE.wim
    RD /S /Q "C:\W7MUI\DVD\Sources\en-us"
    RD /S /Q "C:\W7MUI\DVD\Sources\dlmanifests\en-us"
    RD /S /Q "C:\W7MUI\DVD\Sources\replacementmanifests\en-us"
    RD /S /Q "C:\W7MUI\DVD\Sources\dlmanifests\microsoft-windows-storagemigration\en-us"
    RD /S /Q "C:\W7MUI\DVD\sources\dlmanifests\microsoft-windows-sxs\en-us\"
    RD /S /Q "C:\W7MUI\DVD\Sources\replacementmanifests\microsoft-windows-offlinefiles-core\en-us"
    RD /S /Q "C:\W7MUI\DVD\Sources\replacementmanifests\microsoft-windows-storagemigration\en-us"
    RD /S /Q "C:\W7MUI\DVD\Sources\replacementmanifests\microsoft-windows-sxs\en-us"
    RD /S /Q "C:\W7MUI\DVD\Sources\etwproviders\en-us"
    RD /S /Q "C:\W7MUI\DVD\support\logging\en-us"
    RD /S /Q "C:\W7MUI\DVD\support\migwiz\en-us"
    pause
    exit
    
     
  11. beech

    beech MDL Novice

    Mar 9, 2011
    1
    0
    0
    Hello l2p2c2,

    Thanks for the great post.

    Can you explain how I would go about adding multiple language packs to an image using the same process?

    I am looking to create instal media with 8 language packs and using en-US as the primary language - building on en-US base media.

    Thanks