DISM offline updates order?

Discussion in 'Windows 10' started by Magmarock, Apr 29, 2019.

  1. Magmarock

    Magmarock MDL Member

    Oct 12, 2016
    175
    22
    10
  2. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,354
    2,308
    60
    Servicing Stack first, Use abbodi's W10UI (does it all in correct order, making things easier)
     
  3. Magmarock

    Magmarock MDL Member

    Oct 12, 2016
    175
    22
    10
    Thanks I usually install packages using the "add-package" command. First I install servicing stack then, system updates followed by dot net updates.
     
  4. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,292
    94,811
    450
    W10UI can handle it all by itself, and in the correct order, it can service boot.wim, winre.wim and install.wim, just throw the updates and extracted iso at it :D
     
  5. Magmarock

    Magmarock MDL Member

    Oct 12, 2016
    175
    22
    10
    This is something I'd prefer to do myself. With my own script.
     
  6. drew84

    drew84 MDL Expert

    Mar 13, 2014
    1,354
    2,308
    60
    I look forward to seeing you sharing that script here, .... on the assumption that you can actually improve on the one provided here on MDL by abbodi
     
  7. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,292
    94,811
    450
    #7 Enthousiast, May 11, 2019
    Last edited: May 11, 2019
    That's up to you.

    It would have shown you in what order and which updates go into what wim:)

    17763.1 source with these updates:
    Code:
    SSU
    Dotnet CU
    Dotnet Rollup
    Flash
    CU
    Cleanup Image (with or without full resetbase)
    Enable dotnetfx3
    Re-integrate DotnetCU's and normal CU
    Update winre.wim
    resetbase winre.wim
    update boot.wim, both indexes
    resetbase boot.wim
    Copies over the serviced setup.exe from boot.wim index2 to iso\sources
    Creates ISO
    
    Script settings (6.3):
    Code:
    ============================================================
    1. Target (x64): "j:\W10UI_4.X\17763.1_Work_x64_US"
    
    2. Updates: "j:\W10UI_4.X\17763.1_Updates_x64"
    
    3. DISM: "Windows 10 ADK"
    
    4. Enable .NET 3.5: YES
    
    5. Cleanup System Image: YES      6. Reset Image Base: NO
    
    7. Update WinRE.wim: YES
    
    M. Mount Directory: "C:\W10UImount"
    
    E. Extraction Directory: "J:\W10UItemp"
    ============================================================
    0. Start the process
    ============================================================
    
    Change a menu option, press 0 to start, or 9 to exit:
    
    Progress:
    Code:
    ============================================================
    Running W10UI v6.3
    ============================================================
    
    ============================================================
    Extracting .cab files from .msu files
    ============================================================
    
    1/5: windows10.0-kb4480056-x64_CU_DotnetFX1.msu
    2/5: windows10.0-kb4489192-x64_CU_DotnetFX2.msu
    3/5: windows10.0-kb4493478-x64_Flash.msu
    4/5: windows10.0-kb4493510-x64_SSU.msu
    5/5: windows10.0-kb4495667-x64_CU_475.msu
    
    ============================================================
    Extracting files from update cabinets (.cab)
    *** This will require some disk space, please be patient ***
    ============================================================
    
    1/5: Windows10.0-KB4480056-x64.cab
    2/5: Windows10.0-KB4489192-x64.cab
    3/5: Windows10.0-KB4493478-x64.cab
    4/5: Windows10.0-KB4493510-x64.cab
    5/5: Windows10.0-KB4495667-x64_PSFX.cab
    
    ============================================================
    Mounting install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_KB4493510~31bf3856ad364e35~amd64~~17763.402.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 3 - Adding package Package_for_KB4480056~31bf3856ad364e35~amd64~~10.0.1.2305
    [==========================100.0%==========================]
    Processing 2 of 3 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.1.2385
    [==========================100.0%==========================]
    Processing 3 of 3 - Adding package Package_for_KB4493478~31bf3856ad364e35~amd64~~10.0.1.0
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~17763.475.1.11
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Cleaning up OS image
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.475
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding .NET Framework 3.5 feature
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.475
    
    Enabling feature(s)
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Reinstalling cumulative update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.475
    
    Processing 1 of 3 - Adding package Package_for_KB4480056~31bf3856ad364e35~amd64~~10.0.1.2305
    [==========================100.0%==========================]
    Processing 2 of 3 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.1.2385
    [==========================100.0%==========================]
    Processing 3 of 3 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~17763.475.1.11
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Updating winre.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_KB4493510~31bf3856ad364e35~amd64~~17763.402.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~17763.475.1.11
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.475
    
    [===========================99.7%========================= ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.475
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image File : J:\W10UI_4.X\winre.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Adding updated winre.wim
    ============================================================
    
            1 file(s) copied.
    
    ============================================================
    Unmounting install.wim - index 1/1
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image File : j:\W10UI_4.X\17763.1_Work_x64_US\sources\install.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding install.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_KB4493510~31bf3856ad364e35~amd64~~17763.402.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~17763.475.1.11
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.475
    
    [===========================99.6%========================= ]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.475
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Unmounting boot.wim - index 1/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image File : j:\W10UI_4.X\17763.1_Work_x64_US\sources\boot.wim
    Image Index : 1
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Mounting boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Mounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Checking Updates...
    ============================================================
    
    ============================================================
    Installing servicing stack update...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_KB4493510~31bf3856ad364e35~amd64~~17763.402.1.1
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Installing updates...
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.1
    
    Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~17763.475.1.11
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Resetting WinPE image base
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.475
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image Version: 10.0.17763.475
    
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Unmounting boot.wim - index 2/2
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Image File : j:\W10UI_4.X\17763.1_Work_x64_US\sources\boot.wim
    Image Index : 2
    Saving image
    [==========================100.0%==========================]
    Unmounting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Rebuilding boot.wim
    ============================================================
    
    Deployment Image Servicing and Management tool
    Version: 10.0.18362.1
    
    Exporting image
    [==========================100.0%==========================]
    Exporting image
    [==========================100.0%==========================]
    The operation completed successfully.
    
    ============================================================
    Removing temporary extracted files...
    ============================================================
    
    
    ============================================================
    Creating updated ISO file...
    ============================================================
    
    OSCDIMG 2.56 CD-ROM and DVD-ROM Premastering Utility
    Copyright (C) Microsoft, 1993-2012. All rights reserved.
    Licensed only for producing Microsoft authorized content.
    
    
    Scanning source tree (500 files in 36 directories)
    Scanning source tree complete (937 files in 82 directories)
    
    Computing directory information complete
    
    Image file is 4764958720 bytes (before optimization)
    
    Writing 937 files in 82 directories to J:\W10UI_4.X\Win10_17763.475_x64_2019-05-11.iso
    
    100% complete
    
    Storage optimization saved 25 files, 14204928 bytes (1% of image)
    
    After optimization, image file is 4752877568 bytes
    Space saved because of embedding, sparseness or optimization = 14204928
    
    Done.
    
    ============================================================
       Finished
    ============================================================
    
    
    Press 9 to exit.
    
    
     
  8. Magmarock

    Magmarock MDL Member

    Oct 12, 2016
    175
    22
    10
    #8 Magmarock, May 11, 2019
    Last edited: May 11, 2019
    (OP)
    I'm not saying it's better I just prefer to do it myself is all. Technically, I don't use a script I enter the commands in myself through the command line. So there's nothing of value that I'd be able to upload anyway.

    What I do looks a bit like this

    Code:
    Code:
    
    dism /mount-image imagefile:“image/location” /index:2 /mountdir:“mounted/directory/location”
    
    dism /image:“mounted/directory/location” /add-package /pacakgepath:“location/of/servicing stack update”
    
    dism /image:“mounted/directory/location” /add-package /pacakgepath:“location/of/cumulative system update”
    
    dism /image:“mounted/directory/location” /add-package /pacakgepath:“location/of/dot net 4.7 update”
    
    dism /image:“mounted/directory/location” /add-package /pacakgepath:“location/of/dot net 3.5 update”
    
    dism /unmount-Image /mountdir:“mounted/directory/location” /commit
    

    There’s more to it then this but this covers most of what I do and the order in which I do it.
     
  9. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,292
    94,811
    450
    #9 Enthousiast, May 11, 2019
    Last edited: May 11, 2019
    W10UI services all you want, in the correct order and smart.

    Your scenario can be done in three commandlines:
    Code:
    mount
    dism /image:“mounted/directory/location” /add-package /packagepath:“location/of/servicing stack update” /packagepath:“location/of/cumulative system update” /packagepath:“location/of/dot net 4.7 update” /add-package /packagepath:“location/of/dot net 3.5 update”
    unmount /commit
    Dotnetfx3 and the native dotnetfx4.x are updated by the dotnet CU and dotnet rollup.

    The script finished running and i updated https://forums.mydigitallife.net/threads/dism-offline-updates-order.79506/#post-1523112

    Now you can see what needs and can be done to have a fully updated/serviced and working ISO.

    I hope this answers your initial questions :)
     
  10. Magmarock

    Magmarock MDL Member

    Oct 12, 2016
    175
    22
    10
    Be that as it is. The purpose of this thread was to ask if my method would yield correct results.

    On a side note I wish to be a better coder and that's not going to happen if I use other peoples work now is it.
     
  11. Enthousiast

    Enthousiast MDL Tester

    Oct 30, 2009
    47,292
    94,811
    450
    #11 Enthousiast, May 14, 2019
    Last edited: May 14, 2019
    It isn't meant to put you down, the script by @abbodi1406 doesn't do magic, except when resetbase is selected, it only runs the dism commands in a smart way.

    You can put the same hard commandlines in a cmd and it will result in the same iso, that's the level of my coding skills too.
     
  12. Magmarock

    Magmarock MDL Member

    Oct 12, 2016
    175
    22
    10
    Thanks but I ended up contacting abbodi1406 directly. He said my script suffices for what I'm trying to do. Which is all I really needed to know.