Mel
Posts: 53
Joined: Fri Jul 10, 2020 10:59 am

How can i stop an install if prerequisites not met ?

I have an install and i have defined prerequisites of .net 4.8.1, Now i would like to stop the install if the prerequisites are not met and maybe display a dialog telling the user to install the framework.

How can i go about and do that ?

thanks
Mel
Posts: 53
Joined: Fri Jul 10, 2020 10:59 am

Re: How can i stop an install if prerequisites not met ?

Also i want the message to say need .net v4.8.1 , as of now there is no option to select that in Launch Conditions, it only goes up to 4.8. I have updated Advanced Installer and still no option
Daniel
Posts: 8279
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How can i stop an install if prerequisites not met ?

Hi,

Indeed we do not have built-in launch condition for .Net Framework 4.8.1. This improvement is already on our todo list and hopefully it will be available in a future version of Advanced Installer. When so we will update this forum thread.

In the meantime, as a workaround, you can simply copy the search condition from the "Prerequisites" view. And then just create a search in "Search" page that uses this registry location.

Finally create your own custom launch condition using the search result.
image1.png
image1.png (83.47 KiB) Viewed 6226 times
image2.png
image2.png (21.02 KiB) Viewed 6226 times
image3.png
image3.png (64.87 KiB) Viewed 6226 times
image4.png
image4.png (76.11 KiB) Viewed 6226 times

Let me know if you need more details on this.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mel
Posts: 53
Joined: Fri Jul 10, 2020 10:59 am

Re: How can i stop an install if prerequisites not met ?

How do i get to the screen under Custom Behaviour and enter the values. I have added NET481_SEARCH. I have tried to right click , but what do i select , is it "Add Search Location", "New Extended Search" ????
Daniel
Posts: 8279
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How can i stop an install if prerequisites not met ?

Hi,

You should use the "New Extended Search" context menu option in "Search" page.

Then you should go to "Launch Conditions" page -> "Custom" tab and define your custom launch condition.

Let me know if this helped.

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

Return to “Common Problems”