112

当我进入 Visual Studio 2015 中的“新建项目”对话框时,Windows Installer XML 不可用。如何在 Visual Studio 2015 中启用 WiX 项目?

4

6 回答 6

150

2015-09-08 更新: WiX 工具集 3.10 发布,正式支持 Visual Studio 2015 版本。它可以从wixtoolset.org下载。

您可以手动启用 Visual Studio 2015 与 WiX 3.9 或更早版本的兼容性:

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

  2. 然后以管理员身份执行:

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

    在此处输入图像描述

打开 Visual Studio 2015 时,WiX 3.9 和更早的项目将兼容。

在此处输入图像描述

于 2014-09-29T23:51:55.243 回答
36

这也是我之前的问题,看起来 Chris Schiffhauer 的答案现在不是最好的解决方案,因为 WiX 3.9 或更早版本并不是专门为 Visual Studio 2015 构建的。

解决方案只是从该链接安装最新版本的WiX v3.10 ,正如他们在推文中回复的内容:https ://twitter.com/wixtoolset/status/597796279729528833

@5ervant 最新版本的 WiX v3.10 支持 @VisualStudio 2015。

当我正在寻找解决方案时,我只有 Visual Studio Community 2015 RC,并且在遵循 Chris 的回答后,在安装 WiX Toolset v3.9 R2 后,我没有在我的系统中找到该C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE文件夹​​或该文件夹。C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7

于 2015-05-13T13:04:34.767 回答
5

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)

于 2016-06-12T13:26:08.730 回答
5
  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.
于 2016-12-02T21:17:27.330 回答
1

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

于 2018-03-20T05:42:19.177 回答
0

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.

解决方案在于转到Tools->Extension and Updates,在扩展列表中找到 Wix 扩展并启用它。它以某种方式被禁用了。启用它要求重新启动 VS 2015,它在重新启动时加载了 Wix 项目。

于 2019-07-24T20:27:02.747 回答