Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to include version information into the setup output filename?

Tags:

inno-setup

I have an application with version information which I would like to include into the setup output filename. For instance if the application have version 3.10.1 I would like to get setup_3.10.1.exe output file instead of a default setup.exe as an output file generated by Inno Setup.

Is it possible to include version information of a certain application into the setup output filename ?

like image 504
Christian Rockrohr Avatar asked Mar 14 '13 16:03

Christian Rockrohr


1 Answers

Use the OutputBaseFilename directive and assign to its value result of the GetFileVersion preprocessor function:

#define AppVer GetFileVersion('MyApp.exe')

[Setup]
OutputBaseFilename=setup_{#AppVer}
...
like image 73
Alex K. Avatar answered Nov 01 '22 01:11

Alex K.