如何从Microsoft web platform installer取得离线安装包

有一架visual studio 2012的开发环境A由于某种原因无法链接internet, 于是乎安装officetoolsforvisual2012就有问题了。

从微软的官网上只可以下载 officetooslforvisual2012rtw (<200kb). 很显然正是一个在线安装的启动。

如何取得离线安装包

1:必须在某个有internet的pc上安装webPI (web platform installer) 最新版本是 4.6

2:进入webPI的文件夹 C:Program FilesMicrosoftWeb Platform Installer

3:运行webPI 命令行 webPICMD

WebpiCmd.exe /offline /products:OfficeToolsForVS2012RTW /Path:C:YourFolderOfficeToolsForVS2012RTW

 

4: 拷贝整个文件夹去A, 运行

C:YourFolderOfficeToolsForVS2012RTWinstallersWebpiCmd.exe /install /products:OfficeToolsForVS2012RTW

5:利用这个办法可以拿到其他的离线安装包

完整的清单在  http://www.microsoft.com/web/webpi/4.6/webproductlist.xml

原文地址:https://www.cnblogs.com/by1455/p/3240431.html