Pre-requistes Dependent on Each Other - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

KeithG
Posts: 4
Joined: Fri Feb 03, 2012 11:30 pm

Pre-requistes Dependent on Each Other

I'm working on an installer that has 4 dependencies. One is the .NET 4 framework. Another depends on it. If the .NET 4 framework install fails (or is canceled), I want to take one of these two actions:
1. Abort the installation without continuing with any other pre-requisites. Right now, if one pre-requisite fails, it just jumps to the next one.
2. If one pre-requisite fails be able to skip the ones that depend on it. This would result in not all of the pre-requisites being installed, and the installer stopping at that point, but that's OK. What I'm trying to avoid is the dependent pre-requisite starting up, already knowing it will fail because of the missing .NET 4 framework.

Any suggestions related to this topic are appreciated. Thanks!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Pre-requistes Dependent on Each Other

Hi,

Every prerequisite returns a different value in case of success or error. Unfortunately, these values are not the same for all the prerequisites and Advanced Installer cannot know how to interpret them. That is the reason it jumps to the next prerequisite even if the current one fails or not. So, I'm afraid you cannot achieve what your want.

However, you can use the "Install only if this prerequisite is being installed" option from the "Install Conditions" tab which will not allow the user to check a prerequisite, in the "Prerequisite" dialog, without the other it depends of.

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

Return to “Common Problems”