简体   繁体   English

为Inno Setup创建的安装文件设置Windows文件版本

[英]Set Windows file version for a setup file created by Inno Setup

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"). 我想问一下,当我在Windows中右键单击安装文件然后选择“属性”然后选择“详细信息”(或“版本”)时,是否可以设置将显示的“版本号”。

Currently it always shows "0.0.0.0" for my files. 目前,我的文件始终显示“0.0.0.0”。

Can anyone help? 有人可以帮忙吗? Thank you very much! 非常感谢你!

It is the VersionInfoVersion directive that you need to set. 它是您需要设置的VersionInfoVersion指令。 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 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM