Integrating updates to the WIM file

Discussion in 'Windows 7' started by shadowstep, Jun 23, 2010.

  1. shadowstep

    shadowstep MDL Member

    May 2, 2010
    163
    15
    10
    #1 shadowstep, Jun 23, 2010
    Last edited: Jun 23, 2010
  2. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,086
    1,298
    150
    Win integrator hasnt been updated for along time..
    vLite is for Vista and server 2008..

    RT 7Lite, 7Customizer is for windows 7 so use them instead..
    And/or do it manually, it not hard;).
     
  3. HALIKUS

    HALIKUS MDL Addicted

    Jul 29, 2009
    527
    369
    30
    How about a good old "add package"?

    DISM /image:"%TEMP%\MOUNT" /Add-Package /PackagePath:"%~dp000updates\x86BASE"

    Just mount the wim and change the paths....the programs you are trying to use are just a GUI for commands like this. Google DISM.
     
  4. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,086
    1,298
    150
    Dism /mount-wim /wimfile: install.wim /index /mountdir: mount
    Dism /image: mount /add-package /packagepath: *.cab /packagepath: *.cab /packagepath: *.cab /packagepath: *.cab etc.. or path to folder with updates
    Dism /unmount-wim /mountdir: mount /commit

    Full commands to use.
     
  5. Truelove

    Truelove MDL Novice

    Sep 21, 2009
    19
    16
    0
    #6 Truelove, Jun 23, 2010
    Last edited by a moderator: Apr 20, 2017
    Code:
    dism /get-wiminfo /wimfile:D:\Winn\Sources\Install.wim
    dism /get-wiminfo /wimfile:D:\Winn\Sources\Install.wim /index:4
    dism /mount-wim /wimfile:D:\Winn\Sources\Install.wim /index:4 /mountdir:D:\Mount
    dism /image:D:\Mount /add-package /packagepath:D:\Updates
    dism /unmount-wim /mountdir:D:\Mount /commit
    
    Don't forget to create empty Mount dir.. :cool:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. shadowstep

    shadowstep MDL Member

    May 2, 2010
    163
    15
    10
    vLite has been found to work for Windows 7 also. So i tried it. And as for Win Integrator, thanks for the info. And I did try RT7 Lite. Din't work. :\
    I'm trying 7Customizer now. Should work hopefully. And yes, I added the hotfixes manually. Thanks! :)

    P.S. - Please see the last part of my first post. It's regarding the manual method only. Hope you can help somehow.
     
  7. shadowstep

    shadowstep MDL Member

    May 2, 2010
    163
    15
    10
    #8 shadowstep, Jun 23, 2010
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Now I have a question to ask. Do I need to add the packages separately once again for different index numbers, i.e. different Windows 7 Editions like Starter, Home Basic, Home Premium, Professional & Ultimate?
     
  8. urie

    urie Moderator
    Staff Member

    May 21, 2007
    8,707
    3,064
    300
    Yes if you use dvd with all images.
     
  9. shadowstep

    shadowstep MDL Member

    May 2, 2010
    163
    15
    10
    Got it. Thanks a lot! :)
     
  10. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,086
    1,298
    150
    #11 tcntad, Jun 23, 2010
    Last edited by a moderator: Apr 20, 2017
    WHy would he use wiminfo twice ?

    Wiminfo for install.wim shows info on all editions available..
     
  11. NICK@NUMBER11

    NICK@NUMBER11 MDL Expert

    Mar 23, 2010
    1,354
    633
    60
    Create your own bat file by copying this into notepad
    REM This is gonna take a while.
    PAUSE

    MD %~dp0MOUNT

    Dism.exe /Mount-Wim /WimFile:%~dp0install.wim /Index:1 /MountDir:%~dp0MOUNT
    Dism.exe /image:%~dp0MOUNT /Add-Package /PackagePath:"%~dp0x86"
    Dism.exe /Unmount-Wim /MountDir:%~dp0MOUNT /commit

    Dism.exe /Mount-Wim /WimFile:%~dp0install.wim /Index:2 /MountDir:%~dp0MOUNT
    Dism.exe /image:%~dp0MOUNT /Add-Package /PackagePath:"%~dp0x86"
    Dism.exe /Unmount-Wim /MountDir:%~dp0MOUNT /commit

    Dism.exe /Mount-Wim /WimFile:%~dp0install.wim /Index:3 /MountDir:%~dp0MOUNT
    Dism.exe /image:%~dp0MOUNT /Add-Package /PackagePath:"%~dp0x86"
    Dism.exe /Unmount-Wim /MountDir:%~dp0MOUNT /commit

    Dism.exe /Mount-Wim /WimFile:%~dp0install.wim /Index:4 /MountDir:%~dp0MOUNT
    Dism.exe /image:%~dp0MOUNT /Add-Package /PackagePath:"%~dp0x86"
    Dism.exe /Unmount-Wim /MountDir:%~dp0MOUNT /commit

    Dism.exe /Mount-Wim /WimFile:%~dp0install.wim /Index:5 /MountDir:%~dp0MOUNT
    Dism.exe /image:%~dp0MOUNT /Add-Package /PackagePath:"%~dp0x86"
    Dism.exe /Unmount-Wim /MountDir:%~dp0MOUNT /commit

    REM Check for errors before closing.
    PAUSE

    create a Dir called "x86" and place all the updates you wish to inject into the install.wim.
    copy the install.wim from your DVD and place in the same folder as your bat file, say Updater
    it will open each o the 5 installation index and inject and then commit, save and close and go to the next...
     
  12. shadowstep

    shadowstep MDL Member

    May 2, 2010
    163
    15
    10
    1. Where should I create the "x86" folder?
    2. Where should I create "Updater"folder?
     
  13. NICK@NUMBER11

    NICK@NUMBER11 MDL Expert

    Mar 23, 2010
    1,354
    633
    60
    Sorry, and here you go

    C:\Updater = Create say on your C drive does not really matter can any
    C:\Updater\x86 = Create this within the "Updater" folder
    Then copy all your Updates into the x86 folder
    Then save your bat/cmd file made with the above code into the "Updater" folder also
    Then copy the Install.wim from the DVD into the "Update" folder.
    Run batch file and have a cup of tea,coffee or a beer!!

    Hope that help
     
  14. shadowstep

    shadowstep MDL Member

    May 2, 2010
    163
    15
    10
    A beer would do! :p
     
  15. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,086
    1,298
    150
    "%~dp0" means the script will use files and folders from the same folder as the script so you can place it whereever you want to..

    If you place it in "C:\", the script will use c:\install.wim c:\mount and c:\updates

    If you put it in D:\updates, it will use D:\updates\install.wim, d:\updates\install.wim and also d:\updates\mount.