Use the official avastclear.exe with command-line arguments. 1. Standard Uninstall via AvastSetup.exe (MSI-based) If you have the original installer or the AvastSetup.exe (usually located in C:\Program Files\Avast Software\Setup ), you can run: Command: AvastSetup.exe /uninstall or
Here is the full technical report on performing a silent or unattended uninstallation of Avast Antivirus using command-line parameters. Avast provides a dedicated uninstall utility ( AvastClear.exe ) for tough cases, but the standard uninstaller ( Avast Uninstall Utility or aswClear.exe ) also supports command-line switches. For standard MSI-based uninstallation via the Windows Installer, you can use AvastSetup.exe with specific flags. avast uninstall command line
@echo off echo Stopping Avast services... net stop "Avast Antivirus" /y >nul 2>&1 echo Downloading Avast Clear... curl -o %TEMP%\avastclear.exe https://files.avast.com/iavs9x/avastclear.exe Use the official avastclear
AvastSetup.exe /REMOVE=TRUE /SILENT | Parameter | Effect | |-----------|--------| | /uninstall | Initiates removal (may show GUI) | | /silent or /verysilent | Suppresses user prompts | | /norestart | Prevents reboot after uninstall | | /nolog | Disables logging | | /log="path" | Saves log to specified file | | /REMOVE=TRUE | MSI standard removal flag | | /NORESTART=TRUE | MSI no-restart flag | Avast provides a dedicated uninstall utility ( AvastClear
echo Cleaning leftovers... rd /s /q "C:\Program Files\Avast Software" 2>nul rd /s /q "%ProgramData%\Avast Software" 2>nul
echo Running silent uninstall... %TEMP%\avastclear.exe --uninstall --silent --no-restart --remove-data