Paul
Paul

Reputation: 1194

wix msi version number 5th digit

I want to give 5th digit for version number in windows installer. If I give

Source

< Product Id="ECD80D85-E2F4-4995-A48C-23E2EA5CAD19" Name="Services" Language="1033" Version="1.0.0.0.001" Manufacturer="test" UpgradeCode="0de21488-400e-4b79-8be1-3acd2d633e4a">

and compile its throwing

Error 1 The Product/@Version attribute's value, '1.0.0.0.001', is not a valid version. Legal version values should look like 'x.x.x.x' where x is an integer from 0 to 65534.

How to implement this

Upvotes: 0

Views: 3646

Answers (1)

Christopher Painter
Christopher Painter

Reputation: 55601

Personally I think it should be even more restrictive. ProductVersion property is defined as:

The value of the ProductVersion property is the version of the product in string format. This property is REQUIRED.

The format of the string is as follows: major.minor.build The first field is the major version and has a maximum value of 255. The second field is the minor version and has a maximum value of 255. The third field is called the build version or the update version and has a maximum value of 65,535.

Rob must have decided that M.M.B.P 0-65535 for all four fields was good enough for XSD / compilation validation. There is no way around this.

Upvotes: 2

Related Questions