deepak dhanvantri
deepak dhanvantri

Reputation: 31

invalid VIProductVersion format, should be X.X.X.X

Can VIProductVersion contain string?? I am setting 2017x.1.1.0 as product version so getting invalid format error. is there any way to resolve this error?

Thanks, Deepak

Upvotes: 1

Views: 3767

Answers (2)

Anders
Anders

Reputation: 101736

The version number can be stored in two different ways in the PE version resource.

VIProductVersion sets the version number in the fixed block called VS_FIXEDFILEINFO and can only contain numbers.

You can also add string information with VIAddVersionKey and these are normally displayed in the UI.

VIProductVersion "1.2.3.4"
VIAddVersionKey FileVersion "1.2hello.3.4" ; Displayed at the top of the version tab on <= WinXP
VIAddVersionKey ProductVersion "1.2.world3.4"

Upvotes: 4

idleberg
idleberg

Reputation: 12882

The only way to resolve this is to provide the version string in the correct format. Your version string contains a letter, but it can only contain numbers.

Windows convention for version strings is <major version>.<minor version>.<build number>.<revision>.

Upvotes: 1

Related Questions