![字体变小](http://blog.hexun.com/img/xiao.gif)
![字体变大](http://blog.hexun.com/img/da.gif)
Setup.exe command-line reference (Office SharePoint Server)
In SharePoint Products and Technologies, the setup.exe command-line tool is used for very few operations, and almost all of these are for IT administrators only.
In this article
?1/td> | |
?1/td> |
How to use a setup.exe command-line switch
When you run setup.exe, you include a space after the command, followed by a forward slash (/) and the name of the switch, and sometimes followed by another space and one or more parameters, which are specific instructions that give the program more information about how to execute the command. The table in the next section contains several examples of switches.
Available switches and parameters
In SharePoint Products and Technologies, Setup recognizes the following command-line options.
Switch or parameter | Description | ||||
/config [path and file name] |
Specifies the configuration file that Setup uses during the installation. By default, the Config.xml file stored in the core product folder directs Setup to install that product. You can edit the Config.xml file to make additional customizations to the installation or you can point to a different configuration file. Use /config on the Setup command line to point to the location of the default Config.xml file for a particular product or to point to a custom configuration file. Examples To point to a customized config.xml file: \\<server>\<share>\setup.exe /config \\<server>\<share>\<folder>\config.xml where <folder> is the folder that contains the Config.xml file. Or, to point to a different configuration file: \\<server>\<share>\setup.exe /config \\<server>\<share>\configfiles\oserver-quiet.xml
|
||||
/modify [ProductID] |
Used with a modified Config.xml file to run Setup in maintenance mode and make changes to an existing Office installation, such as adding or removing features. Look up the value of [ProductID] in the Setup.xml file for the product you want to modify. The Setup.xml file is located in the core product folder. In Setup.xml, [ProductID] is equal to the value of the Id attribute of the Setup element. For example: - <Setup Id="OServer" Type="Product" ProductCode="{40120000-110D-0000-0000-0000000FF1CE}"> Example \\<server>\<share>\setup.exe /modify OServer /config \\<server>\<share>\<folder>\AddConfig.xml
|
||||
/repair [ProductID] |
Runs Setup to repair the files needed for the specified product. Look up the value of [ProductID] in the Setup.xml file for the product you want to modify. Running Setup in repair mode only affects the program files, and does not repair your server configuration or any sites.
Example \\<server>\<share>\setup.exe /repair OServer
|
||||
/uninstall [ProductID] |
Removes the specified product from the user's computer. Look up the value of [ProductID] in the Setup.xml file for the product you want to modify. Example \\<server>\<share>\setup.exe /uninstall Oserver |