integrate post SP1 updates to windows 7 AIO USB

Discussion in 'Windows 7' started by paul3200, Aug 23, 2011.

  1. paul3200

    paul3200 MDL Member

    Dec 3, 2010
    158
    10
    10
    i have a windows 7 USB with all x86 and x64 versions on (excluding E & N)
    i want to have all the post SP1 updates on it to save time when i install it the next time

    is there an easy way to do this?

    thanks
     
  2. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,100
    1,302
    150
    Uhm yea several, just do some googlingsearch first.

    Can be done easily via batch or other tools but they all use dism.
     
  3. NICK@NUMBER11

    NICK@NUMBER11 MDL Expert

    Mar 23, 2010
    1,354
    633
    60
    #3 NICK@NUMBER11, Aug 23, 2011
    Last edited: Aug 23, 2011
    You could create a batch file within the folder containing the updates, and then run it when you re-install use this

    @Echo Off
    Title Installing Windows 7 Updates
    For %%F In (Windows6.1-KB*.msu) Do Call :msin %%F
    Exit
    :msin
    Start /Wait %1 /quiet /norestart
    GoTo :EOF
    Exit
    :EOF


    Or the way that i do it is to inject all updates into all versions using this command:

    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

    and for x64:

    MD %~dp0MOUNT

    Dism.exe /Mount-Wim /WimFile:%~dp0install.wim /Index:1 /MountDir:%~dp0MOUNT
    Dism.exe /image:%~dp0MOUNT /Add-Package /PackagePath:"%~dp0x64"
    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:"%~dp0x64"
    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:"%~dp0x64"
    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:"%~dp0x64"
    Dism.exe /Unmount-Wim /MountDir:%~dp0MOUNT /commit
     
  4. herry2009

    herry2009 MDL Junior Member

    Jul 22, 2011
    71
    28
    0
    Friends ...
    I am not able to apply all the updates to the install.wim Windows8
    using DISM ..
    Can someone help me ...
    (KB2756872 - KB2770917)
     
  5. NICK@NUMBER11

    NICK@NUMBER11 MDL Expert

    Mar 23, 2010
    1,354
    633
    60
    please stop posting the same question in so many threads....

    Everything you need is right here.....
    ;)