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!
mahastat on 10 Dec 2008 at 8:04 pm #
hari om.
thanks to you.its a fine post which deals with ease to difficult thing.beginners will like it.no complications about sayings.
mahastat.
Marius on 10 Dec 2008 at 8:44 pm #
You’re welcome mahastat!
Robert Downey on 10 Dec 2008 at 10:55 pm #
The problem I am having is that I made the bootable vista dvd to the LETTER the way you say in both tutorials; however…I am NOT getting the disk to boot. in windows it will ask if I want to run setup…like a normal vista disk would…fine…when I reboot the pc to get the “press any key to run cd/dvd”…it just runs past that and boots to my normall windows…i don’t even get the load from cd/dvd prompt anymore…
help
Marius on 11 Dec 2008 at 1:05 am #
Hello Robert!
Is your DVD really bootable? You can check that by opening the drive with MagicISO. If it says that it is bootable, check if your computer has the DVD drive as the first boot device (BIOS setting).
Robert Downey on 11 Dec 2008 at 1:18 am #
checked it out…all i get when I try to install with the disk is ” disk boot failure”…when i open it in windows …it opens just like it should..in vista youget the pop-up screnn that ask if you want to browse or run setup….the disk said it was bootable in Magic ISO…but after looking at the BootImage file you told me to create….that file says that could not boot from cd…
Robert on 11 Dec 2008 at 9:35 pm #
I got it to work…had to make a new iso image from the os disk….
1 extracted the install.wim from the disk
2 made iso from the disk
3 used the extracted wim to make the autounattend.xml, clg files…saved all three
4 opened the iso (unmodified) in magic iso
5 deleted original clg, wim files in sources
6 copied modified files into sources
7 copied autounattend.xml to root
8 re saved iso
9 burn cd/dvd from image
10 it works…
11 adding in the audit features to version 2 so I can add office, adobe, avg, and adaware
will let you know how that works out…maybe I will upload this thing as atorrent when done so no one else has to go throughthis…all the sites say that you have to put the unattend file on usb…bull..took five tries but I got it…
now if I can only figure out how to make one of these where I can have multiple versions of the os on that image and select which one to install..then have in run the unattend.xml for that version..any ideas…a multi-os disk is what I am going for here
would like to have the xp version disks..and the vista.. by the way..can i put multiple versions of xp on on dvd…and use your prior thread to run it..yours only show 98,me,2k,xp
all of the xp versions have the same file names…so I can repeat the process..it asks if I want to ver write the existing files.
Marius on 12 Dec 2008 at 2:19 am #
I’m glad it worked Robert!
Of course, you can build a multi-boot DVD using EasyBoot. Good idea, I will write a tutorial about multi-boot DVDs when I’ll have some time.
Best regards!
Robert on 13 Dec 2008 at 2:06 am #
I think that I messed up the unattend.xmlfile for the apps install…when it got to that part the cd would shut the system down…I think that I may have had one too many command s in there..the tutorial I did not talk about adding office..which needs a key entered to install..so I think that is what failed it out…I figure it out and let you know what Idid..
Marius on 13 Dec 2008 at 10:03 am #
I will make a tutorial about integrating software into Vista DVD sometime soon! But I don’t think that the key will shut down your computer, maybe it’s something else. Also, did you validate your XML file?
Robert on 16 Dec 2008 at 10:53 pm #
Yes the validation had no errors…but i used another forum for the apps part of it…so I think thier instructions might not blend well with yours…actually I used yours and microsofts technet instructions to set the one that I have up…as I said without the apss install it works fine…
My major concern now is getting a multi-os of the different versions of xp on one disk…I downloaded the easy boot…but am confused as to how i use it…I will look forward to your forum on that one…just post it here or e-mail me…
Robert on 17 Dec 2008 at 10:42 pm #
Here is the tutorial on usinfg easyboot to make multi xp os dvd…i wrote this myself..tested it and it works great!!
you can repost it elswhere if you want.. enjoy!!
Windows Xp Multi-Os DVD Creation Procedure
TERMS:
Source Folders- Folders on hard drive that contain
Original cd/dvd files from disks
or iso image
Boot Folders - Folders which contain the modified
files for new DVD.
step 1
Create folders in easyboot\disk1 for your BOOT Folders.
ex. easyboot\disk1\XPMC (media Center
easyboot\disk1\XPRO (XP Professional) you get the idea.
make as many as you need. I found it easier to make the folder names
in CAPS and only 4 letters..just keep track of which is which.
ex. If you have 2 home edition XP folders, one is retail..the other
is OEM, label on XPH1 and the other XPH2..simple right?
Step 2
This step can be done one of TWO ways:
-Copy files Directly from the source disk (CD\DVD)
-Copy entire Source to a Source folder on your hard drive.
**IF you have an iso image, you can mount it with Magic Iso, Daemon Tools
etc.. to extract the files to your hard drive, or copy them from the
ISO to the BOOT folder directly. The choice is yours if space is an
issue for you..I recommend copying from the sources ONLY THE FILES NEEDED!
For each Boot folder you created you will need to copy the following folders
or files..and ONLY these;
-I386 Folder (copy and paste I386 to easyboot\disk1\XXXX)
**Note XXXX is the BOOT Folder name for the files..If XP
Media Center …then easyboot\disk1\XPMC from my example above.
-WIN51IP, WIN51, an WIN51IP.SPX (spx is for which ever service pack you have 1, 2, or 3)
******ATTENTION!! These files MUST be copied to the ROOT of disk1 AND the the
BOOT Folders!! It will not work correctly if not copied to BOTH!!
YOU HAVE BEEN WARNED!!!!
-wxp.bat Which is found in easyboot\resources folder. copy this file into EACh
BOOT folder.
Now your boot folders should list out like this right now:
I386
WIN51
WIN51IP
WIN51IP.SPX (remember the SPX will vary for service pack 1, 2, or 3)
wxp.bat
Step 3
run the wxp.bat in EACH BOOT Folder!! This will extract the nessesary files
we need…It also extracts system32 folder for you. AGAIN MAKE SURE YOU RUN
THIS FILE IN EACH BOOT FOLDER.
Step 4
next wie will audit the following files in each BOOT Folder:
TXTSETUP.SIF, and SETUPLDR.BIN
Open TEXTSETUP.SIF with Notepad. Go to Edit->Find Type in SetUpSourcePath
Change the “\” so it says “\XXXX” where XXXX is the name of your BOOT Folder
This XXXX MUST be all CAPS to work. Do this for each BOOT FOLDER!!
***DO NOT CHANGE ANYTHING ELSE IN THIS FILE OR IT WILL NOT WORK AT ALL!!
Next, Open the Easyboot program. Go to TOOLS->Replace Text.
go to each of your XXXX Boot folders one at a time and select the SETUPLDR.BIN
file. Replace i386 with XXXX (your Boot Folder name in CAPS!!!) It sould say
4 instances replaced..if not type i386 as I386 (caps).
Do this for each bin file. Just open the first XXXX bin file, replace the text,
then select the next XXXX bin file..replace…and so on..
you do not net to exit out of the replace text box each time. Cool Huh?
Step 5
If you do NOT want the “press any key to boot from cd..” to show up
DELETE the BOOTFIX.BIN FILE FROM EACH BOOT FOLDER. That way when your DVD
loads, you select the OS you want to install, and it starts the setup
without giving you that prompt at all.
Step 6
Ok, now we will check and make sure that we have everything..
1- copied the needed files over in step 2
2- Make sure the WIN51IP, WIN51, an WIN51IP.SPX files are in each BOOT Folder
3- Make sure that the WIN51IP, WIN51, an WIN51IP.SPX are in the root disk
meaning easyboot\disk1\WIN51IP, WIN51, an WIN51IP.SPX. It won’t work
without those files on the root and in each BOOT Folder.
4- Check each BOOT folder to make sure the files in step 4 have been modified
(just look at the modified date..should be the current date!)
Step 7
Now we make a copy of the w2ksect.bin file located in
easyboot\disk1\ezboot.
just right click-> copy, then right click-> paste (in the same folder)
do this as many times as you need to have one copy PER BOOT FOLDER.
DO NOT MODIFY THE ORIGINAL w2ksect.bin file!!
Rename each copy to correspond with you BOOT Folder names
ex. XPMC.bin, XPH1.bin…you get the idea.
Next use the TOOLs- Replace text in easyboot again to open each of your new bin files
replace i386 (orI386) with XXXX (BOOT Folder for that file) Should only find ONE
PER bin File.
Step 8
Setup you Menu with the number of BOOT folders you have. For the command
line use “run XXXX.bin” to execute the installs.
ex. menu button [1]Windows XP Media Center…run XPMC.bin and so on
thats it.
after setting those up…click save..if you missed something in cofiguring the
buttons…it will tell you…if no errors then it is good. Now we
can make the ISO.
Just click make ISO…I set the Optimze check and DOS 8 on mine and it works
great…
Just use the default myiso for the file name..it is easier.
after it is done..you can burn it in your dvd burning software, BUT
I would recommend that you first test the image by using
Microsoft Virtual PC which is free…it will boot it and run the setup
that way you won’t burn through 100 DVDs if you have a problem.
GOOD LUCK..you can e-mail me with questoins RobertD0275@yahoo.com
Robert on 18 Dec 2008 at 9:25 am #
sORRY GUYS i HAD AN UPDATE TO THE TEXT HERE IS THE FINAL WORKING PROCESS
Windows Xp Multi-Os DVD Creation Procedure
TERMS:
Source Folders- Folders on hard drive that contain
Original cd/dvd files from disks
or iso image
Boot Folders - Folders which contain the modified
files for new DVD.
step 1
Create folders in easyboot\disk1 for your BOOT Folders.
ex. easyboot\disk1\XPMC (media Center
easyboot\disk1\XPRO (XP Professional) you get the idea.
make as many as you need. I found it easier to make the folder names
in CAPS and only 4 letters..just keep track of which is which.
ex. If you have 2 home edition XP folders, one is retail..the other
is OEM, label on XPH1 and the other XPH2..simple right?
Step 2
This step can be done one of TWO ways:
-Copy files Directly from the source disk (CD\DVD)
-Copy entire Source to a Source folder on your hard drive.
**IF you have an iso image, you can mount it with Magic Iso, Daemon Tools
etc.. to extract the files to your hard drive, or copy them from the
ISO to the BOOT folder directly. The choice is yours if space is an
issue for you..I recommend copying from the sources ONLY THE FILES NEEDED!
For each Boot folder you created you will need to copy the following folders
or files..and ONLY these;
-I386 Folder (copy and paste I386 to easyboot\disk1\XXXX)
**Note XXXX is the BOOT Folder name for the files..If XP
Media Center …then easyboot\disk1\XPMC from my example above.
- FOR XP MEDIA CENTER AND XP PRO
WIN51IP, WIN51, an WIN51IP.SPX (spx is for which ever service pack you have 1, 2, or 3)
- FOR XP HOME EDITIONS (RETAIL AND OEM)
WIN51IC, WIN51, an WIN51IC.SPX (spx is for which ever service pack you have 1, 2, or 3)
******ATTENTION!! These files MUST be copied to the ROOT of disk1 AND the the
BOOT Folders!! It will not work correctly if not copied to BOTH!!
YOU HAVE BEEN WARNED!!!! YOU MUST ALSO COPY THE WINNTIP.SPx OR WINNTIC.SPX
INTO THE I386 FOLDER OF EACH BOOT FOLDER
****(WIN51IP.SPX FOR XP MEDIA CENTER AND XP PRO, WIN51IC.SPX FOR HOME EDITIONS)
-wxp.bat Which is found in easyboot\resources folder. copy this file into EACh
BOOT folder.
Now your boot folders should list out like this right now:
I386
WIN51
WIN51IP
WIN51IP.SPX (remember the SPX will vary for service pack 1, 2, or 3)
wxp.bat
Step 3
run the wxp.bat in EACH BOOT Folder!! This will extract the nessesary files
we need…It also extracts system32 folder for you. AGAIN MAKE SURE YOU RUN
THIS FILE IN EACH BOOT FOLDER.
Step 4
next wie will audit the following files in each BOOT Folder:
TXTSETUP.SIF, and SETUPLDR.BIN
Open TEXTSETUP.SIF with Notepad. Go to Edit->Find Type in SetUpSourcePath
Change the “\” so it says “\XXXX” where XXXX is the name of your BOOT Folder
This XXXX MUST be all CAPS to work. Do this for each BOOT FOLDER!!
***DO NOT CHANGE ANYTHING ELSE IN THIS FILE OR IT WILL NOT WORK AT ALL!!
Next, Open the Easyboot program. Go to TOOLS->Replace Text.
go to each of your XXXX Boot folders one at a time and select the SETUPLDR.BIN
file. Replace i386 with XXXX (your Boot Folder name in CAPS!!!) It sould say
4 instances replaced..if not type i386 as I386 (caps).
Do this for each bin file. Just open the first XXXX bin file, replace the text,
then select the next XXXX bin file..replace…and so on..
you do not net to exit out of the replace text box each time. Cool Huh?
Step 5
If you do NOT want the “press any key to boot from cd..” to show up
DELETE the BOOTFIX.BIN FILE FROM EACH BOOT FOLDER. That way when your DVD
loads, you select the OS you want to install, and it starts the setup
without giving you that prompt at all.
Step 6
Ok, now we will check and make sure that we have everything..
1- copied the needed files over in step 2
2- Make sure the WIN51IP, WIN51, an WIN51IP.SPX files are in each BOOT Folder
3- Make sure that the WIN51IP, WIN51, an WIN51IP.SPX are in the root disk
meaning easyboot\disk1\WIN51IP, WIN51, an WIN51IP.SPX. It won’t work
without those files on the root and in each BOOT Folder.
4- Check each BOOT folder to make sure the files in step 4 have been modified
(just look at the modified date..should be the current date!)
Step 7
Now we make a copy of the w2ksect.bin file located in
easyboot\disk1\ezboot.
just right click-> copy, then right click-> paste (in the same folder)
do this as many times as you need to have one copy PER BOOT FOLDER.
DO NOT MODIFY THE ORIGINAL w2ksect.bin file!!
Rename each copy to correspond with you BOOT Folder names
ex. XPMC.bin, XPH1.bin…you get the idea.
Next use the TOOLs- Replace text in easyboot again to open each of your new bin files
replace i386 (orI386) with XXXX (BOOT Folder for that file) Should only find ONE
PER bin File.
Step 8
Setup you Menu with the number of BOOT folders you have. For the command
line use “run XXXX.bin” to execute the installs.
ex. menu button [1]Windows XP Media Center…run XPMC.bin and so on
thats it.
after setting those up…click save..if you missed something in cofiguring the
buttons…it will tell you…if no errors then it is good. Now we
can make the ISO.
Just click make ISO…I set the Optimze check and DOS 8 on mine and it works
great…
Just use the default myiso for the file name..it is easier.
after it is done..you can burn it in your dvd burning software, BUT
I would recommend that you first test the image by using
Microsoft Virtual PC which is free…it will boot it and run the setup
that way you won’t burn through 100 DVDs if you have a problem.
GOOD LUCK..you can e-mail me with questoins RobertD0275@yahoo.com