Two products with common component - 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!

oz1cz
Posts: 17
Joined: Thu Oct 01, 2009 10:49 am

Two products with common component

Hi,

I'm completely new to Advanced Installer, so please forgive me if this is an incredibly simple question:

I need to create installers for two software products:
Product 1 consists of program X plus data file A.
Product 2 consists of program X plus data file B.

If a user already has product 1 installed, installing product 2 should only install data file B (resulting in one instance of program X plus both data files).
And if a user has both products installed, uninstalling product 1 should remove only data file A (leaving program X and data file B).
If a user has only product 1 installed, uninstalling product 1 should remove both program X and data file A (leaving nothing).

I need some guidance on how to handle this.

--
Claus
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Two products with common component

Hi Claus,

Here is what you could try:
Product 1 consists of program X plus data file A.
Product 2 consists of program X plus data file B.
-- you can create three separate projects, one for program X, and the other two for product 1 and product 2
-- then you can add the program X as a Software Prerequisite in the Prerequisites page for both products
-- after this you simply add the files A and B in the corespondent packages
If a user already has product 1 installed, installing product 2 should only install data file B
For installation:
-- the program X will be installed only if the Install Conditions of the prerequisite will fail, i.e. the program X is not installed

For uninstall you could try this:
-- create two searches for file A and B in the Search page for both products
-- now you can add a custom action under Install Finalize to uninstall program X with the following condition for example:

Code: Select all

( (REMOVE = "ALL") AND (NOT SEARCH_A)  AND (NOT SEARCH_B) )
-- this condition will make the custom action to run only when both files A and B are not found and one of the products is removed

Please let me know if you have any questions.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
oz1cz
Posts: 17
Joined: Thu Oct 01, 2009 10:49 am

Re: Two products with common component

Thank you, Bogdan, I just tried what you suggested, and it works nicely!

--
Claus

Return to “Common Problems”