Seite 1 von 1

Uninstall addins before primary program

Verfasst: 27 Jun 2017, 08:25
von bobzbobz
Hi

I have a package for office 2016 and several packages for addins for different office-programs.

I want the addins to be uninstalled before Office it self is uninstalled - I have tried adding this to the control-file for Office:

Code: Alles auswählen

[ProductDependency]
action: uninstall
requiredProduct: mailarchiver_office2016
requiredAction: uninstall
requirementType: before
When I try to run uninstall on Office it starts with the main Office package in stead of the addins.
What can be done?

Regards
Soren

Re: Uninstall addins before primary program

Verfasst: 27 Jun 2017, 10:02
von r.roeder
Hi Soren,

it is not so clearly documented but: Up to now the only dependencies which influences the product sequence are between setup actions resp. installed status since the product sequence is conceived as product installation sequence, and we would run into contradictions if we tried to follow both kinds of dependency declarations. It is already a typical case which you describe: Some addon B must be installed after its parent product A. but should possibly be uninstalled before A. Therefore we get two contradictory sequences for uninstallation and installation but we need a unique sequence.

To solve this problem we have indeed got the idea to produce an uninstall sequence of products and a installation sequence of products (and possibly each product may appear twice).

At the moment, you can handle your task by using opsiservicecalls in your opsiscript to force the other product to be uninstalled (cf. http://download.uib.de/opsi4.0/doc/html ... erviceCall )

I hope this is helpful

Greetings
Rupert

Re: Uninstall addins before primary program

Verfasst: 27 Jun 2017, 10:59
von bobzbobz
Thank you for the quick reply :)

Can you point me in the right direction for which method I should use?
I have only used OpsiServiceCalls one time before, to set another program to install based on a dependency.

Re: Uninstall addins before primary program

Verfasst: 16 Aug 2017, 22:18
von shade
:?:

Re: Uninstall addins before primary program

Verfasst: 17 Aug 2017, 12:15
von n.wenselowski
Hi,

setProductActionRequest sets the action request but you need to handle the pausing of the currently processed product yourself.
We do this in some other packages by saving state in the registry to then determine at what stage we are.


Kind regards

Niko