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 Premium Edition
  • Microsoft Office 2000 Professional Edition
  • Microsoft Office 2000 Standard Edition
  • Microsoft Office 2000 Small Business Edition
  • Microsoft Office 2000 Developer Edition
  • Microsoft Access 2000 Standard Edition
  • Microsoft Excel 2000 Standard Edition
  • Microsoft FrontPage 2000 Standard Edition
  • Microsoft Outlook 2000
  • Microsoft PowerPoint 2000 Standard Edition
  • Microsoft Word 2000 Standard Edition
關鍵字:?
kbnosurvey kbarchive kbmt kbhowto kbinfo kbsetup KB202946 KbMtzh
機器翻譯
重要:本文是以 Microsoft 機器翻譯軟體翻譯而成,而非使用人工翻譯而成。Microsoft 同時提供使用者人工翻譯及機器翻譯兩個版本的文章,讓使用者可以依其使用語言使用知識庫中的所有文章。但是,機器翻譯的文章可能不盡完美。這些文章中也可能出現拼字、語意或文法上的錯誤,就像外國人在使用本國語言時可能發生的錯誤。Microsoft 不為內容的翻譯錯誤或客戶對該內容的使用所產生的任何錯誤或損害負責。Microsoft也同時將不斷地就機器翻譯軟體進行更新。
按一下這裡查看此文章的英文版本: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