Setup.exe command-line reference

字体变小 字体变大

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>

How to use a setup.exe command-line switch

?1/td>

Available switches and parameters

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 parameterDescription
/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
note.gif0 && image.height>0){if(image.width>=700){this.width=700;this.height=image.height*700/image.width;}}" border=0> Note:

You must use a fully qualified path. Setup does not recognize relative paths that contain /config.

 

/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.

note.gif0 && image.height>0){if(image.width>=700){this.width=700;this.height=image.height*700/image.width;}}" border=0> Note:

You should also run the SharePoint Products and Technologies Configuration Wizard after you run setup.exe /repair to complete the repair of the configuration. If you are using a stand-alone configuration, you can run psconfig.exe -setup from the command line to repair the configuration instead of using the wizard. If you are in a server farm configuration, you should use the full wizard interface. For more information, see the Help for the SharePoint Products and Technologies Configuration Wizard.

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

转载于:https://www.cnblogs.com/kericai/archive/2008/04/13/1150897.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值