WIX升级有问题 [英] Having an issue with WIX upgrade

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

问题描述

WIX安装程序升级存在问题。以前我们有2个版本的安装程序,每台机器1个版本,每用户一个版本。

Having an issue with WIX installer upgrade. Previously we had 2 version of installers 1 for per-machine and another for per-user.

当前,我们已经开发了双模式MSI。

Currently we have developed a dual mode MSI.

双模式MSI会在选择自行安装选项时升级先前安装程序的PerUser版本(在PC 1上),但在选择全部安装(在PC 2上)时会安装新产品

The dual mode MSI upgrades the PerUser version (on PC 1) of previous installer when install for yourself option is selected but when install for all (on PC 2 ) is selected it install a new product

我们正在做某些错误,还是必须设置一些属性。我们正在使用WIX。

Is it some wrong that we are doing or is have to set some properties. We are using WIX.

请帮助

推荐答案

如果两个设置之前,可能是您拥有两个升级代码,并且需要处理这两个升级代码才能在所有情况下都能正常工作?

If you had two setups before, it might be that you have two upgrade code and need to deal with both for the upgrade to work in all cases?

自从我处理每个用户的内容以来已经很长时间了,但是一般来说,您必须作者您的 升级表 包括用于以下目的的两个升级代码您的设置可以检测以前安装的所有样式。升级表使您可以检测到在安装新产品之前应计划进行卸载的任何数量的先前安装。

It has been a long time since I dealt with per-user stuff, but in general you must author your Upgrade table to include both upgrade codes for your setups to detect all flavours of your previous install. The upgrade table allows you to detect any number of prior installs that should be scheduled for uninstall before your new product gets installed.

FindRelatedProducts MSI操作将在目标计算机上搜索所有软件包,以查找升级代码属性与升级表中指定的值匹配的任何软件包。

The FindRelatedProducts MSI action will search all packages on the target machine in order to find any where the Upgrade Code property matches the value specified in the upgrade table.

制作一个详细日志文件,如建议的那样:

Make a verbose log file as has been suggested:

msiexec.exe /I "File.msi" /QN /L*V "C:\Temp\msilog.log"




/I = run installation sequence
/L*V "C:\Temp\msilog.log"= verbose logging
/QN = run completely silently


这篇关于WIX升级有问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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