How can I install a VSIX package automatically, with WIX?

邮差的信 提交于 2019-12-20 03:03:35

问题


I've got a WIX installation project for my application. As part of my solution I have a VSIX extension, that I want to install on the customer's Visual Studio.

What I don't know, is how to get WIX to automatically initiate the VSIX importer.

I tried following the advice on MSDN (How to: Prepare Extensions for Windows Installer Deployment as well as Installing a VSIX as part of a Larger installation), to no avail. Neither included guidance for WIX projects.

Any help will be appreciated.


回答1:


This can be done through a custom action which launches VSIXInstaller.exe with the appropriate command line. There is a discussion about this here: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/VSIX-after-installation-td4975318.html

Perhaps this will also help: http://blogs.clariusconsulting.net/pga/deploying-a-vsix-from-a-msi/




回答2:


WiX v3.6 supports the VsixPackage element to directly manage VSIX packages.



来源:https://stackoverflow.com/questions/6423507/how-can-i-install-a-vsix-package-automatically-with-wix

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!