设置由Inno Setup创建的安装文件的Windows文件版本(Set Windows file version for a setup file created by Inno Setup)

编程入门 行业动态 更新时间:2024-10-23 03:31:31
设置由Inno Setup创建的安装文件的Windows文件版本(Set Windows file version for a setup file created by Inno Setup)

我想询问是否可以设置在Windows中右键单击安装文件时显示的“版本号”,然后选择“属性”,然后选择“详细信息”(或“版本”)。

目前它总是为我的文件显示“0.0.0.0”。

谁能帮忙? 非常感谢你!

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!

最满意答案

这是您需要设置的VersionInfoVersion指令。 该参考文献将此指令描述为:

指定安装程序版本信息的二进制文件版本值。

下面是这个指令的一个示例用法(但当然,实际上你肯定会更喜欢使用应用程序中的一些版本信息而不是常量):

[Setup] AppName=My Program AppVersion=1.5 DefaultDirName={pf}\My Program VersionInfoVersion=1.2.3.4

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

更多推荐

本文发布于:2023-07-07 21:42:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1068530.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   版本   Windows   Inno   Setup

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!