Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Can you uninstall software with ocsinventory ?

Hi, I need to know if it is possible to uninstall software through ocsinventory with the application deployment function

in Administrative console by (160 points)

7 Answers

0 votes
You can run a command on a machine. If you can uninstall the software via command line you can also uninstall it with OCS.
by (1.5k points)
0 votes
Could you help me with an example?
by (160 points)
0 votes
hy, you just have to launch a batch script which has the correct command to silently install or uninstall the program. The silent install / uninstall parameters are differnet for each program.

Juist search for silent installation + program name

Install Gimp

start /wait gimp-2.8.22-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-

uninstall Gimp

"C:\Program Files\GIMP 2\uninst\unins000.exe" /VERYSILENT

i normaly create a batch file  like install.cmd (which ist just a textfile with .cmd extension) with the complete install command.

https://wiki.ocsinventory-ng.org/05.Deployment/Deploying-packages-or-executing-commands-on-client-hosts/#creatingbuild-the-package
by (24.4k points)
edited by
0 votes

Hi,

You can also make a batch to remove appx with wmic command

@echo off
wmic
product where name="Software_Name" call uninstall /nointeractive
by (5.7k points)
0 votes

>>You can also make a batch to remove appx with wmic command

wmic is a very  good for removing many programms, but there is no way to guarantee that no restart is happening. So please be patient

some prgramms are not "seen" by wmic -you can check by executing the following command

wmic product get name,version

by (24.4k points)
0 votes

@Sokatra : you're absolutely right, thanks

by (5.7k points)
0 votes

hy, i want to recomend this amazing software, which solves the problem that wmic uninstalls tends to rebooting the system (for exampling Libreoffice)

https://home.configmgrftw.com/uninstall-software-en-masse/

The Solution to Uninstall Software En Masse

It isn't perfect, but you can unistall software without reboot.
Problem is that cpu-z or 7-zip ask for uninstall confirmation.
but i am sure this can be changed in the script.
usage
cscript.exe Uninstall-Software.vbs /product:"Adobe Reader" /uninstall
Kind regards

by (24.4k points)
 
Powered by Question2Answer
...