Materials required:
Windows 7 x32 install media
Windows 7 x64 install media
Hex editor with search-and-replace, and support for unicode strings.
WAIK 2.0
Optional materials:
Windows 7 Enterprise x32 & x64 install media
(only required if you wish to have these editions available)
Stage 1: arranging files
Okay, in this guide we shall be working on the D: drive, but any drive letter you have available shall do.
In this stage we set up a directory structure to be used for the rest of the stages.
Firstly, create the folders:
D:\AIO\DVD
and
D:\AIO\WIMs
Next, extract contents of the x86 DVD into D:\AIO\DVD
Delete all .clg files from D:\AIO\DVD\sources
delete ei.cfg from D:\AIO\DVD\sources
Then move install.wim from D:\AIO\DVD\sources to D:\AIO\WIMs, and rename it ULTx86.wim
Then extract install. wim from the x64 DVD to WIMs, and rename it ULTx64.wim
And optionally, extract the install.wim from the x86 and x64 Enterprise DVDs, renaming them ENTx86.wim and ENTx64.wim respectively.
Finally, extract the content of the sources directory (except install.wim and ei.cfg) from the x64 DVD to D:\AIO\DVD\sourc64,
and copy the setup.exe from the x64 DVD to D:\AIO\DVD as setup64.exe
Stage 2: Building the WIM
Now we must build the install.wim (that's the file that contains the different versions of windows, if you didn't know), by exporting images from the .WIMS we have.
Assuming you've done exactly as I've said, open the deployment tools command prompt (from WAIK), and enter these commands:
You can skip the Enterprise ones if you chose not to include Enterprise. Well, you could skip any of them, but I reccommend including all you can,Imagex /export "D:\AIO\WIMs\ULTx86.wim" 1 "D:\AIO\DVD\sources\install.wim" "Windows 7 STARTER"
Imagex /export "D:\AIO\WIMs\ULTx86.wim" 2 "D:\AIO\DVD\sources\install.wim" "Windows 7 HOME BASIC"
Imagex /export "D:\AIO\WIMs\ULTx86.wim" 3 "D:\AIO\DVD\sources\install.wim" "Windows 7 HOME PREMIUM"
Imagex /export "D:\AIO\WIMs\ULTx86.wim" 4 "D:\AIO\DVD\sources\install.wim" "Windows 7 PROFESSIONAL"
Imagex /export "D:\AIO\WIMs\ENTx86.wim" 1 "D:\AIO\DVD\sources\install.wim" "Windows 7 ENTERPRISE"
Imagex /export "D:\AIO\WIMs\ULTx86.wim" 5 "D:\AIO\DVD\sources\install.wim" "Windows 7 ULTIMATE"
Imagex /export "D:\AIO\WIMs\ULTx64.wim" 1 "D:\AIO\DVD\sources\install.wim" "Windows 7 HOME BASIC (x64)"
Imagex /export "D:\AIO\WIMs\ULTx64.wim" 2 "D:\AIO\DVD\sources\install.wim" "Windows 7 HOME PREMIUM (x64)"
Imagex /export "D:\AIO\WIMs\ULTx64.wim" 3 "D:\AIO\DVD\sources\install.wim" "Windows 7 PROFESSIONAL (x64)"
Imagex /export "D:\AIO\WIMs\ENTx64.wim" 1 "D:\AIO\DVD\sources\install.wim" "Windows 7 ENTERPRISE (x64)"
Imagex /export "D:\AIO\WIMs\ULTx64.wim" 4 "D:\AIO\DVD\sources\install.wim" "Windows 7 ULTIMATE (x64)"
as it does not take up much additional room (I assume WIM automatically reuses files), and you never know when you might need to do a clean install for someone!
Sage 3: Modifying the BCD
Here we modify the DVD's BCD, so as to add an x64 recovery option. The recovery option is just that: it cannot install.
To improve user transparency, the boot timeout shall be set to 3 sec, so as to be almost unnoticeable if not needed.
Ok, open an administative command prompt.
Navigate to D:\AIO\DVD
Now make a copy of the default loader by executing:
This command shall tell you the GUID of the copy made, make a note of it.bcdedit /store boot\bcd /copy {default} /d "x64 Recovery Mode"
Next set the new loader to load the 64 bit PE by executing:
Replace {GUID} with the GUID you noted down)bcdedit /store boot\bcd /set {GUID} device ramdisk=[boot]\sourc64\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
bcdedit /store boot\bcd /set {GUID} osdevice ramdisk=[boot]\sourc64\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
Finally, alter the boot timeout by executing:
Stage 4: getting upgrade to workbcdedit /store boot\bcd /timeout 3
Now, the one problem left is upgrade installs on 64 bit. This involves hex editing files, and so breaks the digital signature,
causing the ugly yellow UAC prompt. This is, I am almost ashamed to say, the first of two such cosmetic glitches.
Now first open D:\AIO\DVD\setup64.exe in your hex editor. Search and replace all instances of the unicode string "sources\" with "sourc64\".
Although this breaks the signature, it does not break the program, because both strings are the same length.
Now, open D:\AIO\DVD\sourc64\autorun.dll, and replace all instances of the unicode string "sources\setup.exe" with "sourc64\lunch.cmd"
(in case you were wondering, it was going to be launch.cmd, but I had to drop one letter...)
Now, create a file in D:\AIO\DVD\sourc64 called lunch.cmd containing exactly this:
NOTE: If you are using a SP1 slipstreamed image, lunch.cmd should instead contain exactly this:setup.exe /m:sourc64 /installfrom:\sources\install.wim
This is the cause of the second cosmetic glitch. A command prompt is briefly visible before setup is launched.setup.exe /installfrom:\sources\install.wim
Now, the autorun.inf must be modified so that it runs setup64 on x64 systems. Modify it so it contains:
Now, finally, we're ready to master a DVD. Open up the deployment tools command prompt, and enter:[Autorun.Amd64]
open=setup64.exe
icon=setup64.exe,0
[Autorun]
open=setup.exe
icon=setup.exe,0
oscdimg.exe -l7_AIO -t10/22/2009:00:00 -m -u2 -bD:\AIO\DVD\Boot\etfsboot.com D:\AIO\DVD D:\7_AIO.ISO
From Kelsenellenelvian:
Here are the 2 hexed files and the lunch.cmd files for easier usage!
http://www.wpiw.net/downloads/HexedFiles.7z
Size = 128 kb
File: HexedFiles.7z
CRC-32: 56696231
MD4: 1eaee7615eb038c5c282319a366a0035
MD5: 58465fe899c431fc19051afa4b02794b
SHA-1: 5faffbb1596b2c551777b24da2f83cb4abdac51a
I suggest win7toolkit for the blending and then you don't even need to use WAIK!!!