How to Enable WiX Projects in Visual Studio 2017

Chris Schiffhauer picture Chris Schiffhauer · Apr 17, 2016 · Viewed 43.5k times · Source

In Visual Studio 2017's New Project dialog, there is no entry for Windows Installer XML (WiX).

enter image description here

Is it possible to enable WiX projects in Visual Studio 2017?

Answer

Chris Schiffhauer picture Chris Schiffhauer · Apr 17, 2016

You can manually enable Visual Studio 2017 compatibility with WiX 3.10 or earlier:

  1. Close all instances of Visual Studio.

  2. Copy
    C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\Extensions\Microsoft\WiX to
    C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\Extensions\Microsoft\WiX

    (In the destination path, replace "Enterprise" with "Professional" or "Community" depending on your edition.)

    enter image description here

    You may need to provide Administrator permission:

    enter image description here

    The result will look like this:

    enter image description here

  3. Copy C:\Program Files (x86)\MSBuild\Microsoft\WiX to C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\WiX

  4. Then execute the following command as Administrator:

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

    (Again, replace "Enterprise" with "Professional" or "Community" depending on your edition.)

    enter image description here

When you open Visual Studio 2017, WiX 3.10 and earlier projects will be compatible.

enter image description here