$uka
Posts: 13
Joined: Mon Jan 09, 2017 8:51 pm

Problem to conditionally install lots of files

Fri Apr 06, 2018 10:40 am

Hello,

We're using Advanced Intaller 14.6 Enterprise.

We have ~5K config files that needs to be installed, but we don't want to install them every time our product is upgrading (for ex. from 1.1.0 to 2.2.0), so we need a way to install them based on condition somehow. So far I've created feature "PrebundledConfigsFeature" (see the attachment).

The problem is that when our product is upgrading the configs are upgrading too: old config files are removed and new ones copied. It seems that condition "NOT OLDPRODUCTS AND NOT UPGRADINGPRODUCTCODE" is not respected by the installer.


Do we do something wrong? Is there another way (without patches pls)? Can this be done only with custom action?
Attachments
ConfigsFeature.png
ConfigsFeature.png (27.05KiB)Viewed 2946 times

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

Re: Problem to conditionally install lots of files

Wed Apr 11, 2018 10:25 am

Hi,

You should be able to achieve what you want with only the "NOT OLDPRODUCTS" condition. However, there is an Advanced Installer issue that may affect you too. Please take a look on the "Installing a feature based on a property is not failing under special circumstances" thread for more details.

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

$uka
Posts: 13
Joined: Mon Jan 09, 2017 8:51 pm

Re: Problem to conditionally install lots of files

Thu Apr 19, 2018 4:04 pm

Hi,

I've tried to use NOT OLDPRODUCTS but still no luck.
I don't know know if the issue you mentioned is affecting us, hard to tell from the issue description.

Now I just tried to NOT OLDPRODUCTS on FEATURE with single file, but that file still gets reinstalled with all the other files:
all files are removed and new ones are copied.

Is there some other way to make AI respect "NOT OLDPRODUCTS" condition?

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

Re: Problem to conditionally install lots of files

Tue Apr 24, 2018 12:43 pm

Hi,

Most likely, the issue I mentioned affect you too.

Meanwhile, you can use the "Install one or more features locally" and the "Uninstall one or more features" events on one of your dialogs' buttons and set the "NOT OLDPRODUCTS" conditions for them as in the example below:
  • Install one or more features locally
    Argument: FeatureName
    Condition: NOT OLDPRODUCTS

    Uninstall one or more features
    Argument: FeatureName
    Condition: OLDPRODUCTS
Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

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

Re: Problem to conditionally install lots of files

Wed Oct 17, 2018 9:55 am

Hi,

Please see the recommended solution to this problem on the "Installing a feature based on a property is not failing under special circumstances" thread.

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

Return to “Common Problems”