与WiX 3.0一起安装WiX 3.5 [英] Installing WiX 3.5 alongside WiX 3.0

查看:88
本文介绍了与WiX 3.0一起安装WiX 3.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以同时安装WiX 3.0和3.5?如果我在安装3.0之后安装3.5,则会删除3.0文件-如果我尝试在3.5之后安装3.0,则会告诉我已经安装了较新的版本.

Is it possible to install both WiX 3.0 and 3.5? If I install 3.5 after installing 3.0, it removes the 3.0 files - and if I attempt to install 3.0 after 3.5, it tells me there is a newer version already installed.

我正在从VS 2008迁移到VS 2010的过程中,因此我的应用程序的一个版本(分支)正在使用VS 2008(现有的生产版本),而另一个版本在VS 2010(未来的版本)中. VS2010需要WiX 3.5.

I'm in the process of migrating from VS 2008 to VS 2010, so one version (branch) of my application is is using VS 2008 (existing production version), and another one is in VS 2010 (future version). WiX 3.5 is required for VS2010.

这意味着在我的构建服务器上,此刻,我无法同时构建当前版本和新版本,因为一个人将报告关于找不到WiX文件的错误:

What this means is on my build server, at the moment, I cannot build both the current version and the new version, as one will report an error about not finding WiX files:

c:\buildAgent\work\fe55ddb47cebe4fd\MyApp.wixproj(25, 11): error MSB4019: The imported project "C:\Program Files (x86)\MSBuild\Microsoft\WiX\v3.0\Wix.targets" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.

我不希望将产品的当前版本升级到WiX 3.5,因为3.5仍处于测试阶段,因此我不得不每周挑选一个版本来使其完全正常工作(我只是希望等我的下一个版本准备就绪时,WiX 3.5将会稳定).

I'd prefer not to upgrade the current version of my product to WiX 3.5 as 3.5 is still in beta, and as is I had to cherry pick a weekly build to get it to work at all (I'm just hoping by the time my next version is ready, that WiX 3.5 will be stable).

是否可以同时安装两个组件?我是否只需要将3.0文件复制到Msbuild目录中?

Is there a way to install both side-by-side? Do I just need to copy the 3.0 files into the Msbuild directory?

推荐答案

我结束了:

  • 使用.MSI软件包安装WiX 3.5.1916(后来的版本以奇怪的方式失败了,我没有花太多力气来弄清楚)

  • Installing WiX 3.5.1916 with the .MSI package (later versions failed in strange ways which I didn't put much effort into figuring out)

将以下文件复制到构建服务器:

Copying the following files to the build server:

  • %programfiles%\ Windows Installer XML v3 **
  • HKLM \ SOFTWARE \ Microsoft \ Windows安装程序XML \ 3.0 (对于x64系统,为SOFTWARE \ Wow6432Node \)
  • %programfiles%\ MSBuild \ Microsoft \ WiX \ v3.0 **
  • %programfiles%\Windows Installer XML v3**
  • HKLM\SOFTWARE\Microsoft\Windows Installer XML\3.0 (SOFTWARE\Wow6432Node\ for x64 systems)
  • %programfiles%\MSBuild\Microsoft\WiX\v3.0**

它现在可以成功构建,但是我对生成的文件没有做太多测试.因此似乎可以同时拥有3.0和3.5,使它正常工作只是一个小麻烦.

It builds successfully now, I haven't done much testing with the resulting files though. So it seems it is possible to have 3.0 and 3.5 concurrently, it's just a minor pain to make it work.

这篇关于与WiX 3.0一起安装WiX 3.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