Obtaining the application's version

From ISXKB

Revision as of 12:18, 20 January 2008 by Markus (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

With the Inno Setup Preprocessor it's easy to keep the installer's version number the same as the application's version. The predefined macro function GetFileVersion() can read the version information of a file.

#define MyAppVersion GetFileVersion(AddBackslash(SourcePath) + "MyApp.exe")

AppVersion={#MyAppVersion}

Example

SimpleVersionMacro shows an example.

See also

Personal tools
Ads: