Tatyana Mykhnevych
Posts: 40
Joined: Thu Feb 13, 2020 4:47 pm

Leave common applications' feature on uninstall

Hello,

I have 3 applications to install: A, B, C. Application C is a feature of applications A and B.
I have two installers:
1) to install A with C;
2) to install B with C.
Applications are installed in the following folders:
C:\Application Folder\A
C:\Application Folder\B
C:\Application Folder\C

How can I leave application C folder during application A uninstall if application B is installed. And vice versa: leave application C folder during application B uninstall if application A is installed.

Looking forward to hearing from you.

Best regards,
Tanya
Catalin
Posts: 6597
Joined: Wed Jun 13, 2018 7:49 am

Re: Leave common applications' feature on uninstall

Hello Tanya and welcome to Advanced Installer forums,

Here is how I would go about this:

Create an installation package for each of your applications (A, B and C).

After doing so, I would create a wrapper for all the 3 above (basically a package that installs the 3 above). Please refer to the "Creating Suite Installation" article for more information about this.

In a new project, add the earlier created installation packages as "feature-based" prerequisites (in "Prerequisites" page).

In the "Product Details" page, uncheck the "Register product with Windows Installer" option, so our wrapper will not appear in Control Panel.

This way, when one of the packages is uninstalled, it will not affect the other 2.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Tatyana Mykhnevych
Posts: 40
Joined: Thu Feb 13, 2020 4:47 pm

Re: Leave common applications' feature on uninstall

Thanks for your answer.

But we have only 2 installers: for applications A and B. We don`t want to support 3 installers. Feature C - it is just a folder in C:\Application Folder\C.
How can we not delete this folder on A or B uninstall?

Best regards,
Tanya
Catalin
Posts: 6597
Joined: Wed Jun 13, 2018 7:49 am

Re: Leave common applications' feature on uninstall

Hello Tanya,

So basically, if I understand this correctly, you have two installers that both have the same feature (C). If both are installed on the same machine, upon uninstlaling, you want the feature to stay on the machine, right?

This can be done by using a shared component. Basically, you can share all the components from your feature in both the projects. This can be done in the following way:

- the components must have the same GUIDs in both projects

- the resources of the components must be installed in the same location

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”