Basic UI Prerequisites don't report failures - Advanced Installer Community
dybalabj
Posts: 58
Joined: Thu Jan 09, 2014 2:00 am

Basic UI Prerequisites don't report failures

If I use the "Basic UI and Progress" bootstrapper and any of my prerequisites fail to install, there is no indication of the failure. If I don't check "Continue with main installation even if the prerequisite is not installed", then the installation simply aborts with no feedback to the user. If I allow the install to continue, then my application could have completely unexpected behavior without the prerequisites.

Is there a way for the Basic UI to show the the error message if a prerequisite fails to install? I would prefer to use the Basic UI approach so the user doesn't need to interact with the prerequisite installers, but it would be really helpful if they could see that a prerequisite failed. Otherwise, we'll get reports of "It doesn't install" or "The installer just stops" and I'd rather not have to direct them to the log file location. A simple error dialog would help us resolve these issues more quickly.

I realize I could set launch conditions on my installer that verify if the prerequisites are installed, but I want my launch conditions to run first so I can verify the OS is supported before installing the prerequisites. If I do this, I can have any launch conditions that check for my prerequisites because this will prevent the installer from running and installing the prerequisites in the first place.

I'm using Advanced installer Profession 10.8. Any help would be appreciated.

Thanks,

Brandon
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Basic UI Prerequisites don't report failures

Hello Brandon and welcome to Advanced Installer forums,

Indeed, when the Basic UI level is used, it will show a prerequisite installation progress bar.
I realize I could set launch conditions on my installer that verify if the prerequisites are installed, but I want my launch conditions to run first so I can verify the OS is supported before installing the prerequisites.
However, you can create another installation package and add it as a Pre-install Prerequisite what will only verify if the OS is supported before installing the prerequisites or your main installation package.
Just make sure that you uncheck the Continue with main installation even if the prerequisite is not installed option from Properties tab of the prerequisite. Also, for this prerequisite that verify if the OS is supported you can uncheck the Register product with Windows Installer option from Product Details page.

So, if the Operating System is supported you will continue further with the installation.

In order to check if your prerequisite have been successfully installed you can use a Search operation. The result of your search will be placed in a newly created Windows Installer Property which you can use further as a Custom Launch Condition in your main installation package.
So, if the prerequisite wasn't installed properly, then your main installation package will not be installed as well.

If there is anything else I can help with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”