On 6/08/2022 08:54, Ed Dressel wrote:
> My software version is the date the program is built, and I would like
> to show the date in the installation program (which is created at the
> same time in an automated build process).
I do something similar, but I do it by setting the version info for the
application itself (version a.b.yyyy.mmdd, before building the app), and
then using ISPP to bring that into the AppVersion and other version
parameters so that it appears throughout the installer and control panel.
This also means that you can check the Details tab on the installed exe
to see which build it was.
#define MyAppVersion GetFileVersion(AddBackslash(SourceFolder) +
MyAppExeName)
[Setup]
SourceDir={#SourceFolder}
AppVersion={#MyAppVersion}
VersionInfoVersion={#MyAppVersion}
> Is there a way to show the setup date in the top/right corner? or
> something similar?
You can use the ISPP GetDateTimeString function to get the date/time
that the compile occurred in a particular format, and then include that
in whichever strings you like. Other than AppVersion and friends,
another possibly useful place is the [Messages] BeveledLabel and/or
SetupWindowTitle.