Showing posts with label bootable cd. Show all posts
Showing posts with label bootable cd. Show all posts

Friday, August 14, 2009

Automate the installation of Windows XP

You can create a CD that can install Windows automatically, putting in all the details and answering all the dialog boxes. The secret behind the unattended nature of the whole thing is the answer file, which tells Windows what to do while it’s installing. The answer file can be created using Windows Setup Manager. Using this tool, you can make the answer file so powerful that you can even tell
Windows to include or exclude individual components, set the display resolution, and
more. Here’s how you do it.

1: To begin with, insert your Windows XP installation CD into the drive and copy the entire contents of the CD to a folder on your hard drive.

2: Navigate to the Support > Tools folder on the CD and double-click the Deploy.cab file. Copy all the files to a folder on your hard disk.

3: The crucial part begins now—creating the answer file. To execute the Windows Setup Manager, double-click the Setupmgr.exe file from the contents of Deploy.cab, which you just copied onto the hard drive. The next step explains the option you need to select from the first few dialog boxes that appear.

4: The first few steps of the wizard are self-explanatory. Select the following options from the successive dialog boxes: Create a new answer file; Windows unattended installation (Select the appropriate Windows version); “Fully automated”; “No, this answer file will be used to install from CD”; and finally, accept the license agreement.

5: Under General Settings, you can customise the installation of Windows by providing the default name and organisation, display settings, time zone and the product key. Fill in the fields using the drop-down lists or by keying in the details. If you don’t select an option from the drop-
down lists, the default values will be used.

6: Under Network Settings, configure the computer name, administrator password, networking components and workgroup. If you are specifying the Administrator password, make sure you check the option to encrypt the password in the answer file. If you have a static IP address, you can specify the settings under the Networking Components section.


7 : Use the Advanced Settings section only to configure telephony, browser and shell settings and installation folders. Under Browser and Shell Settings, click the browser settings button to set the home page and add Favorites. If you are on a network, you can also specify the proxy settings.

8 : After you’re done,click Finish and save the answer file as “winnt.sif” when you are prompted. Advanced users can further tweak the answer file by referring to the Help file called Ref.chm in the same folder as the Setup Manager. Finally, copy the answer file to the i386 folder in the Windows XP installation folder you created in the beginning.


9: To burn a bootable installation disc, you need the boot sector of the Windows XP CD. Download it from www.tacktech.com/pub/microsoft/bootfiles/bootfiles.zip, and extract the boot sector file to a folder. This file will be used with Nero Burning ROM to create the bootable disc.

10 : Launch Nero and select CD-ROM(Boot) from the New Compilation dialog bo Under the Boot tab, specify the boot sector file you extracted. Set the emulation as “No emulation”, and keep the boot message blank. Most importantly, remember to set the “Number of loaded sectors” as 4.

11: Under the Burn tab, set the write method to disc at-once. Click the New button to begin adding files and folders to the compilation. Drag all the contents of the Windows XP installation disc that you copied to your hard drive (with the answer file in the i386 folder) into the left pane.

12: Insert a blank CD into the optical drive and hit the Burn button. Wait a few minutes and there you go! Your unattended Windows XP installation disc is ready!!!

Creating A Windows XP SP2 Bootable CD

1. First, create a folder on your hard drive e.g. D:\XPCD. Now, copy the entire contents of existing Windows XP CD to this folder. The Windows XP SP2 executable file is an archive of the Service Pack 2 files, so you can use WinZip and extract SP2 files to another folder say D:\SP2. Now, locate update.exe under D:\SP2. This can be found inside the sub-folder named ‘update’. Go to the DOS command prompt and change your directory to this ‘update’ folder. Run the commandcommand “update where/integrate:"(dir)" “(dir)” is the directory you saved the Windows XP CD files to, ( “D:\XPCD” in ourcase). This will start integrating SP2 into the Windows XP Installation files saved at D:\XPCD. You should get message box confirmation that integration was successful.Now the D:\XPCD folder contains Windows XP installation files with SP2 integrated.

2. Extracting the boot image from the existing Windows XP bootable CD is easy. You need to use software that can do this. Bart’s Boot Image Extractor (BBIE) is a simple but useful utility and isavailable for download from http://nu2.abwehr.net/bbie10.zip. Insert the Windows XP CD into the CD drive, and go to the command prompt and change directory to the folder where BBIE is located. Run “bbie -v (CD drive letter)” e.g. “bbie -v F:”. You should now find a file named
‘image1.bin’ being created in the same folder from where bbie.exe was run. This file is the
Windows XP Boot image.

3. Insert a blank CD-R media into your CD Writer. Use burning software such as Nero to create your boot CD. Go to File >> New, select ‘Boot CD’ and select the boot image file that you created in Step 2. Make sure that emulation is set to ‘No emulation’. The boot segment is automatically filled in by Nero—all you need to do is set the number of loaded sectors to 4. Select Mode1 and ISO Level 2, from under the ISO tab. Enable all options under ‘Relax ISO Restrictions’, and use the ISO 9660 Character set. Under the Label tab, enter the same label name as that of theoriginal CD. To find this, just insert the Windows XP Installation CD into your CD- ROM drive and open Windows Explorer to see the name displayed against your CD drive. Click ‘New’ to open the File Explorer browser. In the file browser, select all the XP Installation files with SP2 integrated (from D:\XPCD in our example) for writing to a new CD. Finally open the CD Write dialog box, and under the ‘Burn’ tab, enable the Finalize CD option. Now, write the compilation to the blank CD-R. You have successfully created a bootable Windows XP installation CD with SP2.

Create A Bootable XP CD That Pre-installs Additional Programs

To create a bootable XP CD that pre-installs additional programs, first install Windows Unattended CD Creator (WUCC). You need to have Microsoft .NET Framework 1.1 or higher installed.Windows Unattended CD Creator is a very small application that will help you create an user-customized Windows bootable CD. You can choose which drivers, components or hotfixes to be installed and you can even set your network settings. All you need to do in a normal Windows installation is taken cared of by this little application, so you can install your operating system in the fastest way possible.


When you open WUCC, you will be asked for the Windows CD or the directory of the Windows install files (the CD must be bootable). To add these files, click Select. Afteradding the install files, select a targetdirectory for the new Windows CD (or you can modify the source directory provided it is not read-only). If you going to “Select target directory”, then it is better to use a new directory rather than an existing one. The target directory will be a temporary location the software will use to create your disc image.After you create your disc, you candelete this
directory.

Now,you can add Windows hot-fixes like those to Internet Explorer, WMP, DirectX, etc. Find
these in the Hotfixes tab. Click the Select button to import the .exe files. When you select one, it will ask for a short name in 8.3 format, like “Explorer.exe”. After confirming the name, click Add.Change to the Software tab. Here you add the software you want to install along with the Windows installation. Provide a name for the software in the Software Description box.Then “Select” the software type (Files Only or Directory). You’ll see that the files are being added to the program list. Click a program from the list and then click Select to enter the program’s start parameters (basically, the path from where it will be installed). Repeat this for every program in the program list.

The start parameter is like
“%CDROM%\Software\...”If you don’t want to copy the programs to the Windows CD, click
the checkbox titled “Install directly from…”, but when you repeat the step where you provide the start parameters, you must type a valid source path. Change the default “%CDROM%\Software\...”to the actual path, say: “C:\My Software\...\...”

When all your programs have been provided with their start parameters, switch to the Done tab. Here you’ll see the list of directories that will be included in the Windows CD. If the size of the disc you’ve made is larger than the disc size (usually 700 MB), you can delete unnecessary directories, or you can split the files according to the disc size. You can also use a DVD.
Finally, click “Create ISO-image” to create the image for the new Windows bootable CD. Write this image onto a disc. You can now delete the temporary folder (the target directory in the “Source-CD” tab) you created.