Microsoft KB Archive/158503

{|
 * width="100%"|

OFF97: Setup Switches for Microsoft Office 97

 * }

Q158503

-

The information in this article applies to:


 * Microsoft Office 97 for Windows

-

SUMMARY
The Microsoft Office 97 Setup program accepts a number of 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
The following table lists the Setup switches.

IMPORTANT NOTES:

 Switches are not case sensitive; for example, /A is the same as /a. Except where specifically noted, you may only use these switches when performing an initial installation of Microsoft Office 97.  Separate multiple switches by a blank space. For example, use the following command line to restore Office registry settings: "Setup /y /r"

 Switch             Function --

/a                 Runs Setup in administrative mode and creates an                     administrative installation point. Available only when running Setup from compact discs or floppy disks.

NOTE: The /a and /q# or /qn# switches are mutually exclusive.

Example: /a --

/b#                Suppresses the dialog box for choosing an installation type by preselecting one of the large buttons.

Substitute a digit for the # symbol: 1 represents the first button, 2 represents the second button, and so                    on. This option is ignored if an invalid digit is                    used.

NOTE: There is no space between the "b" and the digit.

Examples: /b1 = Typical /b2 = Custom /b3 = Run from CD or Run from Network Server --

/c " "      Enters and validates the 20-character Product ID from the original equipment manufacturer (OEM) Certificate of Authorization, replacing the user dialog box that normally appears. You must specify the Certificate of                    Authorization number.

Example: /c "01234OEM567890123456"

--

/f                 All files are created with the 8.3 MS-DOS naming convention. Long file names are not used.

NOTE: This switch is almost never required and should not be used unless absolutely necessary.

Example: /f --

/g[+] " " Generates a log file that records details of the setup process. You must specify the log file.

You may use this switch when running Microsoft Office 97 Setup in maintenance mode.

NOTE: Do not specify a file name with the ".txt" extension.

NOTE: If + is specified, Setup appends information to                    the log file instead of creating a new one.

Examples: /g "c:\msoffice\newlog.log" /g+ "c:\msoffice\oldlog.log" --

/gc[+] " " Generates a log file that records details of the setup process. This switch also causes Setup to log all calls and returns from custom actions. This can make the log file very large.

You must specify the log file. The file name specified must be an 8.3 MS-DOS short name. Longer file names are not allowed.

You may use this switch when running Microsoft Office 97 Setup in maintenance mode.

NOTE: Do not specify a file name with the ".txt" extension.

NOTE: If + is specified, Setup appends information to the log file, instead of creating a new one.

Examples: /gc "c:\msoffice\newlog.log" /gc+ "c:\msoffice\oldlog.log" --

/k " "       Enters and validates the 11-digit key from the compact disc sticker, replacing the user dialog box that would normally appear.

Example: /k "12345678910" --

/l <.lst file>     Specifies the custom .lst file to use when running Setup. Use this switch after performing an                    administrative installation of Microsoft Office 97 and using the Network Installation Wizard to                    customize Setup.

For more information about this switch, see the following article in the Microsoft Knowledge Base:

ARTICLE-ID: Q158281 TITLE    : OFF97 Err Msg: "Setup Error 544"

Example: /l custom.lst

NOTE: This switch must be first on the command line when used in combination with other switches.

--  /n ""              Setup uses the Windows registry Copy Disincentive name if it exists; otherwise, Setup prompts the user for the name. Ignored when you use the /a switch.

Example: /n "" --

/n " "        Specifies the user name. Setup uses the Windows registry Copy Disincentive name if it exists; otherwise, Setup uses the user name that you specify. Ignored when you use the /a switch.

Example: /n "J. Random User" --

/o ""              Setup uses the Windows registry Copy Disincentive organization name if it exists; otherwise, Setup prompts the user for the organization name.

Example: /o "" --

/o " " Specifies the organization name. Setup uses the Windows registry Copy Disincentive organization name if it exists; otherwise, it uses the organization name that you specify.

Example: /o "My Organization Name" --

/q#                Specifies that Setup run in quiet installation mode. Performs a batch mode installation with no user interaction.

Substitute any of the following values for #: nothing, 0, 1, or t.

/q: All dialog boxes except the exit dialog box are suppressed.

/q0: All dialog boxes except the exit dialog box are suppressed.

/q1: All dialog boxes including the exit dialog box are suppressed.

/qt: All dialog boxes and other user interface, including the background and the copy gauge, are suppressed.

Examples: /q /q0 /q1 /qt --

/qn#               Specifies that Setup runs in quiet installation mode, and that the system is not rebooted. The option can be                    1 or t (see the /q# switch); 0 is not valid.

Examples: /qn1 /qnt --

/r                 Reinstalls the program.

You may use this switch when running Microsoft Office 97 Setup in maintenance mode.

Example: /r --

/s folder          Specifies the folder from which files are installed. Overrides the default source (the folder                    containing Setup.exe or the source specified in the                     maintenance mode .stf file).

Example: /s x:\msoffice --  /u[a]              Use this switch to uninstall Microsoft Office. /u removes all program files except shared components; /ua always removes shared components without prompting you.

You may use this switch when running Microsoft Office 97 Setup in maintenance mode.

NOTE: If you use /q with /u, the shared components are not removed because the dialog boxes that prompt you to remove the components do not appear.

Examples: /u /ua -- /x " "        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.

Example: /x "x:\msoffice\install.log" --

/y                 Prevents Setup from copying files. Setup proceeds normally, including setting registry entries, but does not copy any files. Use this switch for restoring registry entry values or for tracking down process problems without copying files.

You may use this switch when running Microsoft Office 97 Setup in maintenance mode. Running Setup after a                    previous setup of Microsoft Office starts Setup in                     maintenance mode.

Example: /y --  ? Displays Setup command line options. Using any invalid parameter (for example, /z) also displays these options.

Example: ? --

Additional query words: OFF97 "setup /t" parameters

Keywords : kbsetup

Issue type : kbinfo

Technology : kbOfficeSearch kbOffice97Search kbOffice97