Minanath
Posts: 8
Joined: Wed Apr 29, 2020 5:24 am

Uninstall behaviour for common MSI package.

Thu Jul 23, 2020 3:25 pm

Hi,
We have a number of the bootstrap installer which uses the common pre-requisite MSI package.
While installing it is getting install at first installation of bootstrapper and next time it will not get installed.

While uninstalling, we want to preserve it till the last bootstrap does not get uninstalled.
So at last bootstrap uninstall, it will get uninstall
We tried to use Reference count for pre-requisite msi package. But it is not working for us.
Please help us with this.

Thanks

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: Uninstall behaviour for common MSI package.

Mon Jul 27, 2020 12:18 pm

Hi,

I am afraid we do not have built-in support for your shared prerequisite uninstall request.

I assume your prerequisite is a feature-based or post install one. In this case you can try to proceed like this:

1. go to "Organization" page and select the feature of your prerequisite; make sure this feature has the same name and identifier in each of your setup projects
2. rebuild and test again your scenario

and see if this helps you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Minanath
Posts: 8
Joined: Wed Apr 29, 2020 5:24 am

Re: Uninstall behaviour for common MSI package.

Tue Jul 28, 2020 4:07 pm

Hi,
We have created the Demo project for creating the scenario.
We have two boostrap package 1. Demoboostrapper 2. Demobootstrp
Which has shared / common MSI file as pre-requiresite democommonMSI.
We have enable the reference count option from the both package under the organisation -> pre-requisite.
We tried two way
1. Enabling the uninstall option in the
Pre-requisite - > featurebased ->democommonmsi->setupfile->uninstall using this command line.
2. Disabling above option.
By doing above both option, we are not able to achieve our requirement.
Please help us to solve this problem

Thanks,
Minanath
Attachments
DemoProject.zip
(237.3KiB)Downloaded 215 times

Daniel
Posts: 8237
Joined: Mon Apr 02, 2012 1:11 pm
Contact:  Website

Re: Uninstall behaviour for common MSI package.

Wed Jul 29, 2020 10:48 am

Hi Minanath,

I tested the scenario and replicated the behavior. After further debating on this with our dev team it seems there is no workaround you can get this accomplished using our prerequisite support. It seems we do not have support for shared prerequisites.

As another workaround solution, maybe you can package your prerequisite resources as a merge module (instead of a stand alone setup package) and add the MSM file in your bootstrapper setup projects.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”