Conditional Prerequisite with Devops Pipeline - Advanced Installer Community
m4a.c4
Posts: 24
Joined: Mon Mar 30, 2020 9:25 pm

Conditional Prerequisite with Devops Pipeline

Hi there,

We are using Advanced Installer to install an Excel Add-in. As part of this, we require the executable to install a prerequisite piece of software if required based on the version of a secondary software piece.

When using the prerequisites, we use the install condition "Registry value contains version". When using Advanced Installer and are building the executable locally, this works and will attempt to download the additional software piece if the secondary software piece is installed with a lower then required version.

When using the executable that the Devops pipeline generates, the Version number check seems to be excluded. It will attempt to download the prerequisite when the secondary software piece is not installed. If the secondary software piece is installed with a lower version then required version, it will not prompt the prerequisite download.

Both of these have been done using the same AIP file, the only changes being that I made some changes locally as we replace a lot of values as part of our pipeline.

Any help would be greatly appreciated!
Thanks,
Connor
m4a.c4
Posts: 24
Joined: Mon Mar 30, 2020 9:25 pm

Re: Conditional Prerequisite with Devops Pipeline

Hi there,

Further to my previous post. Upon playing around with the AIP file, we have found the following line on the caphyon.advinst.msicomp.PreReqSearchComponent Component is causing it to not work as expected:
VerMin="[AddinVersion]"

This is a value we are replacing in our Devops pipeline. We found that when we try hardcoded this value to a number (eg 1.0.0), then the prerequisite installer runs as expected.

I have sent my AIP file through to support at advanced installer dot com as well.

Any help would be greatly appreciated!
Thanks,
Connor
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Conditional Prerequisite with Devops Pipeline

Hello Connor,

We apologize for the delayed reply on this.

I have investigated your setup project and the issue is caused indeed because you set the minimum required version of your prerequisite detection criteria search to a non-valid input data, i.e. [AddinVersion].

Just go to "Prerequisites" page, select your prerequisite item, go to "Install Conditions" tab and double click on your "Registry value contains a version" search condition. On the "Edit Search" dialog please remove the [AddinVersion] string set in the "Minimum" field. Please note these versions fields support only hard coded versions.

Also, as a side note, please note it is not recommended at all to manually edit (e.g. using a text editor) the raw XML content of our AIP setup project file. Doing so you may end up with a invalid of corrupt setup project. You should use only our application to edit and configure a setup project, either by using our GUI or the command line support.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
m4a.c4
Posts: 24
Joined: Mon Mar 30, 2020 9:25 pm

Re: Conditional Prerequisite with Devops Pipeline

HI Daniel,

Thanks for your response.

We managed to get this working through the New Prerequisite Command line option.

Thanks again for your help!
Connor
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Conditional Prerequisite with Devops Pipeline

This is great. You are always welcome Connor.

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

Return to “Common Problems”