Page 1 of 14 123411 ... LastLast
Results 1 to 10 of 135

Thread: HowTo : create a multi language Windows 7 DVD installer

  1. #1
    MDL Member
    Join Date
    27 Oct 2009
    Posts
    158
    Thanks
    5
    Thanked 36 Times in 15 Posts

    Default HowTo : create a multi language Windows 7 or Windows 2008 R2 server DVD installer.

    HowTo : create a multi language Windows 7 or Windows 2008 R2 server DVD installer.

    Preambule: what you'll need to localize an install DVD
    ----------


    a/ An existing Windows 7 instal DVD or ISO image, x86 and/or x64, or a Windows server 2008r2 x64 instal DVD or ISO image.
    b.1/ Download from MicroSoft Windows AIK For Win7 (Automated Installation Kit ), and install it on your PC.
    b.2/ Download from Supplement AIK For Win7 SP1, and copy/replace content to "C:\Program Files\Windows AIK\Tools\PETools"
    c/ Windows 7 Local Packs. You can search them on the forum.
    d/ Download Windows 7 x86 and/or x64, or Windows Server 2008r2 x64 language packs .


    Remark: You can use this procedure to transform a DVD from xx-XX language to yy-YY , by applying it to add yy-YY and then using command "Dism /image:C:\mnt /Remove-Package ..." to remove xx-XX language.


    References: Microsoft Windows MUI Knowledge Center

    ------------------------------------ Install Guide ---------------------------------------------------------

    You'll have to replace "fr-fr" in all commands with the language you want to install.
    You can add up to 34 languages at the same time to your DVD, for a total of 35, by repeating the appropriate commands in that procedure.
    The size of the final DVD depends of the number of language you add, of course.


    1/ Localize windows offline image: (The goal is to have multiple possibility regarding Windows 7 or Windows 2008r2 that will install on your PC.)
    --------------------------------


    Copy "install.wim" from install DVD/ISO "\sources" directory to a work directory on your PC. In my exemple "C:\Temp".

    Create an empty mount point directory somewhere ( "md C:\mnt" ), this will be used by Dism commands.

    Mount corresponding langage pack DVD/ISO in your cd drive. I mean take the DVD and put it in your DVD drive (V:\ in my exemple), or mount the ISO image file using daemon tools or similar.

    Start an AIK command prompt in administrator mode. Go into your work directory ( "cd C:\temp" ) then execute the followinfg commands:

    Code:
    Dism /Mount-Wim /WimFile:install.wim /index:1 /MountDir:C:\mnt
    Dism /image:C:\mnt /add-package /packagepath:V:\langpacks\fr-fr\lp.cab
    Dism /Unmount-Wim /MountDir:C:\mnt /commit
    Dism /Mount-Wim /WimFile:install.wim /index:2 /MountDir:C:\mnt
    Dism /image:C:\mnt /add-package /packagepath:V:\langpacks\fr-fr\lp.cab
    Dism /Unmount-Wim /MountDir:C:\mnt /commit
    Dism /Mount-Wim /WimFile:install.wim /index:3 /MountDir:C:\mnt
    Dism /image:C:\mnt /add-package /packagepath:V:\langpacks\fr-fr\lp.cab
    Dism /Unmount-Wim /MountDir:C:\mnt /commit.....
    Execute AddPackage process for every language pack you want to add (before unmounting), and for every index in install.wim by unmounting and mounting next index.
    (for example, msdn english windows 7 x86 dvd , have 5 indexes : 1=starter,2=homebasic,3=homepremium,4=professionna l,5=ultimate).

    Language pack DVD used (x86 or x64) must correspond to original DVD used (from which original "install.wim" come), of course.


    Windows7 Only : You can also add here Windows7 Local packs. There role is to add your installed W7 some localized themes and internet shortcuts.

    There's actually LocalPacks for 20 regions, and as usual x86 and x64 versions. For each language, Msoft install in standard one or some of them. Note that these local packs are installed standard for all Windows7 editions except STARTER which come with no local pack at all.
    . en-US installs contains:
    x86/x64 LocalPack-AU-Package
    x86/x64 LocalPack-CA-Package
    x86/x64 LocalPack-GB-Package
    x86/x64 LocalPack-US-Package
    x86/x64 LocalPack-ZA-Package

    . fr-FR installs contains:
    x86/x64 LocalPack-CA-Package
    x86/x64 LocalPack-FR-Package

    . for other W7 languages, I don't have the exact list. It can be found in WAIK user's guide, or you can check Microsoft MSDN Here

    To install, for each wim index (except STARTER edition), add the following command(s) before unmounting:
    Code:
    Dism /image:C:\mnt /add-package /packagepath:Microsoft-Windows-LocalPack-FR-Package.cab
    Note that in my example, I localized an English DVD to have French, so I don't had to Add_Package "CA" as it's already installed for English".



    2/ localize BOOT windows installer on DVD: (The goal is to give multiple choices of dialog language during Windows 7/2008r2 BOOT installation)
    ------------------------------------------


    Copy boot.wim from install DVD \sources directory and put Windows AIK install DVD in your cd drive ( v:\ ), or use daemon tools or equivalent to mount Windows AIK ISO image.

    Update 01/2011 (SP1) :
    ----------------------
    For Win 7 SP1, use "waik_supplement_en-us.iso" instead of Windows AIK ISO image
    replace all following directory reference "V:\WinPE_LangPacks\x86\fr-fr\" with "V:\X86\WINPE_FPS\FR-FR\"
    1st package name have changed from "lp.cab" to "lp_fr-fr.cab"


    Then execute:

    Code:
    Dism /Mount-Wim /WimFile:boot.wim /index:1 /MountDir:C:\mnt
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\lp.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-scripting_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-srt_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-wds-tools_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-wmi_fr-fr.cab
    Dism /Unmount-Wim /MountDir:C:\mnt /commit
    ... then
    Code:
    Dism /Mount-Wim /WimFile:boot.wim /index:2 /MountDir:C:\mnt
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\lp.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-setup_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-setup-client_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-scripting_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-srt_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-wds-tools_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-wmi_fr-fr.cab
    ...(see following remark)
    Dism /Unmount-Wim /MountDir:C:\mnt /commit
    Very important : In index 2 of "boot.wim" (Microsoft Windows Setup), before ummounting , edit file C:\mnt\sources\lang.ini . It must look like (with your language(s)) :
    Code:
    _________________________
    [Available UI Languages]
    en-US = 3
    fr-FR = 2
    
    [Fallback Languages]
    en-US = en-us
    
    _________________________
    Add in lang.ini all languages added during "install.wim" AND "boot.wim" customization. Only langages defined in this file will be a selectable choice for W7 installed version.
    (for example, if you want to keep setup dialog only in English, but installable W7 in en-EN and fr-FR, you have to add both to lang.ini, even if boot.wim haven't been localized in French)


    All .cab file used here for localising "boot.wim" are located on the Windows AIK DVD downloaded from microsoft under directory "\WinPE_LangPacks\x86" or "\WinPE_LangPacks\amd64". You use the directory that correspond to original DVD used (from which "boot.wim" come), of course.

    For Windows 2008r2 server : replace "winpe-setup-client_fr-fr.cab" with "winpe-setup-server_fr-fr.cab" for Index2.

    Do package install for every language pack you want to add (before unmounting).


    Nota:
    Here you have the opportunity to allow the choice during install of creating or not the 100Mb boot partition.
    Before unmounting index 2 of boot.wim, edit "c:\mnt\sources\WINSETUP.DLL" using an hex editor (like hexedit) :

    Rtm :
    x86 version : offset 0x77798h: replace 74 with EB
    x64 version : offset 0x84AC4h: replace 74 with EB

    Update 01/2011 (SP1) :
    ----------------------
    SP1 Rtm :
    x86 version : offset 0x77AF3h: replace 74 with EB
    x64 version : offset 0x84A58h: replace 74 with EB




    3/ Create the ISO DVD image Directory :
    ---------------------------------------


    Copy all your original Windows 7/2008r2 DVD in a work directory ( "C:\Temp\DVDmui\" in my exemple), and replace "boot.wim" and "install.wim" in the "C:\Temp\DVDmui\sources" directory with the ones you just created.

    (1)Option 1: before moving "install.wim", you can reduce its size a little, by using these commands :

    Code:
    imagex /export C:\Temp\install.wim 1 C:\temp\install_reduced.wim
    imagex /export C:\Temp\install.wim 2 C:\temp\install_reduced.wim
    imagex /export C:\Temp\install.wim 3 C:\temp\install_reduced.wim
    imagex /export C:\Temp\install.wim 4 C:\temp\install_reduced.wim
    imagex /export C:\Temp\install.wim 5 C:\temp\install_reduced.wim
    imagex /export C:\Temp\install.wim ............
    Do one imagex command for every index and use "install_reduced.wim" after renaming it to "install.wim". This will reorganize internal structures by recreating the file from scratch.


    (2)Option 2: you can customize the text that will display in the W7/W2008r2 Install popup choice during install by coding for each index in the install.WIM:
    Code:
    imagex /info your_install.wim #index "Name" "Description"
    That will display "Name" in the choice list and "Description" at the bottom of the panel when selecting this particular choice.

    example:

    Code:
    imagex /info DVDmui\sources\install.wim 1 "Windows7 Starter" "Windows 7 Starter 32bits edition"
    imagex /info DVDmui\sources\install.wim 2 "Windows7 HomeBasic" "Windows 7 Home Basic 32bits edition"
    imagex /info DVDmui\sources\install.wim 3 "Windows7 HomePremium" "Windows 7 Home Premium 32bits edition"
    ....
    As far as I know, You can't have "name" and "description" different for each language.


    (3)Option 3: at this stage, and in case you've created a x86/x64 MUI DVD, you can use the procedure that allows AIO W7 DVD to install using 32bits architecture and also repair x64 images, from DKANE and referenced here:

    Windows x86 and x64 AIO, full instructions

    Follow Stage 1 partially (copy x64 sources directory), and Stages 3 and 4.


    4/ localize UPGRADE windows installer on DVD: (The goal is to give multiple choices of dialog language during W7/W2008r2 UPGRADE installation)
    ---------------------------------------------


    This part have to be done manually. You need to have a DVD already in the target language. Put it in your V: DVD drive.

    Then copy from this DVD all directories named "fr-FR" to the "DVDmui\" tree.
    You'll have to copy :

    Windows 7:
    "V:\boot\fr-fr"
    "V:\sources\fr-FR"
    "V:\sources\dlmanifests\fr-fr"
    "V:\sources\dlmanifests\microsoft-windows-iasserver-migplugin\fr-fr"
    "V:\sources\dlmanifests\microsoft-windows-storagemigration\fr-fr"
    "V:\sources\etwproviders\fr-fr"
    "V:\sources\license\fr-fr"
    "V:\sources\replacementmanifests\fr-fr"
    "V:\sources\replacementmanifests\microsoft-windows-offlinefiles-core\fr-fr"
    "V:\support\logging\fr-fr"
    "V:\support\migwiz\fr-fr"

    Windows 2008r2:
    "V:\boot\fr-fr"
    "V:\sources\fr-FR"
    "V:\sources\dlmanifests\fr-fr"
    "V:\sources\dlmanifests\microsoft-windows-storagemigration\fr-fr"
    "V:\sources\etwproviders\fr-fr"
    "V:\sources\license\fr-fr"
    "V:\sources\replacementmanifests\fr-fr"
    "V:\sources\replacementmanifests\microsoft-windows-offlinefiles-core\fr-fr"
    "V:\support\adprep\fr-fr"
    "V:\support\logging\fr-fr"


    Note : In case you don't have the right localized DVD, you have to know that all these folders are identical on W7 and W2008r2 DVD, except "\sources\license\fr-fr\" folder, "\sources\fr-fr\readme.rtf" file, "\support\adprep\fr-fr\" folder which is specific to W2008r2 and "\support\migwiz\fr-fr\" folder which is specific to Windows7.

    So you can easily use a W7 DVD to localize W2008r2 and vice-versa, by using it indifferently for most folders.

    After localizing your boot.wim file (part 2 of this tuto), you can retrieve the right "\sources\license\fr-fr\" and "\sources\fr-fr\readme.rtf" inside boot.wim.

    Code:
    Dism /Mount-Wim /WimFile:boot.wim /index:2 /MountDir:C:\mnt
    Copy /Y C:\Mnt\sources\fr-fr\readme.rtf DVDMui\sources\fr-fr
    Xcopy C:\Mnt\sources\licenses\fr-fr\ DVDMui\sources\licenses\fr-fr\ /cherkiy
    Dism /UnMount-Wim /MountDir:C:\mnt /discard
    Finally, edit "DVDmui\sources\lang.ini" to contain:
    Code:
    _________________________
    [Available UI Languages]
    en-US = 3
    fr-FR = 2
    
    [Fallback Languages]
    en-US = en-us
    
    _________________________
    That's it. Now when you'll execute "Setup.exe" from the DVD in a running Windows, you'll get the same language choice menu as when you boot from DVD.


    5/ OPTIONNALLY : localize Windows Recovery Environnment: (The goal is to localize the recovery environment that you run when pressing F8 key during W7/W2008r2 boot, after install)
    -------------------------------------------------------------


    This recovery environment (RE) is architecture dependant, so there's one for x86 (W7) , and one for x64 (W7 and W2008r2) .
    RE boot file is named WinRE.WIM, and is located inside "INSTALL.WIM" in "windows\system32\recovery" folder. Later on, after installation, this WinRE.WIM file will be located in "C:\Recovery\nnnnnnnnn" hidden folder, from where it will be executed in case you press F8 during Windows boot.

    To localize it, you need first to extract it:

    Code:
    Dism /Mount-Wim /WimFile:DVDMui\Sources\install.wim /index:1 /MountDir:C:\mnt
    Copy C:\mnt\windows\system32\recovery\WinRE.WIM C:\Temp\WinRE32.WIM
    Dism /UnMount-Wim /MountDir:C:\mnt /Discard
    Call it WinRE32.WIM or WinRE64.WIM depending where it comes from.

    Then you localize it , in a similar way than for Boot.wim :

    Put Windows AIK install DVD in your cd drive ( v:\ ), or use daemon tools or equivalent to mount Windows AIK ISO image.

    Update 01/2011 (SP1) :
    ----------------------
    For Win 7 SP1, use "waik_supplement_en-us.iso" instead of Windows AIK ISO image
    replace all following directory reference "V:\WinPE_LangPacks\x86\fr-fr\" with "V:\X86\WINPE_FPS\FR-FR\" (same apply for amd64)
    1st package name have changed from "lp.cab" to "lp_fr-fr.cab"


    Code:
    Dism /Mount-Wim /WimFile:C:\Temp\WinRE32.WIM /index:1 /MountDir:C:\mnt
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\lp.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-setup_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-setup-client_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-scripting_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-srt_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-wds-tools_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\x86\fr-fr\winpe-wmi_fr-fr.cab
    Dism /Unmount-Wim /MountDir:C:\mnt /commit
    OR/AND:

    Code:
    Dism /Mount-Wim /WimFile:C:\Temp\WinRE64.WIM /index:1 /MountDir:C:\mnt
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\amd64\fr-fr\lp.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\amd64\fr-fr\winpe-setup_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\amd64\fr-fr\winpe-setup-client_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\amd64\fr-fr\winpe-scripting_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\amd64\fr-fr\winpe-srt_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\amd64\fr-fr\winpe-wds-tools_fr-fr.cab
    Dism /image:C:\mnt /add-package /packagepath:V:\WinPE_LangPacks\amd64\fr-fr\winpe-wmi_fr-fr.cab
    Dism /Unmount-Wim /MountDir:C:\mnt /commit
    The resulting files WinRE32.WIM or WinRE64.WIM need now to be re-injected into each one of the indexes of INSTALL.WIM.

    Code:
    Dism /Mount-Wim /WimFile:DVDMui\Sources\install.wim /index:1 /MountDir:C:\mnt
    Copy /Y C:\Temp\WinRE32.WIM C:\mnt\windows\system32\recovery\WinRE.WIM
    Dism /UnMount-Wim /MountDir:C:\mnt /Commit
    Dism /Mount-Wim /WimFile:DVDMui\Sources\install.wim /index:2 /MountDir:C:\mnt
    Copy /Y C:\Temp\WinRE32.WIM C:\mnt\windows\system32\recovery\WinRE.WIM
    Dism /UnMount-Wim /MountDir:C:\mnt /Commit
    ....
    You can re-arrange the order of the operations, to do this job during Part 1 of my TUTO, when localizing Install.WIM.

    It's important to use the exact same WinRE32.WIM or WinRE64.WIM for every indexes of your INSTALL.WIM image. If you don't (exemple: you localize each WinRE.WIM found in every index), then the resulting INSTALL.WIM will grow up about 170megs per index, as DISM will store each copy of WinRE.WIM instead of storing it only once.

    Now pressing F8 key during boot will give you access to the Recovery environment in the same language than Windows, instead of English only.



    6/ Finally, create the ISO image using oscdimg command :
    -------------------------------------------------------------------


    Code:
    oscdimg -bC:\Temp\DVDmui\boot\etfsboot.com -lW7_MUI_DVD -t07/14/2009,11:26:40 C:\Temp\DVDmui mui_windows_7.iso -u2 -m -h -o
    or
    oscdimg -bC:\Temp\DVDmui\boot\etfsboot.com -lW2008R2_MUI_DVD -t07/14/2009,11:33:28 C:\Temp\DVDmui mui_windows_2008r2.iso -u2 -m -h -o


    Annexe/ AIO creation script - 11 Win7 editions localized in 2 langages (English + another) :
    ---------------------------------------------------------------------------------------------------------


    This sample script realize nearly all operation of my method described here. This script must run in a WAIK command prompt session, in administrator mode. Windows explorer must be closed during run (else dism unmount action fails).

    This is the script I use personally and it needs no intervention. It can take a while before it finish, depending the hardware you have. With an Intel e8400 3Ghz, 6Gb ram and WD Caviar black 7200rpm disks it takes 1.5 hours for me.

    You need to create first all directories used here, and they have to be empty (it's important) .

    For this script to work you need to install Daemon tools lite (free software) , to mount ISO images as virtual DVD. DTLite have the advantage to have a command line interface (commands dtlite mount and unmount). First virtual DVD is number "0" and its letter is your choice in dtlite parameters.

    You need 50Gb free space on your working drive. All images indexes will be extracted and are all as big as the full image.



    Check and set all variables in the first part of this script first. My sample create 2 ISO images with English (already present in images) and French (added), one is x86 based , the other is x64 based. Both can install all 11 Windows 7 editions (x64 and x86, Starter , HB , HP , Pro , Ult , Ent).
    For other langage localization, you may have to check which LocalPack need to be added. Adding French to English, only "Windows-LocalPack-Fr-Package.cab" need to be added. I don't now precisely for other langages.

    When localizing to some Asian languages (Chinese, Japanese, Korean), you need to integrate more packages to Boot.WIM and WinRE.WIM.
    Find the lines "Rem Asian langages specifics :" in my script, and uncomment accordingly the 5 add-packages that follow (they appear 6 times total in the script, during Boot and WinRE customizations) , like this one :
    Rem Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-ja-jp.cab


    Code:
    
    Rem     ====================================
    Rem     ==  Set various variables         ==
    Rem     ====================================
    @Echo off
    set LangAdd1=fr
    set LangAdd2=Fr-fr
    Rem work directories (must exist and be empty)
    Rem ------------------------------------------
    set MntPoint=E:\Win7_SP1\mnt
    set MntPointWinRE=E:\Win7_SP1\mntRE
    set TempWim=E:\Win7_SP1\new_wims
    set IsoDVD86=E:\Win7_SP1\IsoDVD
    set IsoDVD64=E:\Win7_SP1\IsoDVDX
    Rem DVD simulated with Daemon Tool lite, letter and number :
    Rem --------------------------------------------------------
    set DVDLetter=U
    set DVDNumber=0
    Rem Path to Iso DVD of various versions of Windows 7 SP1 :
    Rem ------------------------------------------------------
    set W7x86AllIso=E:\7601.17514 SP1 RTM\Windows_7_RTM_SP1\en_windows_7_ultimate_with_sp1_x86_dvd_619077.iso
    set W7x86EntIso=E:\7601.17514 SP1 RTM\Windows_7_RTM_SP1\en_windows_7_enterprise_with_sp1_x86_dvd_620186.iso
    set W7x64AllIso=E:\7601.17514 SP1 RTM\Windows_7_RTM_SP1\en_windows_7_ultimate_with_sp1_x64_dvd_618240.iso
    set W7x64EntIso=E:\7601.17514 SP1 RTM\Windows_7_RTM_SP1\en_windows_7_enterprise_with_sp1_x64_dvd_620201.iso
    Rem Path to Iso DVD of x86 and x64 versions of langage packs SP1 :
    Rem --------------------------------------------------------------
    set x86LPackIso=E:\7601.17514 SP1 RTM\Langage packs\mu_windows_7_sp1_language_pack_x86_dvd_619716.iso
    set x64LPackIso=E:\7601.17514 SP1 RTM\Langage packs\mu_windows_7_sp1_language_pack_x64_dvd_619714.iso
    Rem Path to Iso DVD of x86 and x64 versions of local packs SP1 :
    Rem ------------------------------------------------------------
    set x86LclPIso=E:\7601.17514 SP1 RTM\Langage packs\mu_windows_7_sp1_localpacks_x86_dvd_6xxxxx.iso
    set x64LclPIso=E:\7601.17514 SP1 RTM\Langage packs\mu_windows_7_sp1_localpacks_x64_dvd_6xxxxx.iso
    Rem Path to Iso DVD of AIK supplemental disk for SP1 :
    Rem --------------------------------------------------
    set AIKSupplIso=E:\7601.17514 SP1 RTM\Langage packs\waik_supplement_en-us.iso
    Rem     ====================================
    Rem     ==  Create lang.ini               ==
    Rem     ====================================
    Echo. > %TempWim%\lang.ini
    Echo [Available UI Languages] >> %TempWim%\lang.ini
    Echo en-US = 3 >> %TempWim%\lang.ini
    Echo %LangAdd2% = 2 >> %TempWim%\lang.ini
    Echo. >> %TempWim%\lang.ini
    Echo [Fallback Languages] >> %TempWim%\lang.ini
    Echo en-US = en-us >> %TempWim%\lang.ini
    @Echo on
    Rem     ================================================================
    Rem     ==  Windows 7 x86 Starter + localize WinRE x86 (done once)    ==
    Rem     ================================================================
    dtlite -mount %DVDNumber%,"%W7x86AllIso%"
    imagex /export %DVDLetter%:\sources\install.wim 1 install.wim
    dtlite -unmount %DVDNumber%
    Dism /Mount-Wim /WimFile:install.wim /index:1 /MountDir:%MntPoint% 
    dtlite -mount %DVDNumber%,"%x86LPackIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\langpacks\%LangAdd2%\lp.cab
    dtlite -unmount %DVDNumber%
    dtlite -mount %DVDNumber%,"%x86LclPIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\Windows-LocalPack-%LangAdd1%-Package.cab
    dtlite -unmount %DVDNumber%
    move /Y %MntPoint%\windows\system32\recovery\winre.wim
    Dism /Mount-Wim /WimFile:winre.wim /index:1 /MountDir:%MntPointWinRE%
    dtlite -mount %DVDNumber%,"%AIKSupplIso%"
    Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\lp_%LangAdd2%.cab 
    Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-setup_%LangAdd2%.cab 
    Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-setup-client_%LangAdd2%.cab 
    Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-scripting_%LangAdd2%.cab 
    Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-srt_%LangAdd2%.cab 
    Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-wds-tools_%LangAdd2%.cab 
    Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-wmi_%LangAdd2%.cab
    Rem Asian langages specifics : 
    Rem --------------------------
    Rem Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-ja-jp.cab
    Rem Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-ko-kr.cab
    Rem Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-zh-cn.cab
    Rem Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-zh-hk.cab
    Rem Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-zh-tw.cab
    Rem --------------------------
    dtlite -unmount %DVDNumber%
    Dism /Unmount-Wim /MountDir:%MntPointWinRE% /commit
    imagex /export /compress maximum winre.wim 1 %TempWim%\winre32.wim
    del winre.wim
    copy /Y %TempWim%\winre32.wim %MntPoint%\windows\system32\recovery\winre.wim 
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    del %TempWim%\s86starter.wim
    imagex /export install.wim 1 %TempWim%\s86starter.wim
    imagex /info %TempWim%\s86starter.wim 1 "Windows 7 Edition Starter" "Install Windows 7 Edition Starter 32bits SP1"
    del install.wim
    Rem     ====================================
    Rem     ==  Windows 7 x86 Home Basic      ==
    Rem     ====================================
    dtlite -mount %DVDNumber%,"%W7x86AllIso%"
    imagex /export %DVDLetter%:\sources\install.wim 2 install.wim
    dtlite -unmount %DVDNumber%
    Dism /Mount-Wim /WimFile:install.wim /index:1 /MountDir:%MntPoint% 
    dtlite -mount %DVDNumber%,"%x86LPackIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\langpacks\%LangAdd2%\lp.cab
    dtlite -unmount %DVDNumber%
    dtlite -mount %DVDNumber%,"%x86LclPIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\Windows-LocalPack-%LangAdd1%-Package.cab
    dtlite -unmount %DVDNumber%
    copy /Y %TempWim%\winre32.wim %MntPoint%\windows\system32\recovery\winre.wim 
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    del %TempWim%\s86homebasic.wim
    imagex /export install.wim 1 %TempWim%\s86homebasic.wim
    imagex /info %TempWim%\s86homebasic.wim 1 "Windows 7 Edition HomeBasic" "Install Windows 7 Home Basic 32bits SP1"
    del install.wim
    Rem     ====================================
    Rem     ==  Windows 7 x86 Home Premium    ==
    Rem     ====================================
    dtlite -mount %DVDNumber%,"%W7x86AllIso%"
    imagex /export %DVDLetter%:\sources\install.wim 3 install.wim
    dtlite -unmount %DVDNumber%
    Dism /Mount-Wim /WimFile:install.wim /index:1 /MountDir:%MntPoint% 
    dtlite -mount %DVDNumber%,"%x86LPackIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\langpacks\%LangAdd2%\lp.cab
    dtlite -unmount %DVDNumber%
    dtlite -mount %DVDNumber%,"%x86LclPIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\Windows-LocalPack-%LangAdd1%-Package.cab
    dtlite -unmount %DVDNumber%
    copy /Y %TempWim%\winre32.wim %MntPoint%\windows\system32\recovery\winre.wim 
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    del %TempWim%\s86homepremium.wim
    imagex /export install.wim 1 %TempWim%\s86homepremium.wim
    imagex /info %TempWim%\s86homepremium.wim 1 "Windows 7 Edition HomePremium" "Install Windows 7 Home Premium 32bits SP1"
    del install.wim
    Rem     ====================================
    Rem     ==  Windows 7 x86 Professional    ==
    Rem     ====================================
    dtlite -mount %DVDNumber%,"%W7x86AllIso%"
    imagex /export %DVDLetter%:\sources\install.wim 4 install.wim
    dtlite -unmount %DVDNumber%
    Dism /Mount-Wim /WimFile:install.wim /index:1 /MountDir:%MntPoint% 
    dtlite -mount %DVDNumber%,"%x86LPackIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\langpacks\%LangAdd2%\lp.cab
    dtlite -unmount %DVDNumber%
    dtlite -mount %DVDNumber%,"%x86LclPIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\Windows-LocalPack-%LangAdd1%-Package.cab
    dtlite -unmount %DVDNumber%
    copy /Y %TempWim%\winre32.wim %MntPoint%\windows\system32\recovery\winre.wim 
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    del %TempWim%\s86professionnal.wim
    imagex /export install.wim 1 %TempWim%\s86professionnal.wim
    imagex /info %TempWim%\s86professionnal.wim 1 "Windows 7 Edition professionnal" "Install Windows 7 Edition professionnal 32bits SP1"
    del install.wim
    Rem     ====================================
    Rem     ==  Windows 7 x86 Ultimate        ==
    Rem     ====================================
    dtlite -mount %DVDNumber%,"%W7x86AllIso%"
    imagex /export %DVDLetter%:\sources\install.wim 5 install.wim
    dtlite -unmount %DVDNumber%
    Dism /Mount-Wim /WimFile:install.wim /index:1 /MountDir:%MntPoint% 
    dtlite -mount %DVDNumber%,"%x86LPackIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\langpacks\%LangAdd2%\lp.cab
    dtlite -unmount %DVDNumber%
    dtlite -mount %DVDNumber%,"%x86LclPIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\Windows-LocalPack-%LangAdd1%-Package.cab
    dtlite -unmount %DVDNumber%
    copy /Y %TempWim%\winre32.wim %MntPoint%\windows\system32\recovery\winre.wim 
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    del %TempWim%\s86ultimate.wim
    imagex /export install.wim 1 %TempWim%\s86ultimate.wim
    imagex /info %TempWim%\s86ultimate.wim 1 "Windows 7 Edition Ultimate" "Install Windows 7 Edition Ultimate 32bits SP1"
    del install.wim
    Rem     ====================================
    Rem     ==  Windows 7 x86 Enterprise      ==
    Rem     ====================================
    dtlite -mount %DVDNumber%,"%W7x86EntIso%"
    imagex /export %DVDLetter%:\sources\install.wim 1 install.wim
    dtlite -unmount %DVDNumber%
    Dism /Mount-Wim /WimFile:install.wim /index:1 /MountDir:%MntPoint% 
    dtlite -mount %DVDNumber%,"%x86LPackIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\langpacks\%LangAdd2%\lp.cab
    dtlite -unmount %DVDNumber%
    dtlite -mount %DVDNumber%,"%x86LclPIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\Windows-LocalPack-%LangAdd1%-Package.cab
    dtlite -unmount %DVDNumber%
    copy /Y %TempWim%\winre32.wim %MntPoint%\windows\system32\recovery\winre.wim 
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    del %TempWim%\s86enterprise.wim
    imagex /export install.wim 1 %TempWim%\s86enterprise.wim
    imagex /info %TempWim%\s86enterprise.wim 1 "Windows 7 Edition Enterprise" "Install Windows 7 Edition Enterprise 32bits SP1"
    del install.wim
    Rem     ===================================================================
    Rem     ==  Windows 7 x64 Home Basic + localize WinRE x64 (done once)    ==
    Rem     ===================================================================
    dtlite -mount %DVDNumber%,"%W7x64AllIso%"
    imagex /export %DVDLetter%:\sources\install.wim 1 install.wim
    dtlite -unmount %DVDNumber%
    Dism /Mount-Wim /WimFile:install.wim /index:1 /MountDir:%MntPoint% 
    dtlite -mount %DVDNumber%,"%x64LPackIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\langpacks\%LangAdd2%\lp.cab
    dtlite -unmount %DVDNumber%
    dtlite -mount %DVDNumber%,"%x64LclPIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\Windows-LocalPack-%LangAdd1%-Package.cab
    dtlite -unmount %DVDNumber%
    move /Y %MntPoint%\windows\system32\recovery\winre.wim
    Dism /Mount-Wim /WimFile:winre.wim /index:1 /MountDir:%MntPointWinRE%
    dtlite -mount %DVDNumber%,"%AIKSupplIso%"
    Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\lp_%LangAdd2%.cab 
    Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-setup_%LangAdd2%.cab 
    Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-setup-client_%LangAdd2%.cab 
    Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-scripting_%LangAdd2%.cab 
    Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-srt_%LangAdd2%.cab 
    Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-wds-tools_%LangAdd2%.cab 
    Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-wmi_%LangAdd2%.cab 
    Rem Asian langages specifics : 
    Rem --------------------------
    Rem Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-ja-jp.cab
    Rem Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-ko-kr.cab
    Rem Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-zh-cn.cab
    Rem Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-zh-hk.cab
    Rem Dism /image:%MntPointWinRE% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-zh-tw.cab
    Rem --------------------------
    dtlite -unmount %DVDNumber%
    Dism /Unmount-Wim /MountDir:%MntPointWinRE% /commit
    imagex /export /compress maximum winre.wim 1 %TempWim%\winre64.wim
    del winre.wim
    copy /Y %TempWim%\winre64.wim %MntPoint%\windows\system32\recovery\winre.wim 
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    del %TempWim%\s64homebasic.wim
    imagex /export install.wim 1 %TempWim%\s64homebasic.wim
    imagex /info %TempWim%\s64homebasic.wim 1 "Windows 7 Edition HomeBasic x" "Install Windows 7 Home Basic 64bits SP1"
    del install.wim
    Rem     ====================================
    Rem     ==  Windows 7 x64 Home Premium    ==
    Rem     ====================================
    dtlite -mount %DVDNumber%,"%W7x64AllIso%"
    imagex /export %DVDLetter%:\sources\install.wim 2 install.wim
    dtlite -unmount %DVDNumber%
    Dism /Mount-Wim /WimFile:install.wim /index:1 /MountDir:%MntPoint% 
    dtlite -mount %DVDNumber%,"%x64LPackIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\langpacks\%LangAdd2%\lp.cab
    dtlite -unmount %DVDNumber%
    dtlite -mount %DVDNumber%,"%x64LclPIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\Windows-LocalPack-%LangAdd1%-Package.cab
    dtlite -unmount %DVDNumber%
    copy /Y %TempWim%\winre64.wim %MntPoint%\windows\system32\recovery\winre.wim 
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    del %TempWim%\s64homepremium.wim
    imagex /export install.wim 1 %TempWim%\s64homepremium.wim
    imagex /info %TempWim%\s64homepremium.wim 1 "Windows 7 Edition HomePremium x" "Install Windows 7 Home Premium 64bits SP1"
    del install.wim
    Rem     ====================================
    Rem     ==  Windows 7 x64 Professional    ==
    Rem     ====================================
    dtlite -mount %DVDNumber%,"%W7x64AllIso%"
    imagex /export %DVDLetter%:\sources\install.wim 3 install.wim
    dtlite -unmount %DVDNumber%
    Dism /Mount-Wim /WimFile:install.wim /index:1 /MountDir:%MntPoint% 
    dtlite -mount %DVDNumber%,"%x64LPackIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\langpacks\%LangAdd2%\lp.cab
    dtlite -unmount %DVDNumber%
    dtlite -mount %DVDNumber%,"%x64LclPIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\Windows-LocalPack-%LangAdd1%-Package.cab
    dtlite -unmount %DVDNumber%
    copy /Y %TempWim%\winre64.wim %MntPoint%\windows\system32\recovery\winre.wim 
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    del %TempWim%\s64professionnal.wim
    imagex /export install.wim 1 %TempWim%\s64professionnal.wim
    imagex /info %TempWim%\s64professionnal.wim 1 "Windows 7 Edition professionnal x" "Install Windows 7 Edition professionnal 64bits SP1"
    del install.wim
    Rem     ====================================
    Rem     ==  Windows 7 x64 Home Ultimate   ==
    Rem     ====================================
    dtlite -mount %DVDNumber%,"%W7x64AllIso%"
    imagex /export %DVDLetter%:\sources\install.wim 4 install.wim
    dtlite -unmount %DVDNumber%
    Dism /Mount-Wim /WimFile:install.wim /index:1 /MountDir:%MntPoint% 
    dtlite -mount %DVDNumber%,"%x64LPackIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\langpacks\%LangAdd2%\lp.cab
    dtlite -unmount %DVDNumber%
    dtlite -mount %DVDNumber%,"%x64LclPIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\Windows-LocalPack-%LangAdd1%-Package.cab
    dtlite -unmount %DVDNumber%
    copy /Y %TempWim%\winre64.wim %MntPoint%\windows\system32\recovery\winre.wim 
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    del %TempWim%\s64ultimate.wim
    imagex /export install.wim 1 %TempWim%\s64ultimate.wim
    imagex /info %TempWim%\s64ultimate.wim 1 "Windows 7 Edition Ultimate x" "Install Windows 7 Edition Ultimate 64bits SP1"
    del install.wim
    Rem     ====================================
    Rem     ==  Windows 7 x64 Enterprise      ==
    Rem     ====================================
    dtlite -mount %DVDNumber%,"%W7x64EntIso%"
    imagex /export %DVDLetter%:\sources\install.wim 1 install.wim
    dtlite -unmount %DVDNumber%
    Dism /Mount-Wim /WimFile:install.wim /index:1 /MountDir:%MntPoint% 
    dtlite -mount %DVDNumber%,"%x64LPackIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\langpacks\%LangAdd2%\lp.cab
    dtlite -unmount %DVDNumber%
    dtlite -mount %DVDNumber%,"%x64LclPIso%"
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\Windows-LocalPack-%LangAdd1%-Package.cab
    dtlite -unmount %DVDNumber%
    copy /Y %TempWim%\winre64.wim %MntPoint%\windows\system32\recovery\winre.wim 
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    del %TempWim%\s64enterprise.wim
    imagex /export install.wim 1 %TempWim%\s64enterprise.wim
    imagex /info %TempWim%\s64enterprise.wim 1 "Windows 7 Edition Enterprise x" "Install Windows 7 Edition Enterprise 64bits SP1"
    del install.wim
    Rem     ============================================================================
    Rem     ==  Create the final INSTALL.WIM with all 11 indexes x86 & x64 integrated ==
    Rem     ============================================================================
    Del %TempWim%\install_Std_3264.wim 
    imagex /export /compress maximum  %TempWim%\S86starter.wim       1 %TempWim%\install_Std_3264.wim 
    imagex /export /compress maximum  %TempWim%\S86homebasic.wim     1 %TempWim%\install_Std_3264.wim
    imagex /export /compress maximum  %TempWim%\S86homepremium.wim   1 %TempWim%\install_Std_3264.wim
    imagex /export /compress maximum  %TempWim%\S86professionnal.wim 1 %TempWim%\install_Std_3264.wim
    imagex /export /compress maximum  %TempWim%\S86ultimate.wim      1 %TempWim%\install_Std_3264.wim
    imagex /export /compress maximum  %TempWim%\S86enterprise.wim    1 %TempWim%\install_Std_3264.wim
    imagex /export /compress maximum  %TempWim%\S64homebasic.wim     1 %TempWim%\install_Std_3264.wim
    imagex /export /compress maximum  %TempWim%\S64homepremium.wim   1 %TempWim%\install_Std_3264.wim
    imagex /export /compress maximum  %TempWim%\S64professionnal.wim 1 %TempWim%\install_Std_3264.wim
    imagex /export /compress maximum  %TempWim%\S64ultimate.wim      1 %TempWim%\install_Std_3264.wim
    imagex /export /compress maximum  %TempWim%\S64enterprise.wim    1 %TempWim%\install_Std_3264.wim
    Rem     ============================================================================
    Rem     ==  Create BOOT.WIM localized x86                                         ==
    Rem     ============================================================================
    dtlite -mount %DVDNumber%,"%W7x86AllIso%"
    copy /Y %DVDLetter%:\sources\boot.wim boot.wim
    dtlite -unmount %DVDNumber%
    dtlite -mount %DVDNumber%,"%AIKSupplIso%"
    Dism /Mount-Wim /WimFile:boot.wim /index:1 /MountDir:%MntPoint%
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\lp_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-scripting_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-srt_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-wds-tools_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-wmi_%LangAdd2%.cab
    Rem Asian langages specifics : 
    Rem --------------------------
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-ja-jp.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-ko-kr.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-zh-cn.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-zh-hk.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-zh-tw.cab
    Rem --------------------------
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    Dism /Mount-Wim /WimFile:boot.wim /index:2 /MountDir:%MntPoint%
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\lp_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-setup_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-setup-client_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-scripting_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-srt_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-wds-tools_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\%LangAdd2%\winpe-wmi_%LangAdd2%.cab
    Rem Asian langages specifics : 
    Rem --------------------------
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-ja-jp.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-ko-kr.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-zh-cn.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-zh-hk.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\X86\WINPE_FPS\winpe-fontsupport-zh-tw.cab
    Rem --------------------------
    dtlite -unmount %DVDNumber%
    Copy /Y %TempWim%\lang.ini %MntPoint%\sources\
    Rem Pause ... HexEdit %MntPoint%\sources\WINSETUP.DLL 
    Rem Pause ... Offset 0x77AF3h: replace 74 with EB 
    Rem Pause ... then press Enter
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    Del %TempWim%\bootW7x86.wim
    imagex /export /compress maximum boot.wim 1 %TempWim%\bootW7x86.wim
    imagex /export /compress maximum boot.wim 2 %TempWim%\bootW7x86.wim
    del boot.wim
    Rem     ============================================================================
    Rem     ==  Create BOOT.WIM localized x64                                         ==
    Rem     ============================================================================
    dtlite -mount %DVDNumber%,"%W7x64AllIso%"
    copy /Y %DVDLetter%:\sources\boot.wim boot.wim
    dtlite -unmount %DVDNumber%
    dtlite -mount %DVDNumber%,"%AIKSupplIso%"
    Dism /Mount-Wim /WimFile:boot.wim /index:1 /MountDir:%MntPoint%
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\lp_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-scripting_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-srt_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-wds-tools_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-wmi_%LangAdd2%.cab
    Rem Asian langages specifics : 
    Rem --------------------------
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-ja-jp.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-ko-kr.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-zh-cn.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-zh-hk.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-zh-tw.cab
    Rem --------------------------
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    Dism /Mount-Wim /WimFile:boot.wim /index:2 /MountDir:%MntPoint%
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\lp_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-setup_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-setup-client_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-scripting_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-srt_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-wds-tools_%LangAdd2%.cab
    Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\%LangAdd2%\winpe-wmi_%LangAdd2%.cab
    Rem Asian langages specifics : 
    Rem --------------------------
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-ja-jp.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-ko-kr.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-zh-cn.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-zh-hk.cab
    Rem Dism /image:%MntPoint% /add-package /packagepath:%DVDLetter%:\AMD64\WINPE_FPS\winpe-fontsupport-zh-tw.cab
    Rem --------------------------
    dtlite -unmount %DVDNumber%
    Copy /Y %TempWim%\lang.ini %MntPoint%\sources\
    Rem Pause ... HexEdit %MntPoint%\sources\WINSETUP.DLL 
    Rem Pause ... Offset 0x84A58h: replace 74 with EB 
    Rem Pause ... then press Enter
    Dism /Unmount-Wim /MountDir:%MntPoint% /commit
    Del %TempWim%\bootW7x64.wim
    imagex /export /compress maximum boot.wim 1 %TempWim%\bootW7x64.wim
    imagex /export /compress maximum boot.wim 2 %TempWim%\bootW7x64.wim
    del boot.wim
    Rem     ============================================================================
    Rem     ==  Create your ISO image AIO 2 langs x86 based                           ==
    Rem     ============================================================================
    dtlite -mount %DVDNumber%,"%W7x86AllIso%" 
    echo .wim > %TempWim%\exclude.lst
    echo lang.ini >> %TempWim%\exclude.lst
    echo ei.cfg >> %TempWim%\exclude.lst
    xcopy %DVDLetter%:\*.* %IsoDVD86% /cherkyi /Exclude:%TempWim%\exclude.lst 
    del %TempWim%\exclude.lst
    dtlite -unmount %DVDNumber%
    copy /y %TempWim%\lang.ini %IsoDVD86%\sources\
    copy /y %TempWim%\bootW7x86.wim %IsoDVD86%\sources\boot.wim
    copy /y %TempWim%\install_Std_3264.wim %IsoDVD86%\sources\install.wim
    oscdimg -b%IsoDVD86%\boot\etfsboot.com -lGRMCULFREO_EN%LangAdd1%_DVD -t11/21/2010,03:17:00 %IsoDVD86% %LangAdd1%_en_windows_7_SP1_AIO_STD_x86_x64_dvd_hand_made.iso -u2 -m -h -o
    Rem     ============================================================================
    Rem     ==  Create your ISO image AIO 2 langs x64 based                           ==
    Rem     ============================================================================
    dtlite -mount %DVDNumber%,"%W7x64AllIso%" 
    echo .wim > %TempWim%\exclude.lst
    echo lang.ini >> %TempWim%\exclude.lst
    echo ei.cfg >> %TempWim%\exclude.lst
    xcopy %DVDLetter%:\*.* %IsoDVD64% /cherkyi /Exclude:%TempWim%\exclude.lst
    del %TempWim%\exclude.lst
    dtlite -unmount %DVDNumber%
    copy /y %TempWim%\lang.ini %IsoDVD64%\sources\
    copy /y %TempWim%\bootW7x64.wim %IsoDVD64%\sources\boot.wim
    copy /y %TempWim%\install_Std_3264.wim %IsoDVD64%\sources\install.wim
    oscdimg -b%IsoDVD64%\boot\etfsboot.com -lGRMCULXFREO_EN%LangAdd1%_DVD -t11/21/2010,09:33:00 %IsoDVD64% %LangAdd1%_en_X_windows_7_SP1_AIO_STD_x86_x64_dvd_hand_made.iso -u2 -m -h -o
    




    Useful commands:
    --------------------
    Code:
    Dism /image:C:\mnt /get-packages (show which package are installed in a mounted .WIM index)
    Dism /image:C:\mnt /get-intl (show which language pack are installed in a mounted .WIM index) 
    Dism /Get-WimInfo /WimFile:install.wim /index:1 (show infos including language pack installed in an unmounted .WIM file)
    Dism /Unmount-Wim /MountDir:C:\mnt /discard (unmount a .WIM file without saving updates done)
    Imagex /INFO install.wim (show infos for an unmounted .WIM file. List and content of INDEXES)
    Mctadmin /a FR or Mctadmin /r FR  (dynamically add/remove localpack for the actual user)
    Attached Images Attached Images
    Last edited by ttmax; 19 Feb 2011 at 06:22 PM. Reason: Update 01/2011 (SP1) , SP1 RTM small modifications . Added script source

  2. The Following 13 Users Say Thank You to ttmax For This Useful Post:

    accmegafree (29 Apr 2011), al_khaiyal (03 Jul 2011), bdjfreestyle (23 Feb 2011), cat0 (06 Feb 2011), G2B (03 Feb 2011), gandarin (23 Oct 2010), LQQL (25 Jan 2011), luong.thien.khoi (05 Nov 2010), madar (26 Oct 2010), mOBSCENE (28 Jan 2011), nasa (01 Mar 2011), Phiber2000 (05 Apr 2011), yitshok (24 Apr 2012)

  3. #2
    MDL Novice
    Join Date
    22 Nov 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question "copy boot.wim"

    where will I copy "boot.wim"?

  4. #3
    MDL Novice
    Join Date
    06 Nov 2009
    Posts
    40
    Thanks
    10
    Thanked 13 Times in 6 Posts

    Smile

    Quote Originally Posted by alxtsy View Post
    where will I copy "boot.wim"?
    Copy to c:\temp


    Anyone tried this tuto and does it work?

    HAL
    Last edited by HAL; 06 Dec 2009 at 08:33 PM.

  5. #4
    MDL Novice
    Join Date
    12 Jul 2009
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    It work, but not perfect, using this method, the F8 repair your computer is not modified, it will only show base image language, thus if you integrate ja-jp into an en-us image, when you do a repair, English will show up, even thought language installed is Japaneses.

    For perfection I'm using another method, which is more troublesome to create and install, i believe most of you could easily derive what i have done, thus i did not post it, willing to share if anyone is interested.

  6. #5
    MDL Member mzakho's Avatar
    Join Date
    22 Nov 2008
    Posts
    102
    Thanks
    55
    Thanked 30 Times in 18 Posts

    Default

    Goooood jub but it is deffical

    any one caN make it easssssssyyy

  7. #6
    MDL Member
    Join Date
    27 Oct 2009
    Posts
    158
    Thanks
    5
    Thanked 36 Times in 15 Posts

    Default

    Quote Originally Posted by heliosys View Post
    It work, but not perfect, using this method, the F8 repair your computer is not modified, it will only show base image language, thus if you integrate ja-jp into an en-us image, when you do a repair, English will show up, even thought language installed is Japaneses.

    For perfection I'm using another method, which is more troublesome to create and install, i believe most of you could easily derive what i have done, thus i did not post it, willing to share if anyone is interested.


    Sorry to contradict you, but WINRE.WIM is localized too, so F8 give you repair options in your language too. It's the chapter 5 of my methodology.

    ...

  8. #7
    MDL Novice
    Join Date
    12 Jul 2009
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by ttmax View Post
    Sorry to contradict you, but WINRE.WIM is localized too, so F8 give you repair options in your language too. It's the chapter 5 of my methodology.

    ...
    Sorry miss it, thought you were like thousand of other guys, who copied form OPK and claim it as their own :P. Look interesting will try it, thanks.

  9. #8
    MDL Novice
    Join Date
    06 Nov 2009
    Posts
    40
    Thanks
    10
    Thanked 13 Times in 6 Posts

    Default

    I am going to try this tuto and I will tell you, if it was a succes or not in a few days. I hope it will work.

    HAL

  10. #9
    MDL Novice
    Join Date
    12 Jul 2009
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by HAL View Post
    I am going to try this tuto and I will tell you, if it was a succes or not in a few days. I hope it will work.

    HAL
    I have tested it, it work. Currently writing a batch file to automate it, will post after testing.

  11. #10
    MDL Novice
    Join Date
    06 Nov 2009
    Posts
    40
    Thanks
    10
    Thanked 13 Times in 6 Posts

    Default

    Quote Originally Posted by heliosys View Post
    I have tested it, it work. Currently writing a batch file to automate it, will post after testing.
    Hi!

    Looking forward to your batch-file.

    HAL

Similar Threads

  1. Replies: 4
    Last Post: 23 Feb 2011, 11:55 PM
  2. Wzor Update NOW
    By marbun in forum Windows 7
    Replies: 12
    Last Post: 01 Jan 2011, 04:09 AM
  3. Microsoft Windows Vista Vs Windows Xp
    By RACERPRO in forum Windows XP / Previous MS Operating Systems
    Replies: 130
    Last Post: 12 Jun 2010, 11:06 AM
  4. Usb flash drive flash boot and os boot utilities
    By Rite in forum Application Software
    Replies: 24
    Last Post: 12 Nov 2009, 11:18 PM
  5. Fix Windows 7 v.4.0 - WST team
    By Freddyfre in forum Windows 7
    Replies: 7
    Last Post: 27 Oct 2009, 05:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •