Microsoft KB Archive/826530

= Description of setup command-line switches for Office 2003 =

Article ID: 826530

Article Last Modified on 3/27/2007

-

APPLIES TO


 * Microsoft Office Professional Edition 2003
 * Microsoft Office Excel 2003
 * Microsoft Office FrontPage 2003
 * Microsoft Office Outlook 2003
 * Microsoft Office PowerPoint 2003
 * Microsoft Office Publisher 2003
 * Microsoft Office Word 2003
 * Microsoft Office Standard Edition 2003
 * Microsoft Office Student and Teacher Edition 2003
 * Microsoft Office Small Business Edition 2003
 * Microsoft Office Basic Edition 2003
 * Microsoft Office Access 2003

-







For a Microsoft Office XP version of this article, see 283686.



For a Microsoft Office 2000 version of this article, see 202946.



SUMMARY
You can use several optional command-line switches with the Microsoft Office 2003 Setup program. These optional command-line switches control how the Setup program operates. This article lists the switches and describes the functionality of each switch.



MORE INFORMATION
The following command-line switches and options are used with the Setup command line. By using command-line options, an administrator can control how programs that use the Microsoft Windows Installer package (.msi files) and the transforms (.mst files) install software applications.

If you plan to use several Setup properties, type them in the Setup settings file (Setup.ini) to reduce the chance of encountering a command-line length limitation.

For more information about Setup switches and properties, see the Microsoft Office 2003 Resource Kit. To view the Microsoft Office 2003 Resource Kit, visit the following Microsoft Web site:

http://office.microsoft.com/en-us/ork2003/default.aspx

Important Notes

 * Switches and options are not case sensitive. For example, /A is the same as /a.
 * Except where specifically noted, you can use these switches only when you perform an initial installation of Office 2003.
 * If you use a Setup command-line option that is also used in the Setup settings file (Setup.ini) or in the transform (.mst file), the command-line switch typically takes precedence.
 * The Windows Installer package (.msi file) must be in the same folder as Setup.exe. When you install Microsoft Office, the Windows Installer package must be in the root folder of the administrative installation point.
 * When you use multiple switches, separate them with a blank space. For example, use the following command line to use a specific installer file and write the results to a log file: Setup /i Pro11.msi /l* c:\logfile.txt
 * When Setup.exe ends, it sets %errorlevel% if an error was encountered. If the user cancels the setup process, the error level that is returned is zero (0), indicating that no error occurred.

/a
The /a  switch creates an administrative installation point for the specified package (.msi file). The package must be in the same folder as Setup.exe; both the package and Setup.exe must be at the root of the administrative installation point.

Example:
 * /a My.msi
 * /a &quot;subfolder1\My.msi&quot;

/f
The /f   switch forces repair of a program that is associated with the specified package (.msi file). The package must be in the same folder as Setup.exe; both the package and Setup.exe must be at the root of the administrative installation point. Alternatively, you can specify the product code for the package. You can copy the product code from the Product section of the Setup settings file.

Note You must specify the same package that was used to install the program originally.

Valid values for  include the following:

Important If a user applies a client (binary) update to a computer, you cannot use the /f switch to recache and reinstall on that computer from an updated administrative installation point. In this case, users must remove and reinstall from the updated administrative image.

Example:
 * /focums My.msi
 * /fvm {12345678-1234-1234-1234-123456789123}

/i
The /i  switch installs applications using the specified package. The package must be in the same folder as Setup.exe.

Note By default, Setup.exe directs Windows Installer to perform the same function as /i.

Example:
 * /i My.msi
 * /i &quot;subfolder1\My.msi&quot;

/j
The /j    switch advertises the program on the computer and installs the program on first use. You must specify an option to advertise the program to either the computer or the user. You can use the /j switch only when you run the setup from an administrative installation point or an image of the CD on the network. If no package is specified, the setup uses the package specified in Setup.ini. To apply a transform to the advertised program, use the /t switch and specify an .mst file.

Valid values for option include the following:

Note In addition to /t, you can use the following three command-line options when you use /j to advertise the program: /l, /q, and /settings.

Example:
 * /jm My.msi /t Custom.mst

/l
The /l   switch creates a log of installation actions for the setup process and a log file for each Windows Installer task. The /l switch also overrides default settings specified in the Logging section of Setup.ini.

Values for this option include the following and capture the corresponding data:

Logfile signifies the name and path of the log file to create. When you include (*) in the log file name, the setup process creates a unique file name for each instance of the setup process.

Example: /lv* &quot;%temp%\MyApp Setup(*).txt&quot;

This command line creates the following log files:
 * Setup.exe log file &quot;%temp%\MyAppSetup(0001).txt&quot;
 * Windows Installer log file for core packages &quot;%temp%\MyApp(0001)_Task(0001).txt&quot;

/m
The /m switch specifies an SMS .mif file name of 8 characters or less.

Note Do not include the .mif file name extension with the file name. If you do, the command will return the following error: &quot;Invalid command line.&quot;

/noreboot
The /noreboot switch specifies to not restart the computer or display a restart dialog box at the end of the installation. The /noreboot option sets the Windows Installer REBOOT property to ReallySuppress for each package included in the installation except the last one.

/p
The /p  switch specifies to apply an administrative update (MSP file) to a client installation. You can also use the /p to apply an update to an administrative installation by including the /a option and the name and path of the .msi file on the administrative installation point. To apply the update quietly, include /qb on the command line to generate a log file, include /l.

Example:
 * msiexec /p  /qb /l
 * msiexec /p  /a  /qb /l

/q
Set the Setup user interface display level.

Valid values for options include the following:

Note The completion message appears only when the setup process does not have to restart the computer after the installation.

/settings
The /settings  switch specifies a custom Setup settings file for Setup.exe to use instead of Setup.ini. The settings file must be in the same folder as Setup.exe, or the path must be included on the command line.

Example:/settings MyApp.ini /x [msifile]

/wait
Wait for the installation to complete before you quit the Setup program.

/x
The /x  switch removes the program associated with the specified package. The package must be in the same folder as Setup.exe, and both must be at the root of the administrative installation point. Note You must specify the same package that was used to install the program originally. Example:: /x My.msi

property=value
Specify a property value on the command line. If the value contains spaces, enclose it in quotation marks (&quot;). To specify two or more property-value pairs, separate them with spaces. The following are examples of this switch:

Additional query words: OFF2003 PPT WD XL OL parameters

Keywords: kbsetup kbcommandline kbinfo KB826530

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.