Does Web Platform Installer support automation?

2019-02-03 21:22发布

I wonder if I can automate WPI actions to setup a dev box in unattended mode, either with command line options or a configuration file. It looks like WPI takes a "URL" as a command line parameter but I have no idea what format the response should be in, and what it allows in general.

EDIT: Thanks folks for the huge effort to come up with ways to automate setups. As @fra mentioned now there is a command line tool for WPI.

5条回答
我想做一个坏孩纸
2楼-- · 2019-02-03 21:56

One more option that was not yet mentioned is that you can also directly plug into Web PI APIs. Here are some starting points:

However in most of the cases, WebPICmdLine should do the job.

查看更多
一纸荒年 Trace。
3楼-- · 2019-02-03 22:00

I'm currently investigating this, thought I'd record what I've discovered so far.

webplatforminstaller.exe <configuration file> /id <wpi url>

configuration file: xml file defining the products that can be installed. See http://www.microsoft.com/web/webpi/2.0/webproductlist.xml for an example. If this parameter is not specified, the configuration file at that url will be used.

wpi url: wpi url that specifies a product to install. The format is wpi://productid/? where productid is the id of an entry in the xml file.

I'm still trying to figure out how to force the install to happen silently. I'll update if I find out how.

查看更多
Summer. ? 凉城
5楼-- · 2019-02-03 22:07

"C:\Program Files\Microsoft\Web Platform Installer\WebPlatformInstaller.exe" /id "wpi://iisexpress&mvc3"

Will install both IIS Express and ASP.Net MVC

(using wpi version 3.0)

**

UPDATE:

** Take a look at this awesome sauce http://msdn.microsoft.com/en-us/library/gg433092.aspx

查看更多
女痞
6楼-- · 2019-02-03 22:08

The WebPICmdLine alone does not work as it will ask you to install the web platform installer 3.0 or whatever the dependecy for the product/application you will try to install.
Therefore, install the Web Platform installer first (wpilauncher.exe), then drop webpicmdline.exe to that installation folder. After that, you should be all set to use the command line tools for your installation needs. I have yet to figure out how to do an unattend to the wpilauncher.exe itself.

查看更多
登录 后发表回答