waspy
Posts: 64
Joined: Fri Oct 03, 2008 10:58 am

Prerequisite condition problem

Hi there,

Environment:
---------------
Advanced Installer: 11.4 (applicable to 10.9.1 too)
OS: Windows 8.1
Condition:
Pretty basic setup with a standard pre-requisite check for .NET framework 4.5 (with auto install). Web installer is included in the installation package and gets launched correctly when framework is not installed. However, I receive a strange message afterwards saying that "[Product] cannot be installed on systems with .NET Framework version lower than". The installation ends.
On the second launch the pre-requisite is detected correctly, but the message is displayed anyway. The installation ends.

Option "Continue with main installation even if the prerequisite is not installed" is turned off.

Thank you.
waspy
Posts: 64
Joined: Fri Oct 03, 2008 10:58 am

Re: Prerequisite condition problem

Hi guys,

More information...

After selecting .NET v4.5 as “Launch Condition”, the following is produced:
1st thing to check:

<DOCUMENT Type="Advanced Installer" …
<COMPONENT cid="caphyon.advinst.msicomp.ProjectOptionsComponent">
<COMPONENT cid="caphyon.advinst.msicomp.MsiPropsComponent">
<ROW Property="AI_MINDOTNETVERSION" MultiBuildValue="DefaultBuild:4.5.1" ValueLocId="-"/>

2nd thing to check:
…
<COMPONENT cid="caphyon.advinst.msicomp.MsiLaunchConditionsComponent">
<ROW Condition="(AI_DOTNET45_SEARCH >= "4.5") OR (AI_DOTNET45_SEARCH >= "4.5.1") " Description="[ProductName] cannot be installed on systems with .NET Framework version lower than [AI_MINDOTNETVERSION]" DescriptionLocId="AI.LaunchCondition.DotNET" IsPredefined="true" Builds="DefaultBuild"/>

Yet another bug, after de-selecting all “Launch Conditions”, XML key “AI_MINDOTNETVERSION” is removed, but the condition is still kept in XML file. That’s why the install fails with message “Cannot proceed with .NET earlier than ____” (without giving version number)
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisite condition problem

Hi,
Pretty basic setup with a standard pre-requisite check for .NET framework 4.5 (with auto install). Web installer is included in the installation package and gets launched correctly when framework is not installed. However, I receive a strange message afterwards saying that "[Product] cannot be installed on systems with .NET Framework version lower than". The installation ends.
On the second launch the pre-requisite is detected correctly, but the message is displayed anyway. The installation ends.
Please keep in mind that .NET Framework 4.5 is included by default with Windows 8 and above operating systems and it should be added as a “Windows Feature” using the [New Windows Feature bundle] toolbar button available in the "Prerequisites" page and selecting it from our predefined Windows Features list.
Yet another bug, after de-selecting all “Launch Conditions”, XML key “AI_MINDOTNETVERSION” is removed, but the condition is still kept in XML file. That’s why the install fails with message “Cannot proceed with .NET earlier than ____” (without giving version number)
I tested this scenario, but I couldn't reproduce it. Can you please send us a sample AIP file that I can test and reproduce the behavior?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
waspy
Posts: 64
Joined: Fri Oct 03, 2008 10:58 am

Re: Prerequisite condition problem

Thanks for looking into this.

In fact .NET Framework 4.5 is included in Windows 8 and above. There is no need to include it as a feature bundle since it's related to Advanced .NET 4.5 services (e.g. ASP.NET 4.5).

The situation is pretty standard: Irrespective of supported OS, installer should look for .NET framework 4.5 and install it if it's not present.

I think the problem is related to the fact that I initially put two conditions in place. One check for installed .NET framework in "Launch Conditions" and another one in "Prerequisites". Since then I started to get this error message even after removing Launch conditions check. I've been able to correct the problem manually by editing the .AIP file manually.

I have sent you the "problematic" project file by email.

Thanks.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Prerequisite condition problem

Hi,
In fact .NET Framework 4.5 is included in Windows 8 and above. There is no need to include it as a feature bundle since it's related to Advanced .NET 4.5 services (e.g. ASP.NET 4.5).

The situation is pretty standard: Irrespective of supported OS, installer should look for .NET framework 4.5 and install it if it's not present.
Indeed, the installer will look for .NET Framework 4.5 and install it if it's not present, but this can be achieved only through the "Windows Features" option. This cannot be achieved through the "Prerequisites" support on Windows 8 and above because the OS will block it and inform you to enable it from Windows Features.

Due to the fact that the .NET Framework software is already included in these Operating Systems, it cannot be installed again, it only needs to be enabled through the Windows Feature support. That is why in the "Install Conditions" tab of the prerequisite, we did not select Windows 8 and above from the "Supported Windows Versions" list.
I think the problem is related to the fact that I initially put two conditions in place. One check for installed .NET framework in "Launch Conditions" and another one in "Prerequisites". Since then I started to get this error message even after removing Launch conditions check. I've been able to correct the problem manually by editing the .AIP file manually.
I'm glad you managed to correct the problem manually. I tested the AIP file that you sent and, indeed, I reproduced the behavior, but I'm not sure how it got corrupted because I couldn't reproduce the problem in a new project. If you can reproduce the problem in a new project and have a step by step test case scenario, please let me know.

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

Return to “Common Problems”