[Q:] How to correctly generate LangINI by DISM?

Discussion in 'Windows 8' started by moderate, Oct 13, 2014.

  1. moderate

    moderate MDL Guru

    Aug 31, 2009
    3,381
    2,479
    120
    #1 moderate, Oct 13, 2014
    Last edited: Oct 13, 2014
    Hello,

    I am trying to generate LangINI for:
    1. Boot.WIM,
    2. Install.WIM,
    3. WinRE.WIM (inside Install.WIM)
    4. and maybe for main distribution tree (burned into ISO).

    Directories (with time chronology of their creation):
    ISO is extracted to C:\ISO
    Boot.WIM is mounted to C:\Mount
    Install.WIM is mounted to C:\Mount (after Boot.WIM is unmounted)
    While Install.WIM is mounted, the WinRE.WIM is mounted to C:\WinRE

    Is this below correct? (after LP are added)

    Boot.WIM:
    dism /image:C:\mount /Gen-LangINI /distribution:C:\mount

    WinRE.WIM:
    dism /image:C:\winre /Gen-LangINI /distribution:C:\winre

    Install.WIM:
    dism /image:C:\mount /Gen-LangINI /Distribution:C:\ISO
    dism /image:C:\mount /Gen-LangINI /Distribution:C:\mount
    (both?)

    My doubts:
    A. I don't believe it, because unpacked WIMs have directories like "Program Files" "Windows"... so "sources" (generated by /Gen-LangINI) directory looks inappropriate. IMHO distribution shouln'd be same as mounting point, but I just mounted vendor's boot.wim it ALSO has Program Files", "Windows"... AND "sources" inside.
    B. Also I am not sure about those two commands in Install.WIM. Isn't it overkill?

    Thanks
     
  2. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    7,389
    11,614
    240
    #2 murphy78, Oct 13, 2014
    Last edited by a moderator: Apr 20, 2017
    You add-package the langpacks you want to use in your install.wim index and then do:
    Code:
    dism /image:c:\mount /gen-langini /distribution:c:\win_dist
    It will put it in the sources\ folder and you need to copy/paste it into the boot.wim index 2 and winre.wim index 1 in the appropriate sources\ folder of the mounted image
     
  3. moderate

    moderate MDL Guru

    Aug 31, 2009
    3,381
    2,479
    120
    #3 moderate, Oct 13, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    What about add /gen-langini to boot.wim index 1 (WinPE)? :)
     
  4. abbodi1406

    abbodi1406 MDL KB0000001

    Feb 19, 2011
    16,215
    84,869
    340
    Boot.WIM, only for index 2 (setup)

    WinRE.WIM, not needed

    Install.WIM, only first command:
    dism /image:C:\mount /Gen-LangINI /Distribution:C:\ISO
     
  5. moderate

    moderate MDL Guru

    Aug 31, 2009
    3,381
    2,479
    120
    Great, I have ended with same. :)