NagiosEnterprises / ncpa

Nagios Cross-Platform Agent
Other
177 stars 95 forks source link

Silent uninstall #854

Closed gaguilard71 closed 2 years ago

gaguilard71 commented 2 years ago

Hi:

Is it possible to switch the uninstall proccess of NCPA as silent and unatended?.

I tryed the swtiches /h and /? and /help but it is not available, and I tryed /s too, but nothing works to make and unnatended uninstallation,

We need to uninstall the agent with a devops pipeline of our arround 680 servers, and we need to do it in this way.

I will waiting for an answer or for a recomendation.

Thank you in advance.

Gaston

ericloyd commented 2 years ago

I'm not a Windows power user, but have you looked at the PowerShell "Remove-AppxPackage Nagios.NCPA" command? I haven't, so it may or may not help you out.

gaguilard71 commented 2 years ago

I will take a look to it. I am saw only wmic command, but NCPA is not registered as an installed app there. I am a old man and believe me that regarding PowerShell I am a complete newbee. Thanks for help me, ericloyd.

ericloyd commented 2 years ago

It may not be any more help than the wmic subsystem, but at least you get to learn a little PowerShell! :-)

gaguilard71 commented 2 years ago

OK, with power shell and its artifacts and methods it is not possible to uninstall in silent mode. And it is not possible to run the uninstall.exe which the installation set in C:\Program Files (x86)\Nagios\NCPA with a switch that allows the uninstallation in silent mode. Using the commnad uninstall-package directly not work. It requests the confirmation about directory and uninstall process... Then, I believe that an uninstaller with switches it is needed... nothing to do... Now i will need to find the way to uninstall all the agents from servers, and hopefully I will find the way to perform it work not manually....

gaguilard71 commented 2 years ago

OK.... Solved.... /S... yes!, with a capital S... bug?, on purspose?... well, finally, solved

gaguilard71 commented 2 years ago

use "c:\Program Files (x86)\Nagios\NCPA\uninstall.exe" /S