If you are in the same case as I was, there are two types of enviroments where you can’t get Web Platfrom Installer to work:
- Proxy based environments (e.g. requiring proxy authentication),
- Closed down environments (internal dev servers which don’t have access to internet).
My case was the second one, so I had to figure out a way to install a Web Platform Installer package for Visual Sutdio 2012 to develop using Office Developer.
Install Web Platform Installer Redistributable (latest version of cource) on your target webless server; example here to get the 4.6 version install MSI.
Now, from a machine which has proper internet connectivity use the Web Platform Installer (a.k.a. WebPI) command line tool (by default located into C:\Program Files\Microsoft\Web Platform Installer):
Run this command to get the list of all available packages to install:
webpicmd.exe List /ListOption:Available
In the displayed list, just pick the ones you would like to make available offline (can be multiple). In my example I want to install Office Developer Tools for Visual Studio 2012, which has a package shortname “OfficeToolsForVS2012RTW“.
Once you picked up the name of the package you want to make available offline to install on your development server , type in the command:
webpicmd.exe /Offline /Products:OfficeToolsForVS2012RTW /Path:c:\OfficeToolsOffline
This one will dump installation packages into the specified folder (e.g. “C:\OfficeToolsOffline”) so that we can copy them afterwards.
Now just copy the new folder (e.g. in the same folder for the example), then run the following WebPI command line statement:
webpicmd.exe /Install /Products:OfficeToolsForVS2012RTW /XML:c:\OfficeToolsOffline\feeds\latest\webproductlist.xml
The XML noted parameter points out to the XML definition that webPI will use to refer to elements he has to find dependencies on.
Then the installlation starts and you just have to wait
Once ended and with the completion message on the prompt line, you’re good to go on coding!