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!

koswo
Posts: 1
Joined: Tue Sep 27, 2016 10:47 am

"NOT Installed" condition used but chained package tries to install nevertheless

Hi,

I received an MSI created with Advanced Installer. This MSI contains 2 chained packages. It noticed that one of thoses packages fail to install when it is already installed. When I have a look at the AI_ChainedPackage table, the InstallCondition says "NOT Installed", however it attempts to install it nevertheless... How do you explain that it tries to install even when it is already installed?

Is there a problem with the detection?

Please advice.

Kind regards,

K
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: "NOT Installed" condition used but chained package tries to install nevertheless

Hi K and welcome to our forums,

The condition you see in AI_ChainedPackage table, InstallCondition (that says "NOT Installed") is a condition evaluated by the main package. You can translate this like “if main package is not installed (at its first install), then install the chain package”.
For your problem the solution is to search if the chained MSI is already installed on target machine and skip its installation if is true.

In order to do this you need to modify the main project in Advanced Installer like this :
1. Create an “Extended Search” (e.g. CHAIN_EXIST) in “Custom Behavior” –> “Search” page. You set the criteria of the search “Product Version (identify by Product Code)” and in the “Product Code” field you add the chained MSI product code.
2. The search from above will return “1” if the Product Code is found so, in order to skip installation of the chained package, you will change the InstallCondition like this:

Code: Select all

NOT Installed AND NOT CHAIN_EXIST
If you have any questions let us know.

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

Return to “Building Installers”