How to uninstall Opsi client agent

ttblum
Beiträge: 91
Registriert: 23 Jun 2017, 14:18
Wohnort: Cleveland, Ohio USA

How to uninstall Opsi client agent

Beitragvon ttblum » 13 Jun 2019, 20:51

Hello,

We are currently using Opsi to deploy operating systems, we're not using it to install applications or manage OS's.

What's the best way to uninstall the Opsi client agent in Windows?

Should we run the uninstaller script in c:\program files (x86)\opsi.org\uninst, or remove it from Programs and Features, etc.?

uncle_scrooge
Beiträge: 577
Registriert: 21 Feb 2012, 12:03
Wohnort: Mainz

Re: How to uninstall Opsi client agent

Beitragvon uncle_scrooge » 14 Jun 2019, 11:05

No difference.
The uninstall string used by deinstall.cmd and from within Programs and Features are the same.
You can find the latter in HKLM\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\opsi-client-agent.
So it's up to you.
As with every uninstaller there will be remnants. You might check c:\program files (x86)\opsi.org and c:\opsi.org.

Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1126
Registriert: 01 Jul 2008, 12:10

Re: How to uninstall Opsi client agent

Beitragvon wolfbardo » 14 Jun 2019, 11:11

mmh, do you remember "Prevent opsi-agent from being installed"

viewtopic.php?t=9498

regards,
bardo wolf

Besuchen Sie uib gmbh auf der it-sa

8.-10.10.2019 in Nürnberg
Halle 9 Stand 108

opsi workshops in Mainz

Basis 4.-7.11.2019
Basis 09.-12.2019

Einführung in die Software-Paketierung 12.-13.11.2019

opsi support by uib gmbh

http://www.uib.de

ttblum
Beiträge: 91
Registriert: 23 Jun 2017, 14:18
Wohnort: Cleveland, Ohio USA

Re: How to uninstall Opsi client agent

Beitragvon ttblum » 14 Jun 2019, 15:00

In version 4.1, I'm finding that if I rename

50_opsi-client-agent.cmd

to

50_opsi-client-agent.txt

every script higher than 50 does not run, including necessary cleanup scripts. This worked fine in version 4.0.

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

Re: How to uninstall Opsi client agent

Beitragvon n.wenselowski » 17 Jun 2019, 15:19

Hi,

ttblum hat geschrieben:In version 4.1, I'm finding that if I rename

50_opsi-client-agent.cmd

to

50_opsi-client-agent.txt

every script higher than 50 does not run, including necessary cleanup scripts. This worked fine in version 4.0.

Looks like a bug to me.
What netboot product in what version are you currently using?
Does updating - if update available - the netboot product help?

Kind regards

Niko
opsi development - uib gmbh
For productive opsi installations we recommend support contracts.

ttblum
Beiträge: 91
Registriert: 23 Jun 2017, 14:18
Wohnort: Cleveland, Ohio USA

Re: How to uninstall Opsi client agent

Beitragvon ttblum » 17 Jun 2019, 16:14

I'm using:

Opsi version: 4.1.1.65

Netboot product: win10-x64, Windows 10 x64, Version 4.1.0.1-1 .

All the scripts run correctly until I rename:

Code: Alles auswählen

/var/lib/depot/opsi-client-agent/files/opsi/postinst.d/50_opsi-client-agent.cmd

to

/var/lib//depot/opsi-client-agent/files/opsi/postinst.d/50_opsi-client-agent.txt

Benutzeravatar
wolfbardo
uib-Team
Beiträge: 1126
Registriert: 01 Jul 2008, 12:10

Re: How to uninstall Opsi client agent

Beitragvon wolfbardo » 18 Jun 2019, 13:30

ttblum hat geschrieben:In version 4.1, I'm finding that if I rename

50_opsi-client-agent.cmd

to

50_opsi-client-agent.txt

every script higher than 50 does not run, including necessary cleanup scripts. This worked fine in version 4.0.


Properly most of the older

Code: Alles auswählen

postinst.d


scripts have been really Batches

For instance the new

Code: Alles auswählen

80_repartition.cmd


need a working opsi-winst / opsi-script.

So for me this change in behaviour is more a feature than a bug.

Coming back to your Question

ttblum hat geschrieben:Hello,

What's the best way to uninstall the Opsi client agent in Windows?

Should we run the uninstaller script in c:\program files (x86)\opsi.org\uninst, or remove it from Programs and Features, etc.?


you can run

a) opsi-client-agent = uninstall

via opsi

or

b) have a deeper look in the postinst.d mechanism described in the getting started to get what you need (perhaps working only with opsi-script/opsi-winst without installing opsi-client-agent)

kind regards,
bardo wolf

Besuchen Sie uib gmbh auf der it-sa

8.-10.10.2019 in Nürnberg
Halle 9 Stand 108

opsi workshops in Mainz

Basis 4.-7.11.2019
Basis 09.-12.2019

Einführung in die Software-Paketierung 12.-13.11.2019

opsi support by uib gmbh

http://www.uib.de

ttblum
Beiträge: 91
Registriert: 23 Jun 2017, 14:18
Wohnort: Cleveland, Ohio USA

Re: How to uninstall Opsi client agent

Beitragvon ttblum » 21 Jun 2019, 18:36

Neither removing the agent in Add Remove Programs or running the uninst script works, the Opsi agent still appears at bootup anyways.

I uninstalled via Opsi, and that does appear to have removed it cleanly.

We already deployed a computer with opsi-agent to a user that's not connected to our LAN. I disabled both Opsi Windows services, and now the opsi agent no longer launches at bootup.