user707779
user707779

Reputation:

Inno Setup directive "VersionInfoVersion" is invalid

In my *.iss installer script I'm passing application version to the VersionInfoVersion param

VersionInfoVersion = {#ver}

where {#ver} is 0.4.0.201801182

According to Inno Setup documentation format is correct. However, I'm getting the following error:

Value of [Setup] section directive "VersionInfoVersion" is invalid.
Compile aborted.

Upvotes: 7

Views: 1830

Answers (1)

mirtheil
mirtheil

Reputation: 9192

The problem is the last section of your version. It appears that each section only supports up to 65,535. For example:

#define ver "0.4.0.65535" ;this works
#define ver "0.4.0.65536" ;this fails

Upvotes: 10

Related Questions