[Answered] how to put files inside an install.wim file?

Discussion in 'Windows 10' started by phynz, Mar 21, 2025.

  1. phynz

    phynz MDL Novice

    Mar 19, 2025
    49
    13
    0
    Does anyone know how to put files inside an install.wim file?
     
  2. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    50,502
    107,368
    450
    #3 Enthousiast, Mar 22, 2025
    Last edited: Mar 22, 2025
    To keep this info visible when the chat will be cleaned up:

    A few examples:
    Code:
    wimlib-imagex update "install.wim" 3 --command="add 'Scripts_SRV_2022' '\Windows\Setup\Scripts'" 
    this adds the content of the folder "'Scripts_SRV_2022" to the third index of the install.wim (or install.esd) in the folder \Windows\Setup\Scripts'

    Code:
    wimlib-imagex update "install.wim" 3 --command="add 'Scripts_SRV_2022\test.txt' '\Windows\test.txt'" 
    This puts the test.txt file from the 'Scripts_SRV_2022 folder in the Windows folder in index 3 of the install.wim/esd.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. phynz

    phynz MDL Novice

    Mar 19, 2025
    49
    13
    0
    i dont understand
     
  4. EXO56

    EXO56 MDL Member

    Mar 22, 2013
    208
    307
    10
  5. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    7,050
    8,334
    240
    7-Zip only creates/adds to WIM uncompressed.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. phynz

    phynz MDL Novice

    Mar 19, 2025
    49
    13
    0
  7. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    50,502
    107,368
    450
    #9 Enthousiast, Mar 23, 2025
    Last edited: Mar 23, 2025
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    50,502
    107,368
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    50,502
    107,368
    450
    wimlib-imagex takes just a second to do it, not mounting, unmounting and over and over again when more indexes need files put in to them.

    And no extra commands needed when rights are needed.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream
    Staff Member

    Dec 21, 2012
    7,050
    8,334
    240
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. phynz

    phynz MDL Novice

    Mar 19, 2025
    49
    13
    0
    Ahhhhhh, I finally found it. thanks to everyone for your help!!!!!
     
  12. EXO56

    EXO56 MDL Member

    Mar 22, 2013
    208
    307
    10
    Judging by the question itself, we mostly try to provide easy solutions first. Something everyone can understand.

    Yesterday, i saw the same discussion in the chat box.
    Wimlib command line was given as a solution, but the guy said he didn't get it.

    Now that he opened a thread for his question, why should i tell him about wimlib again?
    I opted for Gimagex only because, at first place, it seemed to be easier for him!

    I also mentioned 7-zip because it's indeed the most used app in this case.
    Not everyone knows about wimlib-imagex (or image servicing tools in general) and most novices are "scared" by the command line tools!

    Mount, unmount over and over has its advantages, and it's done in a breeze and transparently. It's not as if you're gonna mount wim files on your shoulders!

    Wimlib-imagex command line alone will not do the job for me in many situations.
    I work with wim files almost everyday (WinPE), and i always need to add a lot of things, modify the mounted registry hives, manually modify some WinPE settings and resources,...
    For these repetitive tasks, the wim file should be mounted anyway.
    In addition, i use my own wim toolkit written in PECMD scripts format, which also needs a mounted image to work with.
    (Offline Reg hives updater, Offline Registry defrag, MUI sync, WinPE cache sizer, ..).
     
  13. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    50,502
    107,368
    450
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. phynz

    phynz MDL Novice

    Mar 19, 2025
    49
    13
    0
    Thanks
     
  15. EXO56

    EXO56 MDL Member

    Mar 22, 2013
    208
    307
    10
    Useless...LOL!
    Yeah! Everything said by local "divinity" is gospel truth!
    Amen!!!