OFF97: Setup Switches for Microsoft Office 97

Last reviewed: March 13, 1998
Article ID: 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:

  1. Switches are not case sensitive; for example, /A is the same as /a.

  2. Except where specifically noted, these switches may only be used when performing an initial installation of Microsoft Office 97.

  3. Multiple switches are separated 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 <COA>            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 01234567890123456789
     --------------------------------------------------------------------------
    
     /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[+] "<filename>"  Generates a log file that records details of the setup
                         process. You must specify the log file.
    
                         This switch may be used 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[+] "<filename>" 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.
    
                         This switch may be used 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 "<cdkey>"        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: How to Use Custom STF Files with
                                        MS Office 97 Setup
    
                         Example: /l custom.lst
    
                         NOTE: This switch must be first on the command line
                         when used in combination with other switches.
    
     --------------------------------------------------------------------------
    
     /m#                 Specifies the Multi-License Pak (MLP) licensing
                         information needed to activate the MLP for floppy
                         disks. Setup increments the multilicense count on the
                         floppy disks by the number you specify.
    
                         NOTE: There is no space between the "m" and the
                         number.
    
                         Example: /m50
     --------------------------------------------------------------------------
    
     /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 "<name>"         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 "<organization>" 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.
    
                         This switch may be used 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.
    
                         This switch may be used 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 "<file>"         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.
    
                         This switch may be used when running Microsoft Office
                         97 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"
Keywords : offadmin offupgrade OffWinSetup kbsetup kbfaq kbsetup
Version : 97
Platform : WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: March 13, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.