How to Enable WiX Projects in Visual Studio 2015

Visual StudioWixVisual Studio-2015

Visual Studio Problem Overview


When I go the the New Project dialog in Visual Studio 2015, Windows Installer XML isn't available. How can I enable WiX projects in Visual Studio 2015?

Visual Studio Solutions


Solution 1 - Visual Studio

Update 2015-09-08: WiX Toolset 3.10 is released with official support for Visual Studio 2015 editions. It is available for download from wixtoolset.org.

You can manually enable Visual Studio 2015 compatibility with WiX 3.9 or earlier:

  1. Copy
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\WiX to
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\WiX

  2. Then execute as Administrator:

    >"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv" /setup

    enter image description here

When you open Visual Studio 2015, WiX 3.9 and earlier projects will be compatible.

enter image description here

Solution 2 - Visual Studio

This was also my issue before, and it looks like Chris Schiffhauer's answer isn't the best solution by now, as WiX 3.9 or earlier is not specifically build for Visual Studio 2015.

The solution is just to install the latest builds of WiX v3.10 from [this link][1] as what they replied on their tweets: https://twitter.com/wixtoolset/status/597796279729528833 > @5ervant latest builds of WiX v3.10 support @VisualStudio 2015.

I only have Visual Studio Community 2015 RC when I'm looking for a solution, and upon following Chris' answer, after installing WiX Toolset v3.9 R2, I didn't found the C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE folder nor the C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7 folder in my system.

[1]: http://wixtoolset.org/releases/ "Releases - WiX Toolset"

Solution 3 - Visual Studio

I have found that the order of installation is important. Using VS2015, when I tried to add an existing WiX project I could not select it because the *.wixproj extension was not available. When I tried to add a new WiX project the "Windows Installer XML" templates were not available.

To fix this I closed VS2015, uninstalled the WiX tools using the Control Panel and reinstalled it by running wix310.exe (version 3.10.2.2516 downloaded from https://wix.codeplex.com/releases/view/619491)

Solution 4 - Visual Studio

  1. If you have VS 2012 and VS 2015, Install Wix ToolSet V3.10.3. This will install the Wix toolset for 2012 and 2015 will not yet detect it.
  2. Next in Control Panel-->Programs, choose the WIX installation, right click and change. Choose the Repair option in the toolset UI.
  3. Once repaired 2015 starts detecting the installer and it works fine after.

Solution 5 - Visual Studio

I got the same issue with 3.11. I uninstalled 3.11 & installed WIX 3.10. Wix version 3.10 worked smoothly without any manual steps with VS 2015.

Atul

Solution 6 - Visual Studio

In my scenario the Wix project in the VS 2015 solution would load fine, but stopped loading one fine day with the exception that wix project type was not supported. The issue kept popping even after already installed the VS 2015 relevant Wix Toolset v3.11.1.2318 was updated.

The solution lied in going to Tools->Extension and Updates, locating Wix extension in the list of extensions and enabling it. It had got disabled somehow. Enabling it asked for restarting the VS 2015, which, upon restarting loaded the Wix project fine.

HTH!

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionChris SchiffhauerView Question on Stackoverflow
Solution 1 - Visual StudioChris SchiffhauerView Answer on Stackoverflow
Solution 2 - Visual Studio5ervant - techintel.github.ioView Answer on Stackoverflow
Solution 3 - Visual StudioNoBrassRingView Answer on Stackoverflow
Solution 4 - Visual StudioSoumiView Answer on Stackoverflow
Solution 5 - Visual StudioAtul SurekaView Answer on Stackoverflow
Solution 6 - Visual StudioDiligentKarmaView Answer on Stackoverflow