Showing date installation was created in setup

100 views
Skip to first unread message

Ed Dressel

unread,
Aug 5, 2022, 4:54:36 PM8/5/22
to innosetup
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).

Is there a way to show the setup date in the top/right corner? or something similar?

Thank you,

Ed Dressel

Gavin Lambert

unread,
Aug 7, 2022, 6:52:32 PM8/7/22
to inno...@googlegroups.com
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.
Reply all
Reply to author
Forward
0 new messages