Datasheet

Command-Line Setup Option
Windows Vista and Windows Server 2008 come with a new command-line tool named pkgmgr.exe that
you can use to custom install IIS 7. The following table describes the available options on this command-
line tool:
When you use the
pkgmgr.exe command-line tool to install specified updates, you must also explicitly
specify and install the updates that your specified updates depend on. For example, if you decide to
install the IIS-CommonHttpFeatures update, you must also install its parent update, that is, IIS-
WebServer. To install the IIS-WebServer update you must also install its parent update, IIS-
WebServerRole, and the update that it depends on, WAS-ProcessModel (see the update dependencies
table). To install the WAS-ProcessModel update you must also install its parent update, WAS-
WindowsActivationService update:
start /w /iu:IIS-WebServerRole;WAS-WindowsActivationService;WAS-ProcessModel;
IIS-WebServer;IIS-CommonHttpFeatures
Notice that if you don’t specify the start /w option, the command-line tool will return immediately
and process everything in the background, which means that you won’t be able to see when the setup is
completed.
Unattended Setup Option
As mentioned earlier, the pkgmgr.exe command-line tool comes with the /n:unattend.xml option.
unattend.xml is the XML file that contains the updates to be installed or uninstalled. This XML file
provides you with two benefits. First, you don’t have to directly enter the names of the updates on
the command line. Second, you can store this file somewhere for reuse in other Web server machines.
This XML file must have the same schema as the XML file shown in Listing 1-1. This listing installs
the IIS-CommandHttpFeatures update and the updates that it depends on as discussed in the previous
section.
Option Description
/iu:update1;update2…
Run the tool with this option to install the specified updates. Notice
that the update list contains a semicolon-separated list of update
names discussed in the previous sections.
/uu:update1;update2…
Run the tool with this option to uninstall the specified updates. Notice
that the update list contains a semicolon-separated list of update
names discussed in the previous sections.
/n:unattend.xml
Run the tool with this option to install or uninstall the updates speci-
fied in the specified
unattend.xml file. I cover this file in the follow-
ing section.
20
Chapter 1: IIS 7 and ASP.NET Integrated Architecture
52539c01.qxd:WroxPro 9/17/07 6:51 PM Page 20