0

Using Wix 3.11

I am trying to include a third-party msi file in my Wix bundle and it gives me this error:

error LGHT0242: Invalid product version '4' in package '<package name>'. When included in a bundle, all product version fields in an MSI package must be less than 65536.

I am not sure how to proceed because by the error message -- the value appears to be valid.

Ben Zuill-Smith
  • 3,504
  • 3
  • 25
  • 44

1 Answers1

1

ProductVersion must be in the format major.minor.build. '4' does not match this format that's why you got this error.

You may inspect msi's product version using Orca tool.

You can use wirunsql.vbs to change ProductVersion in the msi:

C:\cscript "C:\Program Files (x86)\Windows Kits\10\bin\10.0.17134.0\x64\wirunsql.vbs" "C:\Projects\SomeProject.msi" "UPDATE `Property` SET `Property`.`Value` ='2.3.4.5' WHERE `Property`.`Property` ='ProductVersion'"

Found this thread with explanation of version properties in msi: msi version numbers.

fenixil
  • 2,106
  • 7
  • 13
  • Ah, makes sense. I thought about trying that but I read the error message as saying it needed to be a short number. I see now it is talking about the individual parts of the version. Thanks! – Ben Zuill-Smith Aug 28 '19 at 06:21