Enable WiX project in Visual Studio 2013

青春壹個敷衍的年華 提交于 2019-11-27 09:27:12

问题


I have a VS 2012 solution with WiX Installer projects. However, when I open the solution in VS 2013 (Release) the WiX project is incompatible.

Does anyone know where / whether a VS 2013 version (wixtoolset ?) is available being worked on yet? Or is there a way to make the current project compatible in VS 2013?


回答1:


Update 2013-12-02: WiX Toolset 3.8 is released with official support for Visual Studio 2013 editions. It is available for download from wixtoolset.org.

You can manually enable Visual Studio 2013 compatibility with older versions of WiX:

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

  2. Modify
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\Extensions\Microsoft\WiX\extension.vsixmanifest by adding the following:

    <VisualStudio Version="12.0">
        <Edition>Ultimate</Edition>
        <Edition>Premium</Edition> 
        <Edition>Pro</Edition>
        <Edition>Express_All</Edition>
    </VisualStudio>
    
  3. Then open VS2013 Native Tools Command Prompt (from C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\Shortcuts) and execute:

    devenv /setup

When you open Visual Studio 2013, WiX 3.7 projects will be compatible.




回答2:


Just update to WiX v3.8, it does support VS2013: http://wixtoolset.org/releases/v3.8/stable




回答3:


If you install VS2013 after WiX you will have to uninstall WiX then reinstall it. Just repairing the WiX installation is not sufficient.




回答4:


After running the toolkit installer for wix:

For Wix 3.8 and 3.9, with Visual Studio 2012 and 2013, I was required to delete all the cache files in:

"%appdata%..\Local\Microsoft\VisualStudio\11.0\ComponentModelCache" (for VS 2012) and "%appdata%..\Local\Microsoft\VisualStudio\12.0\ComponentModelCache" (for VS 2013) respectively.

After deleting these files, execute from command prompt for each version of VS:

devenv /setup

e.g. "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv /setup"

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

Only after I deleted these files and restarted the machine did executing "devenv /setup" have the desired effect.

If these cache files are not deleted first, then you may experience a problem where your packages fail to load properly. You will know if your packages fail to load because VS will fail miserably upon startup.




回答5:


With WiX 3.7, even if you cannot open wixproj in Visual Studio 2013, it does compile using MSBuild for a VS2013 solution. (change wixproj ToolsVersion="12.0")




回答6:


the latest Wix installer seems to correct the installation without any configuration.

  1. close all visual studios. run the .exe at https://wix.codeplex.com/releases/view/136891.
  2. A fancy red splashcreen appears, click the centre section titled "install", this reinstalls Wix for all versions of VS on your machine.

worked for me.




回答7:


You must upgrade your wix and install WIX 3.9 to make your WIX Project compatible with vs 2013. Below is the link to download wix 3.9 https://wix.codeplex.com/releases/view/136891



来源:https://stackoverflow.com/questions/19448343/enable-wix-project-in-visual-studio-2013

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!