Author Topic: silent uninstall  (Read 27569 times)

0 Members and 1 Guest are viewing this topic.

afrontera

  • Guest
silent uninstall
« on: August 04, 2009, 12:49:02 PM »
Hi

im trying to do a .bat with silent uninstall. I found some lack of info for the aswclear.exe uninstaller. This is what im doing.

* Stoppìng services:

net stop "avast! Antivirus" /yes
net stop "avast! iAVS4 Control Service" /yes
net stop "avast! NetAgent" /yes
net stop "avast! WebScanner" /yes

* launch remove tool

c:\aswclear.exe /silent /prod


Now, the question is ... what is my product? If i launch the remove tool without switches, i can see it is detected as Managed Client. Well, this is the help for the remove command:


;You can download our aswclear.exe, avast! uninstall utility, which will remove it. Utility does accept following command line switches:
;/silent - no gui, but displays error messages, asks for reboot at end
;/verysilent - no gui, no message boxes, doesn't reboot
;/noreboot - don't reboot after uninstall
;/prod "product_code" - select product to uninstall:
;  "av_pro" - avast! 4 Home/Professional
;  "av_srv" - avast! 4 Server Edition
;  "bart" - BART CD Manager
;  "av_ker" - avast! for Kerio
;  "av_pda" - avast! PDA Edition
;  "av_32" - avast! 32
;  "av_net" - avast! Network client
;  "av_mgm" - avast! Distributed Network Manager

so, where is "Managed Client" product code? I try to launch with all the options, and nothing. Maybe im wrong this something. This is what i try:

#aswclear.exe /prod "av_mgm"

and

#aswclear.exe /silent /prod "av_mgm"

etc....I try all the switches, but allwais show the removal window. As i can understand, /silent /prod "your_product" will remove all and reboot.

Any ideas?


Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11818
    • AVAST Software
Re: silent uninstall
« Reply #1 on: August 04, 2009, 12:58:21 PM »
The managed client (NetClient) is av_net.
Btw, can't you simply run an uninstallation task from ADNM?

afrontera

  • Guest
Re: silent uninstall
« Reply #2 on: August 04, 2009, 01:03:37 PM »
Hi,

we dont have ADNM :p

BTW, there is any way to do the same with the uninstaller?

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11818
    • AVAST Software
Re: silent uninstall
« Reply #3 on: August 04, 2009, 01:07:26 PM »
I am not completely sure - but I think that if the self-defence module is enabled on the clients, it's not possible to silently uninstall them (without ADNM).

afrontera

  • Guest
Re: silent uninstall
« Reply #4 on: August 04, 2009, 01:13:35 PM »
mmm

i read about this on the forum. But, if i disable all the services... i think self-defence will be disabled.

I try with "av_net", but i get the same. Allwais get the same interface like the normal execution of the command....

afrontera

  • Guest
Re: silent uninstall
« Reply #5 on: August 04, 2009, 01:16:29 PM »
well. It works. The reboot part didnt work. It removes avast, but didnt reboot windows or prompt to do it. Now im looking for a console reboot of the pc.

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11818
    • AVAST Software
Re: silent uninstall
« Reply #6 on: August 04, 2009, 01:54:07 PM »
If the self-defence were enabled, you wouldn't be able to stop the service in the first place.
However, maybe it's disabled - unless you enable it manually.