Description of setup command-line switches for Office 2003
For a Microsoft Office XP version of this article, see 283686 (http://support.microsoft.com/kb/283686/).
For a Microsoft Office 2000 version of this article, see 202946 (http://support.microsoft.com/kb/202946/).
On This PageSUMMARYYou 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 INFORMATIONThe 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 (http://office.microsoft.com/en-us/ork2003/default.aspx) Important Notes
/a msifileThe /a msifile 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:
/f optionsmsifileThe /f optionsmsifile 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 options include the following:
Example:
/i msifileThe /i msifile 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:
/j option msifile /t mstfileThe /j option msifile /t mstfile 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:
Example:
/l optionslogfileThe /l optionslogfile 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:
Example: /lv* "%temp%\MyApp Setup(*).txt" This command line creates the following log files:
/m .mif fileThe /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: "Invalid command line." /norebootThe /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 mspfileThe /p mspfile 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:
/q optionSet the Setup user interface display level.Valid values for options include the following:
/settings fileThe /settings file 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] /waitWait for the installation to complete before you quit the Setup program./x msifileThe /x msifile 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.msiproperty=valueSpecify a property value on the command line. If the value contains spaces, enclose it in quotation marks ("). To specify two or more property-value pairs, separate them with spaces. The following are examples of this switch:
APPLIES TO
| Article Translations
|

Back to the top
