:: Adding Unattended ::

What does Unattended Mean?

If you're looking at this section, and this is the first time you've heard anything about unattended installatoins, then you need to check out Creating an Unattended Windows XP CD.


How To

Okay so great, we've almost got our DVD done, now what if we wanted to add all of our unattended installation files?

Well, it's very easy actually. First of all, copy your $OEM$ folder to the same directory as your i386 folder, so that they are parallel.

Example:
D:\AIO-DVD\SETUP\XP\Professional\i386\
D:\AIO-DVD\SETUP\XP\Professional\$OEM$\

Now, all you have to do is take your winnt.sif answer file and place it into the boot folder for that operating system, which in this example would be PRO1.


Multiple OS Boot Options

But wait, there is more! Most of us who are taking on a project such as this will probably be using our DVD to help our friends/family/co-workers. So if we are re-installing XP on someone else's computer, we don't want all of our unattended information and programs being installed as well. Luckily, there is a simple fix to this.

To allow ourselves to be able to install a regular OS installation or an unattended installation, we will need multiple boot options for that OS. To do this, we must create multiple boot folders and boot sectors.

Taking XP as the example, copy the PRO1 folder, paste it back into the AIO-DVD folder and rename it from Copy of PRO1 to PRO2. Do the same thing with PRO1.DAT and rename it to PRO2.DAT. So now we should have two folders and two DAT files with the same contents:

D:\AIO-DVD\PRO1\
D:\AIO-DVD\PRO2\

D:\AIO-DVD\
PRO1.DAT
D:\AIO-DVD\PRO2.DAT

Now we need to edit setupldr.bin in the PRO2 folder so that all references to PRO1 now point to PRO2, and hex-edit PRO2.DAT so that it points to PRO2 as well.

If you want the first boot option to be a regular installation and the second option to be an unattended installation, add your winnt.sif file to the PRO2 folder.

All that's left is to add the correct entries to our boot menu so we can select different installation options. The following is an example of what I mean:

XP_Pro:
print c "\n\cXXMicrosoft Windows XP Professional SP1 Corporate \n"
print "1) Regular \n"
print "2) Unattended \n"

XP_Pro_Key:
if $lastKey == key[1]; then chain /PRO1.DAT
if $lastKey == key[2]; then chain /PRO2.DAT