Slipstream .NET 4.7 into Windows 10 x64 installation source, install.wim

CatOnRug solve, automate, speed up Slipstream .NET 4.7 into Windows 10 x64 installation source, install.wim
Use Windows ISO Downloader.exe to download Windows 10 image

Extract iso file to "c:\iso"

Optional step:
For zero touch install, I will save autounattend.xml in "c:\iso"

Install "Deployment Tools" from adksetup.exe

Make c:\updates directory.

Download NDP47-KB3186497-x86-x64-AllOS-ENU.exe to c:\updates

Download windows10.0-kb4020102-x64_9d406340d67caa80a55bc056e50cf87a2e7647ce.msu to c:\updates

Use 7-zip to open "NDP47-KB3186497-x86-x64-AllOS-ENU.exe" and extract x64-Windows10.0-KB3186568-x64.cab to c:\updates

Delete "NDP47-KB3186497-x86-x64-AllOS-ENU.exe"

Copy to clipboard:
@echo off

set path=%path%;%~dp0
rem this is tested on:
rem  iso: Win10_1703_English_x64.iso
rem  md5: effccfda8a8dcf0b91bb3878702ae2d8
rem sha1: ce8005a659e8df7fe9b080352cb1c313c3e9adce

rem "Deployment Tools" must be installed from ADK 10. download it here:
rem http://download.microsoft.com/download/3/8/B/38BBCA6A-ADC9-4245-BCD8-DAA136F63C8B/adk/adksetup.exe

rem Use http://7-zip.org/ to extract iso file on c:\iso

rem I want to use latest DISM utility instead of the default
cd "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM"

rem Create a mounting directory
if not exist "%temp%\mount" md "%temp%\mount"

rem Mount install.wim
dism /mount-wim /wimfile:c:\iso\sources\install.wim /index:1 /mountdir:"%temp%\mount"

rem Integrate .NET 2.0, 3.0 and 3.5 into install wim
dism /image:"%temp%\mount" /enable-feature /featurename:NetFx3 /all /limitaccess /source:c:\iso\sources\sxs

rem Integrate .NET 4.7 update
dism /image:"%temp%\mount" /add-package /packagepath:c:\updates\x64-Windows10.0-KB3186568-x64.cab

rem Apply some updates
dism /image:"%temp%\mount" /add-package /packagepath:c:\updates\windows10.0-kb4020102-x64_9d406340d67caa80a55bc056e50cf87a2e7647ce.msu

rem Unmount image
dism /unmount-wim /mountdir:"%temp%\mount" /commit

rem export only Pro version. This will save 200mb for sure
"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\dism.exe" /Export-Image /SourceImageFile:c:\iso\sources\install.wim /SourceIndex:1 /DestinationImageFile:c:\install.wim /Compress:max

rem replace install.wim with compressed
move /Y c:\install.wim c:\iso\sources

rem Create iso file
"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\Oscdimg\oscdimg.exe" -b"c:\iso\boot\etfsboot.com" -h -u2 -m -l"win10x64" "c:\iso" "%~dp0win10x64dotnet47.iso"

rem Clear mounting directory
if exist "%temp%\mount" rd /Q /S "%temp%\mount"

pause
Open notepad, paste the content and save the file as:
c:\updates\slipstream.cmd
Right click on "slipstream.cmd" and select "Run As Administrator".

Wait 20 minutes or something.

Use file:
c:\updates\win10x64dotnet47.iso
Here is video how simple it is:

No comments:

Post a Comment