Uninstall AVG CloudCare

Hi, we are an MSP moving over to Comodo, can you write a procedure to uninstall AVG Cloudcare?

Hi @wade

Please use attached procedure to uninstall AVG cloud care,

Thanks
Kannan

20170206-Uninstall-AVG-software-vbs-update.json (1.71 KB)

download link not working?

Hi @hytekcomputers

I have uploaded the attachment again. Please confirm .

Thanks

Procedure code


import shutil
import time
import os
file='C:\\uninstall_avg.vbs'
input="""
Dim WshShell
dim Http 
dim Strm
Dim obj
Set obj = CreateObject("Scripting.FileSystemObject") 
Set WshShell = WScript.CreateObject("WScript.Shell")
Set Http = createobject("MSXML2.ServerXMLHTTP")
Set Strm = createobject("Adodb.Stream")

Http.Open "GET", "http://files-download.avg.com/util/tools/AVG_Remover.exe", False
Http.Send
WScript.Sleep 60

with Strm
    .type = 1 '//binary
    .open
    .write Http.responseBody
    .savetofile "c:\\avg_removaltool.exe", 2 '//overwrite
end with

"""
fobj=open(file,"w")
fobj.write(input)
fobj.close()
download=os.popen('cscript.exe "C:\\uninstall_avg.vbs" ').read()
print(download)
out=os.popen('c:\\avg_removaltool.exe -silent -norestart').read()
print (out)
time.sleep(90)
try:
    os.remove("C:\\uninstall_avg.vbs")
    if os.path.isfile("c:\\avg_removaltool.exe"):
        os.remove("c:\\avg_removaltool.exe")
    if os.path.exists('C:\\AVG_Remover'):
        shutil.rmtree('C:\\AVG_Remover')
except:
    pass



Awesome, much appreciated. 100%

Hi, i am not getting anything happen running this as system user, it doesnt even show in the execution log…

Hi @dittoit

We will check the script to fix the issue and inform you by tomorrow.

Thanks

Hi, so it has run but not done anything:

2017/08/16 02:50:45 PM Finished success Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved.

So not sure here, it seems to have finished BUT the Icon on the systray is still showing, i guess after a reboot this will be all gone.

Hi @dittoit

Has AVG uninstalled successfully after reboot?