sookeke
Posts: 9
Joined: Wed Apr 12, 2023 4:35 pm

MSI Chain Repair not working

Hello,

I have an AI project with multiple MSI chains. Everything seems to work okay but I realize that after installation, when I delete one of the MSI chains from the control panel and try to repair from the main installer, the main installer repair completes but didn't restore the deleted chain.

Thank you
Liviu
Posts: 1043
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: MSI Chain Repair not working

Hello,

Sorry for the delayed reply.

Please take a look at the Chained Package Behavior
article.

You need to change the default install condition for your chained packages.

For example, in your main package you can create a search for each chained package to find out if they are already installed. On the Searches page you can add a New Extended Search by Product Code.
search.png
search.png (48.17 KiB) Viewed 6671 times
Then, on the Condition field of your chained package you can use the RESULT_PROPERTY = "" condition:
chained condition.png
chained condition.png (27.76 KiB) Viewed 6671 times
After this, you should get the desired behavior.

I hope this is helpful!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sookeke
Posts: 9
Joined: Wed Apr 12, 2023 4:35 pm

Re: MSI Chain Repair not working

Hi,

My question is not about installing. I do not have any problem installing I have a problem when repairing or modifying the main installation in case one of the chain was mistakenly uninstalled
Liviu
Posts: 1043
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: MSI Chain Repair not working

Hello,

It seems that the steps I provided in my previous reply were not followed. If you were to apply those steps, you would see that my solution is specifically tailored for this scenario (the chain package will be reinstalled during the repair of the main setup).

The install condition of the chained package will be reassessed during the repair. The predefined "Installed" condition refers to the main package which will be always true during a repair (the main package is installed), thus the chained won't be installed.

Please follow the steps from my previous reply. You can use the "1" condition to test this without implementing the searches.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sookeke
Posts: 9
Joined: Wed Apr 12, 2023 4:35 pm

Re: MSI Chain Repair not working

Thank you. What does the condition "1" stands for => always install?
Liviu
Posts: 1043
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: MSI Chain Repair not working

Thank you. What does the condition "1" stands for => always install?
You're welcome!

Yes, with this condition the chained package will always be installed, even if it is already installed on the machine.

This is why I suggested the search approach.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”