We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

jderosa
Posts: 19
Joined: Wed Sep 28, 2016 8:27 pm

Put the date the installer was built into the UI

I would like a build #, Date/time Displayed in one of the dialog boxes.

We may have multiple copies of the msi floating around our QA department, I would like some way to identify when the package was built.

So if I build an installer from an aip at 9am send it to QA, then our source (not the aip, the stuff the aip points to) is updated, and the msi is rebuilt.
I would like to be able in the UI to identify that the 2 msi files are different and which versions they are.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Put the date the installer was built into the UI

Hello,

In order to solve this issue, you can use the Advanced Installer Command Line functionality, which allows you to create, build or edit projects. Using Advanced Installer Command Line you can set the properties at build time and build the project.
For instance, you can make the following configuration:
1. In your AI project you can go to "Install parameters" page and create the properties you want to use (e.g. BUILD_NO, DATE, TIME)
2. In the "Dialogs" page you can display the properties in a dialog (e.g. "WelcomeDlg"). For each property you can create a "Static Text" control and in its properties, in the "Text" field, you can put a formatted reference to the property (e.g. [BUILD_NO]).
3. Save the project and exit.
At build time, you can populate the properties with values and build the project using the command line functionality. Setting the properties is done with the following command :

Code: Select all

AdvancedInstaller.com /edit <project.aip> /SetProperty DATE=<value>
and the build is make using this command :

Code: Select all

AdvancedInstaller.com /build <project.aip>
And, this way, the MSI will have the values from the build time.
If you have other questions, please let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jderosa
Posts: 19
Joined: Wed Sep 28, 2016 8:27 pm

Re: Put the date the installer was built into the UI

This should do what we need, thanks.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Put the date the installer was built into the UI

You're always welcome.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”