[wix-users] Multiple VsixPackage Support (deploy to multiple VS versions)

Ofir Cohen ofircohenn at gmail.com
Mon Mar 13 12:00:19 PDT 2017

TL;DR: What is the best practice to deploy (install) a VSIX to one or
more Visual Studio versions?
Could you please provide a link to a sample code if such exists?

User story
During the product setup (WiX based installer), user can select one or
more of the following:
* VS2012
* VS2013
* VS2015

And the expectation is that the selected versions will be installed.

What is the WiX way to accomplish this?
Should I have something like this?

<Component Id="vs2012_ext"> <Condition>VS2012_SELECTED</Condition>
  <VSExtension:VsixPackage File="PackageFileId" ... Target="11.0" />

<Component Id="vs2013_ext"> <Condition>VS2013_SELECTED</Condition>
  <VSExtension:VsixPackage File="PackageFileId" ... Target="12.0" />

<Component Id="vs2015_ext"> <Condition>VS2015_SELECTED</Condition>
  <VSExtension:VsixPackage File="PackageFileId" ... Target="14.0" />

<Feature Id='VSIntegration'>
  <ComponentRef Id='vs2012_ext'/>
  <ComponentRef Id='vs2013_ext'/>
  <ComponentRef Id='vs2015_ext'/>


More information about the wix-users mailing list