为 Office 2000 的安装命令行开关的说明

文章翻译 文章翻译
文章编号: 202946 - 查看本文应用于的产品
本文已归档。它按“原样”提供,并且不再更新。
为这篇文章的一个 Microsoft Office XP 版本,请参阅 283686
展开全部 | 关闭全部

概要

Office 安装程序接受数可用于控制安装程序的运行方式的可选命令行开关。本文列出了这些开关,并描述每个交换机的功能。

更多信息

重要说明
  • 开关不区分大小写 ; 例如 对于/A/a 相同。
  • 除非专门记下您可能只使用这些开关执行的 Microsoft Office 2000 初始安装时。
  • 在使用多个开关时请用空格分隔它们。例如对于使用特定的安装程序文件,并将结果写入一个日志文件使用下面的命令行:
       Setup /i data1.msi /l* c:\logfile.txt
    					
下表列出了安装开关选项。

 Switch              Description                 
 --------------------------------------------------------------------------
 /?                  Displays a dialog box of valid Setup switch options.
 --------------------------------------------------------------------------
 /a <msifile>        Setup performs an administrative installation using 
                     the specified Microsoft Installer (.msi) file to 
                     create an administrative install point. The .msi file
                     must be in the same folder as Setup.exe.

                     NOTE: This option cannot be used along with the /i 
                     switch (discussed later).

                     Example: /a data1.msi
 --------------------------------------------------------------------------
 /autorun            This switch is only used in the autorun.inf file. Its 
                     purpose is to indicate that Setup is being run by
                     Windows automatically after you insert the Office disc 
                     in the CD-ROM drive.

                     Caution: Do not modify the Autorun.inf file. The 
                     information it contains is necessary for the proper
                     operation of Setup.
 --------------------------------------------------------------------------
 /chained            Used to chain the Setups of more than one Office 2000
                     CD.
 --------------------------------------------------------------------------
				
 --------------------------------------------------------------------------
 /g <option>         Language ID. English is ID 1033. See the Office 
                     Resource Kit for a complete list of language IDs.

                     Example: /g 1033
 --------------------------------------------------------------------------
 /help               Displays a dialog box of valid Setup switch options.
 --------------------------------------------------------------------------
 /i <msifile>        Specifies the name of the .msi file. This option 
                     cannot be used along with the /a option. The .msi 
                     file must be in the same folder as Setup.exe.

                     Example: /i mso9.msi
 --------------------------------------------------------------------------
 /j<option>          Creates an icon representing an Office program or
   <package path>    feature that is configured during Setup to install 
                     the first time you use it ("Installed on first use").
                     Valid options are:

                     u: Current user logged on to Windows.
   
                     m: All users using the computer.

                     g: Language ID.

                     t: Applies transform to advertised package.
                     
                     Note: When using the /j switch with a TRANSFORMS file 
                     the /t switch should be used to point to a particular 
                     transforms list. Otherwise with other switches the 
                     TRANSFORMS property should be used. 

                     Example: /ju c:\data1.msi
                     Example: /ju c:\data1.msi /t install.mst
                     Example: /ju c:\data1.msi /g 1033
