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!

Christophe
Posts: 9
Joined: Wed May 06, 2015 11:48 am

condition &Feature = 5

Hello,

I need a custom action to run when FeatureA is being installed or when it is being repaired/modified.
"(&FeatureA = 3) OR (&FeatureA = 5)" seems to be doing the job but as I haven't found any documentation related to option 5 outside of advanced installer I am not 100% sure if it is safe to use like this. Could you confirm this is ok?

There is a somewhat related problem I'm trying to find a solution for, if any.
FeatureA is only installed if NO newer version of our application is present on the system. The problem I'm facing is that, on repair, FeatureA is reinstalled without caring whether there is any newer version that has been installed in the meantime.
So for example if I installed version 1.1 then version 1.2 then do a repair of 1.1, I would like the repair NOT to reinstall FeatureA. If we haven't installed 1.2 or if it has been uninstalled before the repair, then I'm fine reinstalling FeatureA.
I suppose MSI doesn't perform version check on repair/modify. Is there a way to prevent FeatureA from being repaired if we detect a newer version (without going through a script that would detect what is installed on the system)?

Note, I'm using AI 8.1.3 sadly. ;)
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: condition &Feature = 5

Hello,

Indeed, the &FeatureA = 5 condition is not documented, but only experimented, as stated in the MSDN community additions.

For the feature version detection, I would also have to know whether the component is shared between subsequent versions and also if the packages' consecutive versions are installed side by side.
Please keep in mind that for every file in your project, you can access the "File Properties Dialog".
Please be sure that in the "Operations tab", the "Overwrite only if the existing file is older" option is checked, this being the default Windows Installer behavior.
You can also use the "File Version Tab" for a more thorough control of file versioning.

If you still have problems, can you please send us the .aip files (of the first and second version of your package) and a step by step use case at support at advancedinstaller dot com so that we can investigate more?

Kind regards,
Irina
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Christophe
Posts: 9
Joined: Wed May 06, 2015 11:48 am

Re: condition &Feature = 5

I didn't see the community addition when looking at this page. Good catch!

Regarding the second question, this has become a lesser priority unfortunately. Thanks for your hints, they might come in handy when I can come back to solving this problem.

Thanks,
Christophe
Irina
Posts: 113
Joined: Mon Apr 27, 2015 11:42 am

Re: condition &Feature = 5

You are always welcome Christophe.

I am glad I could help you.

Kind regards,
Irina
Ecaterina Irina Grosu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”