Microsoft KB Archive/818555

= OFF97: Setup Switches for Microsoft Office 97 =

Article ID: 818555

Article Last Modified on 8/9/2006

-

APPLIES TO


 * Microsoft Office 97 Standard Edition

-



SUMMARY
The Microsoft Office 97 Setup program accepts optional switches that you can use to control how the Setup program operates. This article lists the switches and describes the functionality of each switch.



MORE INFORMATION
You can run the Office Setup program from a command line. If you run Setup from a command line, you can add parameters to the command that allow you to specify certain options (for example, select a Typical installation or create a network installation log).

To run Setup from a command line, follow these steps:
 * 1) In Microsoft Windows 95, Microsoft Windows 98, Microsoft Windows Millennium Edition, Microsoft Windows NT 4.0, Microsoft Windows 2000, or Microsoft Windows XP: Click Start, and then click Run.

-or-

In Microsoft Windows NT 3.51: Click Run on the Program Manager File menu.
 * 1) Type the location that you are installing from, and then type the word setup . For example, type A:\Setup or X:\Msoffice\Setup

If you want to add a command-line option, type it after the command. For example, to run Setup in administrative mode, type A:\Setup /a

Command-line Switch Options and Their Descriptions
The following list shows the command-line options recognized by the Office Setup program.

Note The brackets ( { } ) in the following command-line switch options are optional settings. Do not type the brackets if you use these settings.
 * /a Creates an administrative installation point. Valid only when you run Setup from CD or floppy disks.
 * /b  Bypasses the Microsoft Office 97 Setup dialog box by selecting the type of installation:
 * /b 1 : Typical
 * /b 2 : Custom
 * /b 3 : Run from CD or run from network server
 * /c &quot; &quot; Bypasses the dialog box where you type the 20-character Product ID from the OEM Certificate of Authorization for validation. Instead, this option uses the number that you specify.
 * /f Specifies that all files be created with an eight-character file name and a three-character extension, instead of with a long file name.
 * /g{+} &quot; &quot; Generates a log file that records details of the Setup process. If you specify +, Setup appends new information to the log file instead of overwriting it.
 * /gc{+} &quot; &quot; Does the same as /g, except all calls and returns from custom actions are also logged. This can make the log file very large.
 * /k &quot; &quot; Bypasses the dialog box where you type the 11-digit key from the CD sticker for validation. Instead, this option uses the number that you specify.
 * /l &quot; &quot; Overrides the default .lst file (Setup.lst) with the specified file.
 * /m  Specifies the Microsoft License Pak (MLP) licensing information that you must have to activate the MLP for floppy disks. Setup does not install any software, but terminates immediately after it sets the count at the number you specify.
 * /n &quot;&quot; Prompts for a user name to use if no default user name exists in the registry.
 * /n &quot; &quot; Specifies the user name to use if no default user name exists in the registry.
 * /o &quot;&quot; Prompts for an organization name to use if no default organization name exists in the registry.
 * /o &quot; &quot; Specifies the organization name to use if no default organization exists in the registry.
 * /q{ } Specifies the level of user interaction for batch mode installation:
 * 0 Suppresses all dialog boxes except the final one. Using 0 is the same as using no argument.
 * 1 Suppresses all dialog boxes, including the final one.
 * t Suppresses all Setup user interface elements.
 * /qn{ } Does the same as /q, except that the computer is not restarted and 0 is not a valid value. To suppress all dialog boxes except the final one, use /qn with no argument.
 * 0 Suppresses all dialog boxes except the final one. Using 0 is the same as using no argument.
 * 1 Suppresses all dialog boxes, including the final one.
 * t Suppresses all Setup user interface elements.
 * /r Reinstalls a program. Use in maintenance mode only.
 * /s &quot; &quot; Overrides the default source (the folder containing Setup.exe or the source specified in the maintenance mode STF file) with the specified folder.
 * /u{a} Removes Office. If you specify a, shared components are removed without your being prompted; otherwise, you are prompted before removing shared components. Use in maintenance mode only.
 * /x &quot; &quot; Creates a network installation log file for tracking the number of installations made from an administrative installation point. This overrides the value, if any, specified in the STF file.
 * /y Proceeds typically, including setting registry entries, but does not copy any files to your disk. Use this option to restore registry values or to track down processing problems.

Note If you type any parameter that is not valid, Setup displays a partial list of valid command-line options.

When you combine options on the same command line, consider the following:  Command-line switches are not case-sensitive; for example, /A is the same as /a. Separate multiple switches by a blank space. For example, use the following command to restore Office registry settings:

Setup /y /r

 The /a and /q options are mutually exclusive; if you use both, you receive a usage error message. The /n option is ignored if /a is used. The /u and /r options are mutually exclusive; if you use both, you receive a usage error message. The prompt elicited by the /u option is suppressed if you use /q with it. The shared components are not removed.

For additional information about installing Microsoft Office, visit the following Microsoft Web site:

http://www.microsoft.com/office/ork/004/004.htm#dex19

Additional query words: set up install installation command line command-line startup start up off97 office97 office 97

Keywords: kbinfo KB818555

-

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

© Microsoft Corporation. All rights reserved.