dybalabj
Posts: 58
Joined: Thu Jan 09, 2014 2:00 am

AI 13.5 Prerequisite blocks installer even if Install Condition fails

Tue Jan 24, 2017 11:58 pm

My installer has a prerequisite that is only required on Vista. My Install Condition specifies Vista SP2, and "Continue with main installation even if the prerequisite is not installed" is not checked.
When building my installer with AI 13.4, this prerequisite is correctly skipped on Windows 8.1 and my application installs normally.
When building my installer with AI 13.5, my install is aborted on Windows 8.1 because "a prerequisite failed". I believe it's because the "Continue with main installation..." option is not set, and the installation aborts because the prerequisite was not installed, which it should've been skipped altogether. If I check the "Continue with main installation..." box, then my installer works on Windows 8.1

Is this change in behavior by design, or is it a bug in AI?

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: AI 13.5 Prerequisite blocks installer even if Install Condition fails

Wed Jan 25, 2017 2:29 pm

Hi,

I tested the scenario, but I couldn't reproduce the problem. Can you reproduce the problem on multiple clean machines? If so, can you please send me your AIP (project file) and a sample package to support at advancedinstaller dot com, so I can investigate them and try to find the problem?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

dybalabj
Posts: 58
Joined: Thu Jan 09, 2014 2:00 am

Re: AI 13.5 Prerequisite blocks installer even if Install Condition fails

Thu Jan 26, 2017 1:28 am

I tried to reproduce the issue by creating a sample project from scratch, but was unable to do so. However, I can still reproduce the problem with a simplified version of my application installer (see attached). There are 3 prerequisites:

1. Vista Platform Update (x86) - This is required on Vista for certain multimedia functions to work. Therefore, the "Continue with main installation if the prerequisite is not installed" box is not checked. Under the Install Conditions, the Supported OS is set to Vista SP2 only, so I would expect this prerequisite to be ignored for any OS other than Vista SP2.

2. .NET Framework 4.6.2 - Our application requires at least .NET 4.5.2, but we prefer to install 4.6.2 if possible to take advantage of some of the bugfixes in the framework. However, if 4.6.2 fails to install, it should not block our application if .NET 4.5.2 or higher is installed. Therefore, the "Continue with main installation..." box is checked. The .NET installer return code is also saved in a property, and displayed in a message box during the main install.

3. Visual C++ 2010 SP1 - Needed for some features, but not required. Also set to "Continue with main installation".


My problem can be reproduced on Windows 8.1 without KB2919355 (this update is required to install .NET 4.6.2 on Windows 8.1). In this case, the .NET 4.6.2 install fails with error 5100 (system does not meet requirements), and my installer should display this error code in a message box.

If I build the installer with AI 13.4, this works as described. However, if I build the installer with AI 13.5, the installer aborts after the .NET install fails, does not display my message box, and shows an error message that a prerequiste had an error. If I change the Vista Platform Update to "Continue with main installation..." then the 13.5 build works fine.

Please let me know if you need any other information to reproduce this problem.
Attachments
AI 13.5 Prereq Failure.zip
AIP in 13.4 format with related files
(6.86KiB)Downloaded 240 times

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: AI 13.5 Prerequisite blocks installer even if Install Condition fails

Thu Jan 26, 2017 10:50 am

Hi,

Thank you for the sample project. I tested it and, indeed, it fails if the ".NET 4.6.2" prerequisite fails to install.

This seems to be an Advanced Installer issue. A fix will be available in a future version of Advanced Installer, thank you for bringing it to our attention.

Can you move the "Vista Platform Update (x86)" prerequisite after the ".NET 4.6.2" prerequisite in your project and see if it fixes the problem?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

dybalabj
Posts: 58
Joined: Thu Jan 09, 2014 2:00 am

Re: AI 13.5 Prerequisite blocks installer even if Install Condition fails

Thu Jan 26, 2017 4:34 pm

Yes, moving the Vista Platform Update prerequisite after the .NET 4.6.2 prerequisite appears to fix the issue.

It also seems to work if I move NET 4.6.2 to a Feature-based prerequisite, while keeping the Vista Platform Update as a Pre-install prerequisite.

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: AI 13.5 Prerequisite blocks installer even if Install Condition fails

Thu Jan 26, 2017 4:53 pm

HI,

I'm glad that moving the "Vista Platform Update" prerequisite after the ".NET 4.6.2" prerequisite works.

However, please keep in mind that is is not recommended to move ".NET 4.6.2 " as a feature-based prerequisite. For more details please read the "Why does .NET Framework fails as feature-based prerequisite" FAQ.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

dybalabj
Posts: 58
Joined: Thu Jan 09, 2014 2:00 am

Re: AI 13.5 Prerequisite blocks installer even if Install Condition fails

Thu Jan 26, 2017 5:02 pm

Thanks for the guidance. I wasn't actually planning to do this, I just wanted to see if it made a difference in this case. I have another feature-based prerequisite in my actual installer, and I wanted to see if I would run into any issues if it failed. This was just a quicker test to do.

Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: AI 13.5 Prerequisite blocks installer even if Install Condition fails

Mon Jan 30, 2017 8:23 am

You're welcome.

Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”