Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Install prerequisites along with patch file

Hi Advanced Installer Support Team,

Some of our prerequisites are missing in a very special scenario, please let me share it with you:
1. Create a single .exe setup and install the product along with all prerequisites on a customer's PC.
2. Let's suppose customer accidentally deletes one of prerequisites required by our product, he does not even notice it.
3. We deliver a small update as a patch to our original product.
4. Customer launches Auto Updater, finds our .msp patch and installs it successfully. -> Missing prerequisites are still missing.

Could you please advice me a resolution to this problem? Is there any mechanism in Advanced Installer to help us re-installing any missing prerequisites when publishing new patches - I know major updates re-install the missing prerequisites too? During my research I've found similar cases but unfortunately I haven't find a proper answer yet. We just simply would like to make sure that all customers' PC contains all of our prerequisites after installing one of the updates or patches we publish.

Thanks in advance for your help!

Regards,
Zsolt
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Install prerequisites along with patch file

Hello Zsolt,

Major upgrades fix this case because prerequisites will be detected as missing and the user can choose to install them.

Patches are not meant to cover such a complex scenario like deploying prerequisites. They are small by design, lightweight upgrades that contain a couple of changes.

However, if you still want to protect your customers from scenarios like these i can think of two implementations:

1. Create a custom action that runs from a patch which performs the required checks and installs the prerequisites.

2. Copy the searches from the "Install Conditions" of each prerequisite to the Search page and create a patch to include these searches. Go to Dialogs page and publish events from controls on the Patch dialogs to inform the user what prerequisites are missing. This case won't install the prerequisites but it will at least notify the user.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: Install prerequisites along with patch file

Hi Mihai,

Thank you for all the information you provided me, they made the way of handling prerequisites clearer for me.

Best regards,
Zsolt

Return to “Common Problems”