This script was made firstly with Windows 7 in mind, and is what I have tested it with.
Slipstreaming Windows 10 and 11 updates and producing a bootable ISO should also be possible, but not tested yet.
Disclaimer: It's assumed you have any licenses needed to use the ISO's or updates!
The script runs on Windows 7 and newer (Tested in Windows 7 and 11).
- Blue: The main script that integrates the updates into the ISO file.
- Red: The source "Windows.iso" file that is updated.
- Orange: Scripts to download Windows 7 updates
- Green: Scripts to download Windows Vista updates
-
Download these scripts, extract the scripts into a folder and open that folder.
-
Get a Windows Vista ISO, put it into the scripts folder (you opened above), and rename the Windows ISO file to "Windows.iso".
More info below about this. -
Download the Windows updates (Service Pack 1 & 2 atm!) you want to integrate into the Windows ISO.
Architecture Script Update type x86 Download Windows Vista Updates x86.bat Normal Updates x64 Download Windows Vista Updates x64.bat Normal Updates (x64 = 64-bit / x86 = 32-bit)
-
Any files or folders put in the "Copy To ISO" folder will be added to the root of the new Windows ISO file.
For instance, adding this script "...\Copy To ISO\sources$OEM$$$\Setup\Scripts\SetupComplete.cmd" in this folder path will give you a script that is auto executed after Windows 7 has been installed. Read more -
Script Requirements:
- Windows with Powershell (made and tested in Windows 11)
- DISM (Should come with Windows)
- Oscdimg (Auto installed by the script if missing)
- 7zip (Auto installed by the script if missing)
- Windows AIK (Auto installed by the script if missing)
- [QEMU](https://www.qemu.org/ (Auto installed by the script if missing)
- Enough free HDD space
- Enough time!!! (the script can take multiple hours to complete) -
Run the "Update ISO.bat" to create a updated Windows 7 ISO file.
- The "Windows.iso" file is NOT updated.
- A new Windows ISO file is created, and the filename is specified when the script is finished.
If there is an error during execution with no obvious cause, restart the PC and rerun the script.
Things seem to fail randomly sometimes when the VM is running, but completes properly and produces a working ISO image simply by rerunning the script with no additional changes (other than a reboot perhaps).
-
Download these scripts, extract the scripts into a folder and open that folder.
-
Get a Windows 7 ISO, put it into the scripts folder (you opened above), and rename the Windows ISO file to "Windows.iso".
More info below about this. -
Download the Windows updates you want to integrate into the Windows ISO.
You can use the following scripts to download all the normal Windows 7 updates until January 2020 into the correct folders, use the one that matches your ISOs architecture.
The ESU updates until January 2023 can also be downloaded, but slipstreaming isn't supported by default. You will have to do some sort of modifications first, or install manually once Windows 7 is installed to the PC. Read moreArchitecture Script Update type x86 Download Windows 7 Updates x86.bat Normal Updates x64 Download Windows 7 Updates x64.bat Normal Updates x86 Download Windows 7 ESU Updates x86 ESU Updates (Skip these) x64 Download Windows 7 ESU Updates x64 ESU Updates (Skip these) (x64 = 64-bit / x86 = 32-bit)
-
Any files or folders put in the "Copy To ISO" folder will be added to the root of the new Windows ISO file.
For instance, adding this script "...\Copy To ISO\sources$OEM$$$\Setup\Scripts\SetupComplete.cmd" in this folder path will give you a script that is auto executed after Windows 7 has been installed. Read more -
Script Requirements:
- Windows with Powershell (made and tested in Windows 11)
- DISM (Should come with Windows)
- Oscdimg (Auto installed by the script if missing)
- Enough free HDD space
- Enough time!!! (the script can take multiple hours to complete) -
Run the "Update ISO.bat" to create a updated Windows 7 ISO file.
- The "Windows.iso" file is NOT updated.
- A new Windows ISO file is created, and the filename is specified when the script is finished.
- It checks if Service Pack 1 is already installed on the "Windows.iso" file, and skips adding it if "Windows.iso" already has it integrated.
You will only need to download the files that matches the architecture of the DVD you choose (x86 or x64).
The following lists of files will contain both!
You can find copies of your Windows Vista SP1 ISOs etc on archive.org and other places if you need one.
This script has mainly been tested with the Windows Vista x64 RTM DVD "en_windows_vista_x64_dvd_X12-40712.iso".
Integrating the two service packs takes a long time (hours).
The service packs are installed via a virtual machine (Qemu), and then an updated Windows image is created based on that.
Using official Windows Vista ISOs with Service Pack 2 already slipstreamed is not a bad idea if possible!
But that might not be an option with OEM specific Windows versions for instance.
In that case then this script is an option, there are also other options like vLite (commercial product).
| Architecture | Name | Filename / Link |
|---|---|---|
| x86 | KB936330 - Service Pack 1 Standalone | windows6.0-kb936330-x86_b8a3fa8f819269e37d8acde799e7a9aea3dd4529.exe |
| x64 | KB936330 - Service Pack 1 Standalone | windows6.0-kb936330-x64_12eed6cf0a842ce2a609c622b843afc289a8f4b9.exe |
| Architecture | Name | Filename / Link |
|---|---|---|
| x86 | KB948465 - Service Pack 2 Standalone | windows6.0-kb948465-x86_55f17352b4398ecb4f0cc20e3737631420ca1609.exe |
| x64 | KB948465 - Service Pack 2 Standalone | windows6.0-kb948465-x64_2eedca0bfa5ae8d1b0acf2117ddc4f15ac5183c9.exe |
You will only need to download the files that matches the architecture of the DVD you choose (x86 or x64).
The following lists of files will contain both!
These are just some file suggestions on what to use/google for on archive sites and such.
Feel free to use other ISOs.
I have tested with the Windows 7 ISOs:
- x17-59186.iso
- HP OEM Win 7 Pro 64.iso
- en_windows_7_professional_x86_dvd_x15-65804
- en_windows_7_professional_x64_dvd_X15-65805
Use the ISO/DVD that matches the CD-keys/license you have.
There are no CD-keys etc here!
| Windows version | Service Pack | Filename | SHA1 |
|---|---|---|---|
| Windows 7 Professional x64 English | SP1 | x17-59186.iso | 0bcfc54019ea175b1ee51f6d2b207a3d14dd2b58 |
| Windows 7 Professional x86 English | SP1 | x17-59183.iso | d89937df3a9bc2ec1a1486195fd308cd3dade928 |
| Windows 7 Home Premium x64 English | SP1 | x17-58997.iso | 6c9058389c1e2e5122b7c933275f963edf1c07b9 |
| Windows 7 Home Premium x86 English | SP1 | x17-58996.iso | 6071b4553fcf0ea53d589a846b5ae76743dd68fc |
| Windows 7 Ultimate x64 English | SP1 | X17-59465.iso | 36ae90defbad9d9539e649b193ae573b77a71c83 |
I would recommend using an ISO from Microsoft where SP1 is already integrated. Alternatively follow the instructions below.
Here is the folder structure for the update files.
- Windows 7
- Internet Explorer 11
- Internet Explorer 11 + Prerequisites files
- Service Pack 1
- windows6.1-kb976932-x64_***.exe
- windows6.1-kb2533552-x64_***.msu
- Updates
- 01
- windows6.1-kb3020369-***.msu
- 02
- windows6.1-kb3125574-v4-***.msu
- 03
- ...
- 01
- Internet Explorer 11
If you want to slipstream Service Pack 1 onto an ISO without Service Pack 1 on it already, download both files matching the architecture of the Windows.ISO file.
Download the SP1 files to the folder "Windows 7\Service Pack 1", create it if missing in the same folder as this README file and the script files.
Sources:
- https://answers.microsoft.com/en-us/windows/forum/all/extracting-an-update/2f341403-1419-4153-8c4a-e088d6bfdd72
- https://superuser.com/questions/249275/slipstream-windows-7-service-pack-1
These are the normal Windows 7 updates until January 2020 when support ended.
Install them in order top to bottom, either only the x86 or x64 files. Put the files in separate numbered subfolders in the folder "Windows 7\Updates" from top to bottom.
- Windows 7
- Updates
- 01
- windows6.1-kb3020369-***.msu
- 02
- windows6.1-kb3125574-v4-***.msu
- 03
- ...
- 01
- Updates
Sources:
- https://forums.malwarebytes.com/topic/274496-how-to-update-windows-7-to-the-latest-security-updates/
- https://www.reddit.com/r/apexlegends/comments/w80aw8/your_windows_7_system_is_to_outdated_please/
Put all the files for your DVDs architecture (x86 or x64) in the folder "Windows 7\Internet Explorer 11".
| Architecture | Name | File / Link |
|---|---|---|
| x86 | Internet Explorer 11 (KB2841134) | IE11-Windows6.1-x86-en-us.exe |
| x64 | Internet Explorer 11 (KB2841134) | IE11-Windows6.1-x64-en-us.exe |
| x86 | KB2729094 | windows6.1-kb2729094-v2-x86.msu |
| x64 | KB2729094 | windows6.1-kb2729094-v2-x64.msu |
| x86 | KB2731771 | windows6.1-kb2731771-x86.msu |
| x64 | KB2731771 | windows6.1-kb2731771-x64.msu |
| x86 | KB2533623 | ? Maybe Windows6.1-KB3063858-x86.msu @ https://www.microsoft.com/en-us/download/details.aspx?id=47409 |
| x64 | KB2533623 | windows6.0-kb2533623-x64_23652360b903754d42b6b969d9ae79462343f7d4.msu |
| x86 | KB2670838 | windows6.1-kb2670838-x86.msu |
| x64 | KB2670838 | windows6.1-kb2670838-x64.msu |
| x86 | KB2786081 | windows6.1-kb2786081-x86.msu |
| x64 | KB2786081 | windows6.1-kb2786081-x64.msu |
| x86 | KB2834140 | windows6.1-kb2834140-v2-x86.msu |
| x64 | KB2834140 | windows6.1-kb2834140-v2-x64.msu |
| x86 | KB2888049 | windows6.1-kb2888049-x86.msu |
| x64 | KB2888049 | windows6.1-kb2888049-x64.msu |
| x86 | KB2882822 | windows6.1-kb2882822-x86.msu |
| x64 | KB2882822 | windows6.1-kb2882822-x64.msu |
Source:
Updates WSUS offline updater wants to install after all the others have been installed.
These are the extended support updates (ESU) until January 2023 when the extended support ended for Windows 7.
Skip these updates!
(for most people)
Slipstreaming ESU updates isn't supported normally and will fail to install, so you will probably have to do some modifications to the "install.wim" file or the update MSU files them selfs somehow. Or you can install them manually in Windows 7 once it has been installed to the PC.
The script "...\Windows 7\ESU Script\ESU_Script.cmd" will be executed if it exists!
If you know what updates needs to be done via a script for ESU updates to work, then you can create a "ESU_Script.cmd" script or copy an existing script there and rename it to "ESU_Script.cmd".
| Architecture | Name | Filename / Link |
|---|---|---|
| x86 | KB4555449 - 2020-05 Servicing Stack Update for Windows 7 | windows6.1-kb4555449-x86_36683b4af68408ed268246ee3e89772665572471.msu |
| x64 | KB4555449 - 2020-05 Servicing Stack Update for Windows 7 | windows6.1-kb4555449-x64_92202202c3dee2f713f67adf6622851b998c6780.msu |
| x86 | KB4575903 - 2020-07 Extended Security Updates (ESU) Licensing Preparation Package for Windows 7 | windows6.1-kb4575903-x86_5905c774f806205b5d25b04523bb716e1966306d.msu |
| x64 | KB4575903 - 2020-07 Extended Security Updates (ESU) Licensing Preparation Package for Windows 7 | windows6.1-kb4575903-x64_b4d5cf045a03034201ff108c2802fa6ac79459a1.msu |
| x86 | KB5017397 - 2022-09 Servicing Stack Update for Windows 7 | windows6.1-kb5017397-x86_96b91eb53575a201d59b1a2b540aa15df0d23b3a.msu |
| x64 | KB5017397 - 2022-09 Servicing Stack Update for Windows 7 | windows6.1-kb5017397-x64_2a9999bd20cb964869c59bb16841a76e14030a29.msu |
| x86 | KB5022338 - 2023-01 Security Monthly Quality Rollup for Windows 7 | windows6.1-kb5022338-x86_490dce532d299588e11abf3790ff1600482525cd.msu |
| x64 | KB5022338 - 2023-01 Security Monthly Quality Rollup for Windows 7 | windows6.1-kb5022338-x64_75d100c03bcaee4b62d08004cc382337ed09d327.msu |
Updates WSUS offline updater wants to install after all the others have been installed.
| Architecture | Name | File / Link |
|---|---|---|
| x86 | KB4557900 - 2020-05 Update for Windows 7 | windows6.1-kb4557900-x86_72a6afb8cf994c3c8176cc9953e17e52c20b5016.msu |
| x64 | KB4557900 - 2020-05 Update for Windows 7 | windows6.1-kb4557900-x64_d627d0b8e7fa41a7604fa39b0fc63ed240ca9ad1.msu |
| x86 | KB4566371 - 2020-09 Update for Windows 7 | windows6.1-kb4566371-x86_5f2f1263346a6a0158087fa71ef068540552d1d7.msu |
| x64 | KB4566371 - 2020-09 Update for Windows 7 | windows6.1-kb4566371-x64_d558c4dacfbea4e754788bf98db998a119d77305.msu |
| x86 | KB4578623 - 2020-10 Update for Windows 7 | windows6.1-kb4578623-x86_11ffee2bac9f998623938836968a738d35af51df.msu |
| x64 | KB4578623 - 2020-10 Update for Windows 7 | windows6.1-kb4578623-x64_dcbc342c60cc1c6c4ca8559430008a8191e64455.msu |
| x86 | KB4601275 - 2021-04 Update for Windows 7 | windows6.1-kb4601275-x86_8f127a2ce3fa65c11f3824998e95da4d211f100c.msu |
| x64 | KB4601275 - 2021-04 Update for Windows 7 | windows6.1-kb4601275-x64_00d4557308ead569110ca3455205375984afde76.msu |
In order to run Powershell scripts, run the file Set-ExecutionPolicy Unrestricted All.bat
Or run the powershell command "Set-ExecutionPolicy Unrestricted" manually.
You can revert to default settings with "Set-ExecutionPolicy Default" and "Set-ExecutionPolicy Default All" for all scopes.


