Conflict and dependancy

Antworten
aellert
Beiträge: 37
Registriert: 16 Mai 2012, 11:30

Conflict and dependancy

Beitrag von aellert »

Hello,

I'd like to replace the antivirus program on all of my computers. This program was deployed with an OPSI package.

Now, I'm looking for something to tell OPSI to first uninstall the old antivirus package, then install the new one.
I don't know if it matters, but the PC need to reboot after uninstall to properly remove the old antivirus.

Is there anything in product dependancy to to tell OPSI that it can't install 2 package because there are conflictual ?
It would be great if could set the new antivirus to be "Installed" and automaticaly, OPSI would set the action -> uninstall on the old antivirus.

Thank you for your help.

Alexandre
Benutzeravatar
n.wenselowski
Ex-uib-Team
Beiträge: 3194
Registriert: 04 Apr 2013, 12:15

Re: Conflict and dependancy

Beitrag von n.wenselowski »

Hi Alexandre,
aellert hat geschrieben:Now, I'm looking for something to tell OPSI to first uninstall the old antivirus package, then install the new one.
I don't know if it matters, but the PC need to reboot after uninstall to properly remove the old antivirus.
an uninstall-script should do the trick ;)
Reboot can be triggered from within that script - search for exitwindows in the winst docs.
Setting the old product to uninstall and the new one to setup can be done via CLI, configed or even through opsiscript (see below).
aellert hat geschrieben:Is there anything in product dependancy to to tell OPSI that it can't install 2 package because there are conflictual ?
It would be great if could set the new antivirus to be "Installed" and automaticaly, OPSI would set the action -> uninstall on the old antivirus.
Things like that are possible via the usage of opsiServiceCall-sections inside a opsiscript. Again you should check the docs for that.
iirc I've seen things like that somewhere here on the forums.


Kind regards

Niko

Code: Alles auswählen

import OPSI
Antworten