Having an issue with WIX upgrade

后端 未结 4 1153
暗喜
暗喜 2021-01-27 01:53

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

Currently we have developed a dual mode

4条回答
  •  醉话见心
    2021-01-27 02:39

    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.

    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
    

提交回复
热议问题