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

Command-line Switch

Description

Example

/x <package path>

Setup uninstalls Microsoft Project. The MSI file specified must be the MSI file used to install Microsoft Project originally. The MSI file must be in the same folder as Setup.exe.

/x e:\data1.msi

/t <transform>

Specifies the name of the transform (MST) file. When using the /jm switches, the /t switch must be used, other wise the TRANSFORM property should be used.

/t accounting.mst

/l [i|w|e|a|r|u|c|m|p|v

|+]Logfile

Logging switches for MSIEXEC.EXE Specifies path to log file and the flags indicate which information to log.

'i' - Status messages

'w' - Non-fatal warnings

'e' - All error messages

'a' - Start up of actions

'r' - Action-specific records

'u' - User requests

'c' - Initial UI parameters

'm' - Out-of-memory

'p' - Terminal properties

'v' - Verbose output

'+' - Append to existing file

"*" - Wildcard, log all information (except Verbose output)

“!” - Flushes each line to the log file. The default behavior is to cache 20 lines of log file text in memory, and then dump 20 lines to the log file at once. This is done to improve performance.

/l* c:\logname.txt


Command-line Switch

Description

Example

/m

SMS status .MIF generation option

Creates a .MIF file in the %TEMP% folder.

The SMS status MIF generation option, -m filename, where filename is the 1-8 char base name without the .MIF, is available only for install (-i), remove (-x), admin install (-a), and reinstall product (-fv). Fields are filled as follows:

Manufacturer - SummaryInfo PID_AUTHOR, 4 (Author)

Product - SummaryInfo PID_REVNUMBER, 9 (ProductCode)

Version - SummaryInfo PID_SUBJECT, 3 (Product description and version)

Locale - SummaryInfo PID_TEMPLATE, 7 (Platform and language)

Serial Number - not set, not available

Installation - not settable via API, set by ISMIF32.DLL to "DateTime"

InstallStatus - "Success" or "Failed", depending on success of install

Description - Error message (as much as can be obtained), or empty if successful

An example command line would be of the form: msiexec /i Data1.msi /m 12345678 (note .MIF extension is not included.

/g

Language ID


Command-line Switch

Description

Example

/y

Module

Calls the system API DllRegisterServer to self-register modules passed in on the command line. For example, msiexec /y my_file.dll.

This option is only used for registry information that can't be added using the registry tables of the .msi file. This is not used the same way /y was used in previous versions of Office

/z

Module

Calls the system API DllUnRegisterServer to unregister modules passed in on the command line. For example, msiexec /z my_file.dll.

This option is only used for registry information that can't be removed using the registry tables of the .msi file.


Setup Properties

Setup Properties are global variables used during the installation process. They can be used to set the information normally entered by a user during installation. For example, the setup property COMPANYNAME can be set to automatically populate the organization name that appears in the Help/About box. Numerous setup properties exist.

For a complete list of setup properties for Microsoft Project 2000, see the Microsoft Project 2000 Resource Kit.

Some properties are public, meaning that they can be overridden at the command line or set dynamically during the installation using standard actions or custom actions. (Note: The names of public properties are always in all uppercase letters.)