简体   繁体   中英

Does Web Platform Installer support automation?

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 .

"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

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.

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM