Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set Windows file version for a setup file created by Inno Setup

Tags:

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").

Currently it always shows "0.0.0.0" for my files.

Can anyone help? Thank you very much!

like image 739
tmighty Avatar asked Apr 07 '14 18:04

tmighty


People also ask

What is an Inno Setup file?

Inno Setup is a free software script-driven installation system created in Delphi by Jordan Russell. The first version was released in 1997. Inno Setup. Screenshot of the Inno Setup IDE running on Windows 7. Developer(s)

How do I make an inno file executable?

Go to Menu, Project, then Compile to compile and create the setup file. This will create a complete installer. Run the Setup and your application will be installed correctly. Innosetup offers an awesome alternative to create great looking Installers for free.

Does Inno Setup work on Linux?

You're in luck: It's possible to run Inno Setup anywhere that Docker runs (including Linux and macOS), and even have a passable experience writing your setup script.

Does Inno Setup work on Mac?

Inno Setup is not available for Mac but there are some alternatives that runs on macOS with similar functionality. The best Mac alternative is IzPack, which is both free and Open Source.


1 Answers

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
like image 168
TLama Avatar answered Sep 25 '22 08:09

TLama