Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Enable WiX Projects in Visual Studio 2015

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?

like image 493
Chris Schiffhauer Avatar asked Sep 29 '14 23:09

Chris Schiffhauer


People also ask

How do I use WiX with Visual Studio?

Adding a WiX setup project In Visual Studio, open your solution, and add a WiX project to it: go to the Visual Studio main menu and click File -> Add -> New Project to open the Add New Project dialog. Choose the Setup Project item in the Windows Installer XML node, specify the project name and click OK.

How do I install a WiX extension?

Right-click on the WiX project in the Visual Studio solution explorer and select Add Reference... In the Add WiX Library Reference dialog, click on the Browse tab and browse to the WiX extension DLL that you want to include. Click the Add button to add a reference to the chosen extension DLL.

How do I debug a WiX project in Visual Studio?

That way when running the MSI, a popup will be presented asking if you want to “Debug the program”. Click on this option and then choose the Visual Studio instance on which the custom action project is open on. The execution will stop at the break call (if not press F10) and you can start debugging.


2 Answers

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

like image 110
Chris Schiffhauer Avatar answered Oct 01 '22 05:10

Chris Schiffhauer


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 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.

like image 42
5ervant - techintel.github.io Avatar answered Oct 01 '22 06:10

5ervant - techintel.github.io