use DISM to add *.msu Windows 8 update files into INSTALL.WIM

Discussion in 'Windows 8' started by WriteConsole, Jun 20, 2013.

  1. WriteConsole

    WriteConsole MDL Junior Member

    Jun 3, 2013
    60
    1
    0
    #1 WriteConsole, Jun 20, 2013
    Last edited by a moderator: Apr 20, 2017
    hi MDL members,
    been learning a lot from this forum, thanks,

    trying to integrate update *.MSU Windows 8 into INSTALL.WIM but encountered with issue,

    i downloaded the following updates already, sort by date and use the following command,

    C:\Windows\system32>Dism.exe /image:\WIM\cs /Add-Package /Packagepath:\WIN8MSU\Windows8-RT-
    KB????????-x64.msu

    the ????????? is Windows 8 KB numbers.

    my list (based on Windows 8 clean installation)
    Code:
    D:\WIN8MSU>dir *.msu /Od
     Volume in drive D is DATA
     Volume Serial Number is 3CA9-B2D7
    
     Directory of D:\WIN8MSU
    
    09/20/2012  11:03 AM         6,446,642 Windows8-RT-KB2737084-x64.msu
    10/08/2012  11:27 PM         2,163,995 Windows8-RT-KB2768703-x64.msu
    10/10/2012  09:31 AM       170,445,900 Windows8-RT-KB2769165-x64.msu
    10/11/2012  05:14 AM           293,554 Windows8-RT-KB2727528-x64.msu
    10/12/2012  08:55 AM        13,234,448 Windows8-RT-KB2742614-x64.msu
    11/03/2012  01:36 AM         2,882,911 Windows8-RT-KB2757638-x64.msu
    11/06/2012  03:33 AM           689,769 Windows8-RT-KB2770660-x64.msu
    11/27/2012  08:07 AM           289,693 Windows8-RT-KB2785220-x64.msu
    12/07/2012  07:29 AM         3,009,582 Windows8-RT-KB2789649-x64.msu
    12/17/2012  07:45 AM           662,983 Windows8-RT-KB2753842-v2-x64.msu
    01/11/2013  08:32 AM        27,779,902 Windows8-RT-KB2795944-x64.msu
    02/12/2013  10:27 AM        21,644,934 Windows8-RT-KB2811660-x64.msu
    02/12/2013  09:15 PM           272,194 Windows8-RT-KB2807986-x64.msu
    03/15/2013  11:05 AM        47,563,433 Windows8-RT-KB2822241-x64.msu
    03/15/2013  07:44 PM           665,341 Windows8-RT-KB2829254-x64.msu
    03/21/2013  01:04 AM         2,514,502 Windows8-RT-KB2808735-x64.msu
    03/22/2013  05:39 AM         6,247,437 Windows8-RT-KB2781197-v2-x64.msu
    04/04/2013  03:56 AM        24,707,128 Windows8-RT-KB2798162-x64.msu
    04/11/2013  07:44 AM        65,578,786 Windows8-RT-KB2836988-x64.msu
    04/12/2013  12:02 AM         4,061,157 Windows8-RT-KB2829361-x64.msu
    04/13/2013  12:36 AM           216,888 Windows8-RT-KB2820197-x64.msu
    04/17/2013  12:34 AM         1,190,653 Windows8-RT-KB2830290-x64.msu
    04/29/2013  02:16 PM           494,266 Windows8-RT-KB2839894-x64.msu
    05/07/2013  05:49 AM         1,523,915 Windows8-RT-KB2845690-x64.msu
    05/07/2013  08:18 AM        36,325,157 Windows8-RT-KB2845533-x64.msu
    05/14/2013  01:49 PM         3,767,037 Windows8-RT-KB2813430-x64.msu
    05/17/2013  03:10 AM        10,187,816 Windows8-RT-KB2821895-x64.msu
    05/18/2013  01:46 AM        39,969,565 Windows8-RT-KB2838727-x64.msu
    06/05/2013  11:32 PM        18,674,914 Windows8-RT-KB2847928-x64.msu
    
    i did /Add-Package based on above order, been successful till Windows8-RT-KB2795944-x64.msu
    Code:
    C:\Windows\system32>Dism.exe /image:D:\WIM\cs /Add-Package /Packagepath:D:\WIN8MSU\Windows8-RT-
    KB2753842-v2-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 6.2.9200.16384
    
    Image Version: 6.2.9200.16384
    
    Processing 1 of 1 - Adding package D:\WIN8MSU\Windows8-RT-KB2753842-v2-x64.msu
    [==========================100.0%==========================]
    The operation completed successfully.
    
    C:\Windows\system32>Dism.exe /image:D:\WIM\cs /Add-Package /Packagepath:D:\WIN8MSU\Windows8-RT-
    KB2795944-x64.msu
    
    Deployment Image Servicing and Management tool
    Version: 6.2.9200.16384
    
    Image Version: 6.2.9200.16384
    
    Processing 1 of 1 - Adding package D:\WIN8MSU\Windows8-RT-KB2795944-x64.msu
    [==========================100.0%==========================]
    D:\WIN8MSU\Windows8-RT-KB2795944-x64.msu: The specified image is no longer serviceable and may
    be corrupted.
    Discard the modified image and start again.
     Error: 0x80070005
    
    Error: 5
    
    The specified image is no longer serviceable and may be corrupted.
    Discard the modified image and start again.
    
    it happened after i did Windows8-RT-KB2753842-v2-x64.msu,
    any idea?
     
  2. roylion15

    roylion15 MDL Member

    May 1, 2009
    127
    10
    10
    #2 roylion15, Jun 20, 2013
    Last edited by a moderator: Apr 20, 2017
    Hello ,

    /PackagePath : just specify the path where the update(s) is/are stored ... no need to use the file name.

    i successfully integrated all win8 updates to install.wim except someones that are not integratables to an offline image ...by ex : Windows8-RT-KB2771431-x64.msu
    some updates need to be added separately in single dism session. see the hotfix repository.


    example:
    Code:
    Dism /Image:c:\win8aio\mount /Add-Package /PackagePath:c:\win8aio\updates
    in this case all updates (*.msu files or ie10.cab files) are stored in c:\win8aio\updates
     
  3. WriteConsole

    WriteConsole MDL Junior Member

    Jun 3, 2013
    60
    1
    0
    thanks a lot!
    i will try to apply those updates again using Windows Hotfix Downloader
     
  4. panchop

    panchop MDL Member

    Jul 26, 2009
    130
    71
    10
    I think that the best is sysprep a image with all updates integrated. Work perfect for me and thousands of people
     
  5. Flipp3r

    Flipp3r MDL Expert

    Feb 11, 2009
    1,544
    662
    60
    #5 Flipp3r, Jun 21, 2013
    Last edited by a moderator: Apr 20, 2017
    Code:
    The specified image is no longer serviceable and may be corrupted.
    Discard the modified image and start again.
    I too had this issue. I solved it by adding the .MSU updates 1st & then adding in my drivers...
    In my batch I use:
    /enable-feature
    /Add-Package
    /Add-Driver
    /Set-ProductKey

    The above order works for me...
     
  6. WriteConsole

    WriteConsole MDL Junior Member

    Jun 3, 2013
    60
    1
    0
    #6 WriteConsole, Jun 21, 2013
    Last edited: Jun 21, 2013
    (OP)
    thanks for the info,
    i guess, maybe there are some KB that shouldnt be added offline,
    i found errors with the following KB so far,

    Windows8-RT-KB2771431-x64,
    Windows8-RT-KB2822241-x64, (my silly mistake, this file was not completely downloaded)
    Windows8-RT-KB2823372-x64,
    Windows8-RT-KB2821895-x64,

    i doing those update in 3 stages,
     
  7. Atari800XL

    Atari800XL MDL Addicted

    Apr 3, 2011
    654
    1,051
    30
    To me it seems that there are two ways to get a nice and updated install file: (1) The insanely complicated way or (2) The insanely timeconsuming way. I use (2) for the time being, that is install Windows 8 (or 7) in auditmode, let it update, then capture the new image with dism /capture-image. For w7+w8, that takes around a full day each month (on a dedicated, older, PC).
    Haven't tried method (1) yet (add updates offline with /add-package), but what I've read about it so far, it looks quite "involved", you really have to know about the different types of updates, etc.

    So it seems that both methods are quite tedious... I wonder why Microsoft doesn't provide a full, updated install.wim every month, would be quite handy...
     
  8. WriteConsole

    WriteConsole MDL Junior Member

    Jun 3, 2013
    60
    1
    0
    hi Atari800XL,
    the main issue i got with (2) is,
    after we perform all the update during audit mode, restart, recheck update shows no update anymore,

    but once you deploy that image, then do recheck update, it will load some lots more, (maybe not security updates, but general updates)
    then the pc still need to update to today latest, (kinda wasting bandwidth if deploy more than 3, because those hidden update during audit mode carry around 400MB or more)
     
  9. kastrel

    kastrel MDL Member

    Mar 7, 2013
    247
    48
    10
    Q? I want to mount a iso aio for 8, but if I go use imagex to capture all the images(core,professional,enterprise) here I have a large aio iso of 8,if i will add the updates by dism manually or by the downloader tool integrator and then mount the aio will be great too? the iso?:confused:
     
  10. WriteConsole

    WriteConsole MDL Junior Member

    Jun 3, 2013
    60
    1
    0
    it seems i got a broken KB2822231 (size around 10MB), the valid one is around 45MB,

    one advice is, please use 7zip (test archive) to verify those files before doing Add-Package,
    certainly save you hours of pondering,
     
  11. murphy78

    murphy78 MDL DISM Enthusiast

    Nov 18, 2012
    6,680
    10,126
    210
    #11 murphy78, Jun 22, 2013
    Last edited by a moderator: Apr 20, 2017
    Your problem lies with KB2821895.
    It needs to be added last.

    For example:
    Code:
    dism /mount-wim /wimfile:c:\win8\sources\install.wim /index:1 /mountdir:c:\mnt
    dism /image:c:\mnt /add-package /packagepath:c:\win8msu1
    
    Code:
    dism /image:c:\mnt /add-package /packagepath:c:\win8msu2
    dism /unmount-wim /mountdir:c:\mnt /commit


    Do your first pass on the rest of the files, then do the servicing stack update last.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. kastrel

    kastrel MDL Member

    Mar 7, 2013
    247
    48
    10
    Murphy78,the seven iso that you posted on TPB, June 2013,what method you used to integrate the kbs? imagex, sysprep, capture or was using dism?:confused: