Archive for May, 2008

Published by Marius on 23 May 2008

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:

image

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:

image

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:

image

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:

1

2

Your folder:

3 

Stay tuned for the next parts, where we will integrate drivers and other software!

LE: Here is part 2.

Published by Marius on 17 May 2008

Search Wikipedia (and other services) from Vista’s Start Menu

There is a cool trick that lets you do a search on various websites, such as Wikipedia or IMDB, right from your Vista Start Menu.

It works for Windows Vista and Windows Server 2008.

1. Go to Start -> Run -> type gpedit.msc and hit enter.

2. From Local Group Policy Editor select User Configuration -> Administrative Templates -> Windows Components -> Instant Search.

image

3. Double click “Custom Instant Search Internet search provider”, enable it, and in the first text box type Wikipedia Search. In the second text box type http://en.wikipedia.org/wiki/%w

image

4. Click OK, close the editor, and in Start -> Run -> type gpupdate /force so you don’t need to restart your computer to apply the policy.

5. All done! You can now go to your Start Menu and type something in the “Start Search” box. Let’s say… Paris. And then select Search Wikipedia from the list. It should fly to Paris in a second :-)

image 

Other services that I found useful:

Live Search: http://search.live.com/results.aspx?q=%

IMDB: http://search.imdb.com/find?s=all&q=%

Published by Marius on 10 May 2008

Slipstreaming (integrating) XP Service Pack 3

Now that SP3 is out, let’s slipstream (integrate) it into a bootable Windows XP installation disc.

You need to download Windows XP Service Pack 3 Network Installation Package and MagicISO (I used version 5.4).

As Microsoft says, Windows XP Service Pack 3 includes all previously released updates for the operating system, so it’s OK to use any of the following XP editions:

Windows XP Home Edition, Windows XP Professional Edition, Windows XP Service Pack 1, Windows XP Service Pack 2.

Install MagicISO, insert a bootable XP CD and follow those steps:

1. Create a directory and then copy all the contents of your Windows XP CD in that directory. Mine is C:\XPCD.

2. Open MagicISO, go to File -> Open CD/DVD Driver. It should say Bootable, like in this screenshot:

1

3. Create a folder for XP’s boot image. Mine is C:\Boot.

4. From MagicISO select Tools -> Save Boot Image. Go to C:\Boot and name it BootImg.

5. Download Windows XP Service Pack 3 Network Installation Package to C:\SP3.

6. Click Start -> Run, copy and run this line:

C:\SP3\WindowsXP-KB936929-SP3-x86-ENU.exe /integrate:C:\XPCD

You should see 3 screens:

setup1

setup2

setup3

SP3 is now integrated into Windows XP.

7. Go back To MagicISO, select File -> New -> Bootable CD/DVD Image. In the Bootable Option dialog box, select From Bootable Image File and browse for C:\Boot\BootImg and then click OK:

2

8. Now select all your files from C:\XPCD and drag and drop them to MagicISO (into your empty area (on top-right window). You should have something like this:

3

9. Now you need to have a valid MagicISO license in order to save images greater than 300 MB. Select File -> Save -> select Standard ISO Image -> go to your C:\ drive and save the image with a name. Mine is XPSP3.

10. Now you can burn the image with your CD burner, or with MagicISO (Tools - Burn CD/DVD with ISO).

Now you can install a clean copy of Windows XP Service Pack 3 slipstreamed.

And the final result:

final

Enjoy! :-)

Published by Marius on 09 May 2008

Windows XP Service Pack 3 Final

Yes, Service Pack 3 for Windows XP is out, downloadable from Microsoft Update and it can be installed even with Internet Explorer 7 (which had issues on beta versions of Service Pack 3)

sp3

Check my blog tomorrow, I will write an article about slipstreaming the Service Pack.