Having an issue with WIX upgrade

后端 未结 4 1152
暗喜
暗喜 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:52

    I believe this is occurring because in your installer the default mode is Per-User hence it is not detecting per-machine. You could use MSIGetProductInfo to find the installed products if the assignmenttype is “1” then you could set the below properties to Product Code of Per-Machine product WIX_UPGRADE_DETECTED OLDERVERSIONBEINGUPGRADED

    Use a custom action on button click or schedule it after FindRelatedProducts. This tells the installer of an existing version and installation is handle like an upgrade.

提交回复
热议问题