Assaf Stone
Assaf Stone

Reputation: 6317

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

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.

Upvotes: 2

Views: 4837

Answers (2)

Bob Arnson
Bob Arnson

Reputation: 21896

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

Upvotes: 5

Cosmin
Cosmin

Reputation: 21436

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/

Upvotes: 3

Related Questions