Published by Marius on 23 May 2008 at 01:37 am
Build your own custom Vista installation DVD - Unattended Setup (part 1)
This tutorial will be split into several parts, as I’ll try to cover more and more about how you can make your own fully automated, customized Vista installation DVD, using Microsoft’s official tools. I will cover also Vista SP1 (Service Pack 1) “slipstreaming” in the next part of this tutorial. You will see why I wrote slipstreaming with quotes.
What you will need:
- A bootable Windows Vista/Server 2008 DVD.
- Automated Installation Kit for Windows Vista SP1 and Windows Server 2008 (WAIK).
- Any tool for extracting/inserting boot images. I use MagicISO, as I did in an earlier tutorial.
As a tip: if you don’t have the first requirement (Vista/2008 DVD), you can download a 240 days trial of Windows Server 2008. That’s an 8 months free license!
The first two downloads are quite large, so it will take some time.
What we want to do:
(this is the same for both Vista and Server 2008)
Well, I should explain what’s that WAIK in the first place:
It’s a free tool from Microsoft that lets you customize in depth your Windows installation and deploy resulting custom images. Vista (unlike XP) is modular, and everything is packaged (on it’s installation DVD) into a WIM file. That WIM file is being uncompressed on hard-disk during installation. So there is no more just “a bunch of files placed on a CD” like it was for XP and prior. You can access the WIM image by simply mounting it on the hard-disk, make modifications and then repackage it. It’s just that simple.
What all this means is that you can choose what component you want to install and with what settings. And all the installation can be done automatically in minutes, depending on your system’s speed. You can choose wether to add Service Packs and updates to your installation, software packages, drivers and so on. With just a few clicks.
Isn’t that cool?
Well, it’s easy too, so relax if you don’t understand all this stuff right now. Just follow the steps.
So in this part I will cover some basics of WAIK. We will customize a Windows Image (WIM file) using Windows System Image Manager, change some default settings and add/remove Windows components.
1. WAIK installation is pretty straight-forward, you just need to mount the downloaded image using Daemon Tools and “next-next-finish” it
2. Create a folder named WIM, mine is C:\WIM.
3. Insert (mount) your Vista/Server 2008 DVD (image), go to sources folder and copy install.wim to C:\WIM.
4. Click on Start -> All Programs -> Microsoft Windows AIK -> Windows System Image Manager. You will see this screen:
5. Now in Windows Image section, right-click and choose Select Windows Image. Browse to C:\WIM\install.wim and open the image.
6. Select your Windows edition based on your purchased/downloaded license. I will choose Business. Then click Yes to create a catalog file. After the process is complete, you should see this screen:
7. Go to Answer File section, right-click and select New Answer File.
Let’s explain where we are:
We copied a Windows Installation image so we could modify it. We now see all the Windows default components, packages and settings, and also some steps in the answer file section. Those steps are just phases in which the components are installed. Not a big deal, so don’t worry too much about them or their names.
That long string for every component shows:
Platform type, component name, Windows version (not component’s version). I will refer just to a component name directly.
So let’s have some fun:
8. Select Components -> Internet Explorer -> Start Pages -> right-click on StartPage and select Add Setting to Pass 4 specialize.
You can now go to your answer file and in the StartPageKey type HomePage1. In StartPageUrl type http://www.easytutorials.net/
The modified text appears in bold, so you’ll always know what you changed.
You should have this as a result:
Repeat step 8 if you want to add more home-pages to Internet Explorer. It will open them in tabs after installation. You will see that at the end of this tutorial.
I added a home-page for http://www.google.com/ with the name HomePage2. You can choose whatever name you want.
Every time you change a setting, validate your answer file using Tools -> Validate answer file!
Let’s do one more setting:
9. Go to Components -> Setup -> UserData -> ProductKey -> Add Setting to Pass 1 windowsPE. Here you can enter your license key and display an error dialog during setup if the key is invalid.
Up in UserData you can accept EULA, type your name and organization…
So you can see how far you can go with those settings and how customizable your Windows installation can be. Just browsing thru all those settings can take a great amount of time, but it’s nice when you think that you’ll need to do all this just once, not after every default Windows installation. And here you have all this control in just one place.
Go and play with some settings. Add/remove some Windows Games. Can you find them?
Another tip: if you don’t know what a setting does or means, just click on it and press F1. A Help window will appear with useful information about that setting.
Now let’s save the answer file!
Oh, have I defined what an answer file is? It’s the file which automates all the installation process and it contains all your settings. So you can even edit it with notepad if you know XML structure. The help for Windows System Image Manager contains examples for settings, written in XML.
Even so, I don’t recommend you to do any manual modifications to that XML file.
10. Choose File -> Save Answer File. Save it as C:\WIM\autounattend.xml and close the program.
We’re almost done!
Steps 11-14 are optional and shows how you can edit your WIM image and add files so you can have them available after Windows installation. Or just for curiosity purposes
11. Click Start -> All Programs -> Microsoft Windows AIK -> Windows PE Tools Command Prompt
12. Create a directory to mount your image in. Mine is C:\Mount
13. Type imagex /mountrw C:\WIM\install.wim 1 C:\Mount
This is how you mount your image in read/write mode. So go to C:\Mount and create a folder named MyFiles. You can also see Vista’s directory structure. Add files and folders if you want, but don’t delete the defaults
14. Now if you did something wrong, you can unmount the image without saving it, by typing: imagex /unmount C:\Mount
If you’re sure about your changes, you can save the Windows image using imagex /unmount /commit C:\Mount
Easy, isn’t it? I’m sure you can redo those steps without reading every line I wrote
So let’s pack all this!
15. Install MagicISO and extract the boot image from Vista/Server 2008 DVD. See the instructions here if you don’t know how to do it (steps 1-4, just replace “XPCD” with “VistaDVD” and of course, the XP disc with a Vista one
).
16. Now you should have all the contents of Vista’s original DVD into a folder called C:\VistaDVD. Copy the following files from C:\WIM (and replace the files):
install.wim to C:\VistaDVD\sources\install.wim
install_Windows Vista VERSION.clg to C:\VistaDVD\sources\install_Windows Vista VERSION.clg (where VERSION = BUSINESS, HOMEBASIC…)
autounattend.xml to C:\VistaDVD
17. Now all you need to do is to follow the steps here (7-10) for information about packaging a bootable ISO.
That’s all and I hope you enjoyed this tutorial. Please let me know if you’ve found this useful. I also wait for some feedback if there are some errors somewhere or you’re stuck at something. Even for plain-english or grammar
And… the final result:
Your home-pages:
Your folder:
Stay tuned for the next parts, where we will integrate drivers and other software!
LE: Here is part 2.
helpless Deliver - Windows Vista Forums on 12 Jun 2008 at 9:02 am #
[...] helpless Deliver Build your own custom Vista installation DVD - Unattended Setup (part 1) __________________ [...]
waltharius on 19 Jul 2008 at 12:46 am #
Hi,
greate post. Please write how to integrate drivers and other software with Vista dvd nstalation disk! I’m looking that kind of article on whole net, and I cant find it.
Best regards
waltharius
Marius on 21 Jul 2008 at 9:59 pm #
I will write part 2 this week, waltharius.
Thanks for the feedback!
waltharius on 22 Jul 2008 at 12:41 am #
Hi,
I will wait for the next part
Really greate work!
Marius on 22 Jul 2008 at 1:36 am #
Thank you!
Check the website soon!
waltharius on 30 Jul 2008 at 1:09 am #
Hi,
I put your rss feed to my gmail reader and still waiting for the next part of this very good article
Best regards
walth
» Build your own custom Vista installation DVD - Integrating drivers (part 2) Windows Made Easy on 03 Aug 2008 at 2:27 pm #
[...] a simple task, but first you need to read part 1 of this [...]
Euro on 10 Nov 2008 at 1:19 pm #
Thank you very much for the time and effort you have put into this guide, I have been meaning to make an unattended version of Vista for some time now but never had a clue where to start but now thanks to your guide I can get started on creating one.
Again thanks very much for this great guide.
Euro.
Marius on 10 Nov 2008 at 4:50 pm #
I’m glad I could help! Thanks for your feedback!