---------------------------------------------------------------------------
 /f<options>         Setup repairs the Office installation. The .msi file 
   <package path>    specified must be .msi file used to install Office 
                     originally. The .msi file must be in the same folder 
                     as Setup.exe.

                     The Detect and Repair command (Help menu) in Office
                     programs performs the same function as using the 
                     following options, /focums.

                     If you run Setup and click Reinstall. Setup performs
                     the same function as using the following options, 
                     /fecum. Valid options are:

                     a -Force all files to be reinstalled regardless of 
                        checksum or version.

                     c -Reinstall a file if it is missing or corrupted (the 
                        stored checksum doesn't match the computed 
                        checksum value).

                     d -Reinstall a file if it is missing or a different 
                        version is present.

                     e -Reinstall a file if it is missing or an equal or 
                        older version is present.

                     m -Rewrite all required local machine registry values.

                     o -Reinstall a file if it is missing, or an older 
                        version is present.

                     p -Reinstall a file only if it is missing.

                     s -Reinstall all shortcuts overwriting any existing 
                        shortcut.

                     u -Rewrite all required user registry values.

                     v -Run from the source package and re-cache the local 
                        package.

                     Example: /focums data1.msi
 --------------------------------------------------------------------------
 /l<option>          Logs switches for Msiexec.exe (the Windows installer)
   <logfile>         and specifies the path to the log file. The flags 
                     indicate which information to log. Valid options are:

                     a -Startup of actions.            

                     c -Initial UI parameters.

                     e -All error messages.

                     i -Status messages.

                     m -Out of memory.
 
                     o -Disk space errors.
				
                     r -Action-specific records.

                     p -Terminal properties.

                     u -User requests.

                     v -Verbose output.

                     w -Nonfatal warnings.

                     + -Append to existing file.

                     * -Log all information except verbose output. You can 
                        use the v switch along with the asterisk, /l*v.

                     ! -Writes each line to the log file. The default 
                        behavior is to cache 20 lines of log file text 
                        into memory and then write 20 lines to the log 
                        file at once. This is done to improve performance.
                       
                     Example: /l* c:\logfile.txt
 --------------------------------------------------------------------------
  /m <.mif file>     Specifies an SMS .mif file. 

                     The /m switch is available with the enhanced version
                     of Setup.exe. It will only appear when you run the 
                     command, "Setup /?" (without the quotation marks). For
                     information about the enhanced version of Setup.exe, 
                     please see the following article in the Microsoft 
                     Knowledge Base:

                     ARTICLE-ID: Q232501 
                     TITLE     : OFF2000: Description of the Special Copy
                                 of Setup.exe from ORK
 
				
 --------------------------------------------------------------------------

 /nd                Used with the Office Server Extensions Setupse.exe
                    only. This does not install the Microsoft Database
                    Engine.

 /noinstmsi         Does not install the Windows Installer.
 --------------------------------------------------------------------------
				
 <PROPERTY>=<value>  Specifies a value for any of the Installer properties 
                     (see the Office Resource Kit for a complete listing 
                     of valid properties). If the property value contains 
                     spaces, enclose the string in quotation marks 
                     ("<value>"). You can specify more than one property 
                     and value pair on the command line separated by 
                     spaces.

                     Example: TRANSFORMS="c:\acct dept" 
                              INSTALLLANGUAGE="German"
 --------------------------------------------------------------------------
 /q<option>          Selects the user interface level. Valid options are:

                     n: None - No user interface is displayed.

                     b: Basic - Only simple progress indicators and error 
                        are displayed.

                     r:  Reduced - No user information is collected and 
                         no progress indicators are displayed.
               
                     f: Full - All indicators with a modal dialog box at 
                        the end of setup.

                     n+: No user interface except for a modal dialog box 
                         displayed at the end.

                     Note: The modal dialog box is not displayed if the
                     system restarts.

                     b+: Basic user interface with a modal dialog box 
                         displayed at the end.

                     Note: The modal dialog box is not displayed if the 
                     user cancels the installation.

                     Example: /qn
 --------------------------------------------------------------------------
 /settings           Specifies a settings file and path that customizes 
 <INI file>          setup actions.

                     /settings c:\office9.ini
 --------------------------------------------------------------------------
 /t <transform>      Specifies the name of the transform (.mst) file. The 
                     /i switch is required with the /t switch. When using 
                     the /j switch with a transforms file, the /t switch 
                     must be used otherwise the TRANSFORMS property should 
                     be used.

                     Example: /t acct.mst /i off9.msi
 --------------------------------------------------------------------------
 /wait               Wait for the installation to complete before exiting 
                     the Setup program.
 --------------------------------------------------------------------------
 /x <msifile>        Setup uninstalls Office. The .msi file specified 
                     must be the same .msi file used to install Office 
                     originally. The .msi file must be in the same folder 
                     as Setup.exe.

                     Example: /x data1.msi
 --------------------------------------------------------------------------
				
如果您使用长文件名与路径中的嵌入空格,请参阅 Microsoft 知识库中下面的文章:
139427使用运行命令的长文件名

属性

文章编号: 202946 - 最后修改: 2014年2月22日 - 修订: 2.5
这篇文章中的信息适用于:
  • Microsoft Office 2000 优惠版
  • Microsoft Office 2000 中文专业版
  • Microsoft Office 2000 标准版
  • Microsoft Office 2000 中小企业版
  • Microsoft Office 2000 Developer Edition
  • Microsoft Access 2000 标准版
  • Microsoft Excel 2000 标准版
  • Microsoft FrontPage 2000 标准版
  • Microsoft Outlook 2000
  • Microsoft PowerPoint 2000 标准版
  • Microsoft Word 2000 标准版
关键字:?
kbnosurvey kbarchive kbmt kbhowto kbinfo kbsetup KB202946 KbMtzh
机器翻译
注意:这篇文章是由无人工介入的微软自动的机器翻译软件翻译完成。微软很高兴能同时提供给您由人工翻译的和由机器翻译的文章, 以使您能使用您的语言访问所有的知识库文章。然而由机器翻译的文章并不总是完美的。它可能存在词汇,语法或文法的问题,就像是一个外国人在说中文时总是可能犯这样的错误。虽然我们经常升级机器翻译软件以提高翻译质量,但是我们不保证机器翻译的正确度,也不对由于内容的误译或者客户对它的错误使用所引起的任何直接的, 或间接的可能的问题负责。
点击这里察看该文章的英文版: 202946
Microsoft和/或其各供应商对于为任何目的而在本服务器上发布的文件及有关图形所含信息的适用性,不作任何声明。 所有该等文件及有关图形均"依样"提供,而不带任何性质的保证。Microsoft和/或其各供应商特此声明,对所有与该等信息有关的保证和条件不负任何责任,该等保证和条件包括关于适销性、符合特定用途、所有权和非侵权的所有默示保证和条件。在任何情况下,在由于使用或运行本服务器上的信息所引起的或与该等使用或运行有关的诉讼中,Microsoft和/或其各供应商就因丧失使用、数据或利润所导致的任何特别的、间接的、衍生性的损害或任何因使用而丧失所导致的之损害、数据或利润不负任何责任。

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com