How to generate Inno Setup installation package to add version information

Inno use existing function GetFileVersion obtain the version of EXE file

#define ApplicationName 'Application Name'
#define ApplicationVersion GetFileVersion('Application.exe')
[Setup]
AppName={#ApplicationName}
AppVerName={#ApplicationName} {#ApplicationVersion}
VersionInfoVersion={#ApplicationVersion}

In this way, the right Property -> Details to see the version information.

Program version number will appear in the Welcome Page. If Disable the Welcome Page, the name can be displayed in a way to modify the program to display the version information.

VersionInfoProductName={#ApplicationName} {#ApplicationVersion}

Under normal circumstances

VersionInfoProductName={#ApplicationName}

Such suffixes on the version, allows the user to see.

Guess you like

Origin www.cnblogs.com/liujx2019/p/11583392.html