Recently I have learned about various Microsoft Offerings which ease the deployment of Operating systems for OEMs and also for any other environment involving large number of computers.
Some of them which are of particular interest to me are:
- WAIK (Windows automated Installation Kit- set of tools to customize and streamline OS install (1.7GB!)). [don't download it just yet, here is a way to save Bandwidth]
- WDS (Windows Distribution Services- help deploy OS(s) over a network).
- MDT (Microsoft Deployment Toolkit).
In a windows installation disk two files are of concern to us:
- ie.cfg (sources\ei.cfg)
- install.win (sources\install.wim) [might want to know about wim file format on wikipedia]
The install.win file conatains the setup files for various versions OS. Ordinarily it will contain folders indexed from [1], [2], [3] … and so on depending on the architecture (x86-32 has 5 versions while x86-64 has 4 versions coz of windows 7 starter being available on x86-32 architecture only). Along with the folders will be an XML file containing descriptions of all the images present in the install.wim file.
So to make available all versions of win7 of x86 and x64 architecture in the disk the corresponding folders must be added and entry be made in the XML file.
Before getting started we must have the following software:
- win7 x86-32(32bit) installation medium
- win7 x86-64(64 bit) installation medium
- ei.cfg removal utility
- imagex (part of WAIK (this post explains a more bandwidth friendly way to obtain imagex which doesn't require downloading and installing complete WAIK )
- ultraiso or any other iso editing tool that allows creation of bootable disk.
Step1: Use ei.cfg removal utility to remove ei.cfg from iso (if you have installation disk just follow steps 2 and 3 and then remove ei.cfg from sources directory in 32bit and 64bit folders).
Step2: Make two directories in a drive containing enough free space (about 20gb) , lets call them 32bit and 64bit.
Step3: Extract the contents of x86-64 iso and x86-32 to 64bit and 32bit respectively.
Step4: Open elevated command prompt and navigate to the parent directory of 32bit and 64 bit folders . Also copy imagex to that directory. Now execute the following commands:
- imagex /export 64bit\sources\install.wim 1 32bit\sources\install.wim "Windows 7 Home Basic x64"
- imagex /export 64bit\sources\install.wim 2 32bit\sources\install.wim "Windows 7 Home Premium x64"
- imagex /export 64bit\sources\install.wim 3 32bit\sources\install.wim "Windows 7 Professional x64"
- imagex /export 64bit\sources\install.wim 4 32bit\sources\install.wim "Windows 7 Ultimate x64"
- imagex /info 32bit\sources\install.wim 4 "New_Image_Name" "New_Description"
New_Image_name should be unique, New_Description is the string which will appear during installation.
To delete an existing image use imagex /delete
- imagex /delete 32bit\sources\install.wim image_index
The images in .wim file after image_index will shift 1 index up, eg. if image_index is 1, after this operation the image on index 2 will now come to index 1.
Step5 [Skip this step and go to Step 7 is creating bootable USB]: Using Ultra Iso extract boot image from the original Installation medium.
Step6 [Skip this step and go to Step 7 is creating bootable USB]: Create a new bootable disk in Ultra Iso select the extracted .bin file in step5 and paste all the contents of 32bit directory to it and save the ISO.
The Iso is ready now. During installation you the following dialogue will be visible, which can be then used to select the desired version to install.
Step 7 - Creating bootable USB: Ultra ISO is a paid software and trial version comes with limitations. If instead of ISO, you want to make a bootable USB drive do the following steps.
- Open elevated command prompt, and execute the following commands.
diskpart list disk select disk 1 REM if list disk shows USB drive as disk 1 clean create partition primary select partition 1 active format fs=ntfs quick label="Win Install" exit
- In the same command prompt now execute the following commands
cd 32bit\boot bootsect /nt60 d: REM assuming your USB drive is d: exit
Copy all files from 32bit folder to USB device.
In the next blog I'll try to shorten the list of software required , particularly imagex ,ultraiso and ei.cfg removal utility.
Update (9 Nov 2018) : Tried the steps for Windows 10. Was successful .
References
- https://blogs.technet.microsoft.com/danstolts/2012/07/create-bootable-usb-thumb-drive-key-using-diskpart-with-windows-8-media-to-install-windows-8-release-preview-or-other-operating-system/
No comments:
Post a Comment