Thanks I usually install packages using the "add-package" command. First I install servicing stack then, system updates followed by dot net updates.
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
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
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.
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.
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
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.
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.
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.