Seperate Installers for addon features - Advanced Installer Community

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!

AndrewMilne
Posts: 6
Joined: Wed Jan 20, 2010 11:38 am

Seperate Installers for addon features

Currently I have an installer that has a number of optional features in it. The decision has been made that these optional features should no longer be installed in the core product but instead supplied as separate add-on installers.

There is no overlap between the core product and files in the add-on installers or between add-on installers, though files from different add-ons and the core product often sit in the same directory. The list of all add-ons will not be known when the core product is packaged as some may be customer specific. The add-ons have the same version number as the core product.

I know I can create completely separate install packages and edit them such that they install into sub-directories of the main product. But I have 2 big questions:
  • how do I make sure that when the core product is removed all add-on features are removed completely as well?
  • How do I make sure that directories that could be used by the core product and multiple add-ons are cleanly removed? (If I can get the add-ons to uninstall first then I would assume this will work out of the box)
Does anyone have any tips for this kind of set-up? I don't think I can use the patch functionality as there are lots of different combinations of add-on installers and each of them may need to be patched independently. I looked for a specific "add-on" installer capability in advanced installer but didn't see anything.

Thanks
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Seperate Installers for addon features

Hi Andrew,

The only clean way I can think of for your add-ons to be uninstalled along with your core product would be for the add-ons to properly register as addons with your main product. Your core product installer needs to know how to recognize the add-ons. This means the add-ons should write registry entries that the core product installer will read and use to uninstall them.

Best thing I can think of is for your add-ons to write their product codes in under a single common key. Your core product installer would then read the values under that key and use msiexec to uninstall the add-ons, as explained in in the following guide:
http://www.advancedinstaller.com/user-g ... l-msi.html

As long as the add-ons and your product do not create unregistered resources under those directories, they should be cleanly removed when the products are uninstalled.
Otherwise, you can use a File Removal Operation to remove the unregistered files so that the folder containing them will also be removed.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
AndrewMilne
Posts: 6
Joined: Wed Jan 20, 2010 11:38 am

Re: Seperate Installers for addon features

Thanks for the quick reply.

That sounds like a simple enough mechanism to implement and test. It also doesn't require any fore knowledge on the main products behalf of what add-ons are present.

We could end up in the situation where we have:
  • PROD,v1.0.0 with ADDON,V1.0.0.2
  • PROD,V2.0.0 with ADDON V2.0.0.8
Just to check my understanding is correct. The 2 different ADDON versions should have different product codes and thus removing PROD,V1.0.0 will only take off ADDON,V1.0.0.2?

If so that's exactly what I need. You'd think MSI would have an integrated way to do this, seems like a pretty standard use case.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Seperate Installers for addon features

Precisely. Each add-on will have a different product code.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”