0

I implemented the MajorUpgrade element,

when I want to run the upgrade via the command line,

I have to to run the msi of the higher version with /i .(e.g msiexec /i <path_to_higher_msi>)

/u does nothing. (e.g does show no error/ no message at the event viewer and not install/upgrade)

How can I have it work?

For example:

I build the project with version 1.2.3 and install it. Then I rebuild the same solution but with higher version 2.4.5. and run msiexec /u I can see in the Control Panel that the version was updated.

The bug starts as I produces two releases from the pipeline..

I have the same upgradeCode in both and a unique productId
Tnx.

R.P
  • 171
  • 1
  • 11
  • You can't install the same version. A major UPGRADE requires a higher version. "The same GUID" doesn't say anything. Do you mean product code or upgrade code? – harper Nov 30 '21 at 18:00
  • @harper - I don't Install the same version, I added an example in the question. Can you have a look? – R.P Nov 30 '21 at 18:24
  • I didn't specify ProductId or upgradeCode. From what I read in the WixSharp documentation it's a combination of both. – R.P Nov 30 '21 at 18:30

1 Answers1

0

Ok, So I found the answer thanks to wix-user-list

There is no /u for upgrading,

/u is used for a patch in the current version, not for updating for an higher version

R.P
  • 171
  • 1
  • 11