1

I have set Product Version from .NET Assembly as it was described by Rob Mensching here How can I set the WiX installer version to the current build version?

But when I try to build the installer I have get an error:

error LGHT0204: ICE24: ProductVersion: 11.12001.1693.25097 is an invalid version string

How to solve this problem? Thnx.

Community
  • 1
  • 1
ZedZip
  • 5,794
  • 15
  • 66
  • 119

1 Answers1

4

The reason that you get the error, is that the version number is not valid as a ProductVersion for a MSI package.

<major>.<minor>.<build>

major has a maximum value of 255

minor has a maximum value of 255

build has a maximum value of 65,535

Note: If you include a fourth field in your product version, the installer ignores the fourth field.

Source: http://msdn.microsoft.com/en-us/library/aa370859%28v=vs.85%29.aspx

Morten Frederiksen
  • 5,114
  • 1
  • 40
  • 72
  • 1
    Thanks, but it is little bit strange: MS has made 4-parts version in NET and restricted it in MSI. – ZedZip Sep 04 '14 at 15:36
  • 2
    @Oleg - you are right. The reason for this might be that the Windows Installer technology is quite old. – Morten Frederiksen Sep 04 '14 at 15:38
  • [Note that Windows Installer uses only the first three fields of the product version. If you include a fourth field in your product version, the installer ignores the fourth field.](http://msdn.microsoft.com/en-us/library/aa370859(v=vs.85).aspx). – Tom Blodget Sep 06 '14 at 21:29