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
Conflict and dependancy
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: Conflict and dependancy
Hi Alexandre,

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).
iirc I've seen things like that somewhere here on the forums.
Kind regards
Niko
an uninstall-script should do the trickaellert 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.

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).
Things like that are possible via the usage of opsiServiceCall-sections inside a opsiscript. Again you should check the docs for that.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.
iirc I've seen things like that somewhere here on the forums.
Kind regards
Niko
Code: Alles auswählen
import OPSI