Project 2000. Windows Installer, страница 2

As noted in the above steps, SETUP.EXE parses customization information and passes that on to installation. There are three types of customization information that is passed on by SETUP.EXE. They are Command Line Switches, the information within the SETUP.INI file, and Setup Properties. Below we look more in-depth at these three areas.

Command Line Switches

The first area where we can customize a Microsoft Project 2000 installation is with switches. Switches are usually run from the command line, but can also be included in a batch file or a shortcut. Switches can customize installations in various ways. For example, to install Microsoft Project 2000 as an administrative install point, the /a switch would be used. (The /a switch also allows an .MSI file name to be specified.) When typed at a command prompt, the syntax would look as follows:

D:\setup.exe /a data1.msi

When To Use Command-Line Switches

Command-Line Switches are most useful when few customizations are needed or when users want to create several different installations quickly. There is no need to edit any Project files (such as the Setup settings file) or run any special tools (such as the Office Custom Installation Wizard).

It is possible to create multiple custom installations by defining different command lines for different users or by creating multiple batch files or shortcuts. This method is especially useful if there is a need to create multiple deployment packages by using a systems management tool — and each package requires a different command line.

For example, if the Engineering and Accounting departments install the same version of Project but use unique organization names, the Administrator may create two shortcuts that have the following command lines:

setup.exe /q companyname="Engineering Department"

setup.exe /q companyname="Accounting Department"

SETUP.EXE does not actually process command line switches. Instead it reads them from the command line and passes them to the Windows Installer to be processed.

There are exceptions to this rule however. The following three switches are processed by SETUP.EXE.

/autorun - This switch is only used only in the AUTORUN.INF file. Its purpose is to indicate that setup is being run automatically after you insert the CD in the CD-ROM drive.      

/settings - Specifies a settings file and path that customizes Setup actions.

/wait - Waits for installation to complete before exiting.

Below is a list of switches that can be used when installing Microsoft Project 2000.

For more information, see the following Knowledge Base article: Q202946 "Setup Switches for Microsoft Office 2000 ".

 

Command-line Switch

Description

Example

 
 

/a                   

Setup performs an administrative installation, using the specified MSI file, to create an administrative point. NOTE: This option cannot be used along with the /i switch (discussed later).     

Create a network share.

The share must be accessible by all users who need to install Microsoft Project, and you must have write access to it.

Run Setup from Microsoft Project CD by using the /a command-line option. For example:

e:\setup.exe /a data1.msi

When Setup prompts you for the installation location, enter the network share that you created.

Setup copies all of the files from Microsoft Project CD to the network share.

 
 

/autorun

This switch is only used only in the AUTORUN.INF file. Its purpose is to indicate that setup is being run automatically after you insert the CD in the CD-ROM drive.      

/autorun