I would like to ask if it is possible to set the "Version Number" that will be shown when I right-click the setup file in Windows and then select "Properties" and then "Details" (or "Version").

Currently it always shows "0.0.0.0" for my files.

Can anyone help? Thank you very much!

有帮助吗?

解决方案

It is the VersionInfoVersion directive that you need to set. The reference describes this directive as:

Specifies the binary file version value for the Setup version info.

Here is an example usage of this directive (but of course in real you will most certainly prefer to use some version information from your application instead of constant):

[Setup]
AppName=My Program
AppVersion=1.5
DefaultDirName={pf}\My Program
VersionInfoVersion=1.2.3.4
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top