AVG Free Edition
This is a silent installer for the free version of AVG, which can be downloaded from http://free.avg.com/.
The silent installer for the professional edition is somewhat similar: AVG
AVG 2016
Download the full offline installer from http://www.avg.com/de-de/download.prd-afh-free
Warning: /Langid=1031
means 'German'
<packages
xmlns:xsi="http://www.wpkg.org/packages"
xsi:noNamespaceSchemaLocation="../xsd/packages.xsd" >
<package id="avg"
name="AVG Antivirus 2016"
revision="%pkg_version%"
reboot="false"
priority="500">
<variable name="year" value="2016" />
<variable name="display" value="%year%.7.7226" />
<variable name="shortversion1" value="694" />
<variable name="shortversion2" value="693" />
<variable name="pkg_version" value="%year%-19" />
<variable name="update" value="%software%\AVG\Update" />
<variable name="pkg_setup" value="%software%\AVG\AVG_Antivirus_Free_x86_%shortversion1%.exe" />
<variable architecture="x64" name="pkg_setup" value="%software%\AVG\AVG_Antivirus_Free_x64_%shortversion2%.exe" />
<variable name="progfile" value="%PROGRAMFILES%" />
<variable architecture="x64" name="progfile" value="%PROGRAMFILES(x86)%" />
<check type="uninstall" condition="versiongreaterorequal" path="AVG" value="%display%" />
<install cmd='"%pkg_setup%" /Silent=true /Langid=1033 /InstallToolbar=false /ChangeBrowserSearchProvider=false /InstallSidebar=false /ParticipateProductImprovement=false /DontRestart /DisableScan /KillProcessesIfNeeded /FEG '>
<exit code="0" />
<exit code="3010" />
</install>
<!-- Vista/Windows7 Desktop Shortcut remove -->
<install cmd='%COMSPEC% /c if exist "%AllUsersProfile%\Desktop\AVG Protection.lnk" del /q "%AllUsersProfile%\Desktop\AVG Protection.lnk"'>
<exit code="any" />
</install>
<install cmd='%COMSPEC% /c if exist "%Public%\Desktop\AVG Protection.lnk" del /q "%Public%\Desktop\AVG Protection.lnk"' >
<exit code="any" />
</install>
<upgrade cmd='"%progfile%\AVG\Av\avgmfapx.exe" /AppMode=UPDATE /source=folder /pri=3 /path="%update%"'>
<exit code="any" />
</upgrade>
<remove cmd='%COMSPEC% /c if exist "%progfile%\AVG\Av\avgmfapx.exe" "%progfile%\AVG\Av\avgmfapx.exe" /AppMode=SETUP /UILevel=silent /Uninstall /UDS=1 /DontRestart'>
<exit code="any" />
</remove>
</package>
</packages>
This is a silent installer for the free version of AVG, which can be downloaded from http://free.avg.com/.
The silent installer for the professional edition is somewhat similar: AVG
AVG 2015
Download the full offline installer from http://free.avg.com/de-de/download-free-all-product
Warning: SelectedLanguage=1031
means 'German'
<packages
xmlns:xsi="http://www.wpkg.org/packages"
xsi:noNamespaceSchemaLocation="../xsd/packages.xsd" >
<package id="avg"
name="AVG Antivirus 2015"
revision="%VERSION%"
reboot="false"
priority="500">
<variable name="YEAR" value="2015" />
<variable name="DISPLAY" value="%YEAR%.0.5645" />
<variable name="SHORTVERSION" value="5645a8758" />
<variable name="VERSION" value="%SHORTVERSION%-0" /><!-- Counter for manually Updates -->
<variable name="SETUP" value="%SOFTWARE%\AVG\avg_free_x86_all_%year%_%shortversion%.exe" />
<variable architecture="x64" name="SETUP" value="%SOFTWARE%\AVG\avg_free_x64_all_%year%_%shortversion%.exe" />
<variable name="UPDATE" value="%SOFTWARE%\AVG\Update" />
<variable name="PROGRAMFILES" value="%PROGRAMFILES%" />
<variable architecture="x64" name="PROGRAMFILES" value="%PROGRAMFILES(x86)%" />
<check type="uninstall" condition="versiongreaterorequal" path="AVG %YEAR%" value="%DISPLAY%" />
<install cmd='"%SETUP%" /AppMode=setup /UILevel=silent /InstallToolbar=0 /ChangeBrowserSearchProvider=0 /SelectedLanguage=1031 /InstallSidebar=0 /ParticipateProductImprovement=0 /DontRestart /DisableScan /KillProcessesIfNeeded /FEG '>
<exit code="0" />
<exit code="3010" />
</install>
<!-- Windows XP Desktop Shortcut remove-->
<install cmd='%COMSPEC% /c if exist "%AllUsersProfile%\Desktop\AVG %YEAR%.lnk" del /q "%AllUsersProfile%\Desktop\AVG %YEAR%.lnk"'>
<exit code="any" />
</install>
<!-- Vista/Windows7 Desktop Shortcut remove -->
<install cmd='%COMSPEC% /c if exist "%Public%\Desktop\AVG %YEAR%.lnk" del /q "%Public%\Desktop\AVG %YEAR%.lnk"' >
<exit code="any" />
</install>
<upgrade cmd='"%PROGRAMFILES%\AVG\AVG%YEAR%\avgmfapx.exe" /AppMode=UPDATE /source=folder /pri=3 /path="%UPDATE%"' />
<remove cmd='"%PROGRAMFILES%\AVG\AVG%YEAR%\avgmfapx.exe" /AppMode=SETUP /UILevel=silent /Uninstall /UDS=1' />
</package>
</packages>
AVG 2012
Download the full offline installer from http://free.avg.com/ww-en/download.prd-afh.line-2012#tba1. Uncompress and edit the mfaconf.txt
file:
AppMode=setup
ProductType=Free
LicenseKey=AAAAA-BBBBB-CCCCC-DDDDD-EEEEE-FFFFF
UILevel=Silent
InstallToolbar=0
InstallSidebar=0
SelectedLanguage=1034
DisableScan
FEG
Warning: SelectedLanguage=1034
means 'Spanish'
<packages
xmlns:xsi="http://www.wpkg.org/packages"
xsi:noNamespaceSchemaLocation="../xsd/packages.xsd" >
<package id="avg2012"
name="AVG Antivirus 2012"
revision="%PKG_VERSION%"
reboot="false"
priority="10">
<variable name="PKG_VERSION" value="%shortversion%-0" />
<variable name="shortversion" value="2127a4918" />
<variable name="PKG_SETUP" value="%SOFTWARE%\Antivirus\AVG\2012-%shortversion%\x86\setup.exe" />
<variable architexture="x64" name="PKG_SETUP" value="%SOFTWARE%\Antivirus\AVG\2012-%shortversion%\x64\setup.exe" />
<variable name="PKG_MSI" value="%SOFTWARE%\Antivirus\AVG\2012-%shortversion%\x86\AVGx86.msi" />
<variable architexture="x64" name="PKG_MSI" value="%SOFTWARE%\Antivirus\AVG\2012-%shortversion%\x64\AVGx64.msi" />
<check type="uninstall" condition="exists" path="AVG 2012" />
<install cmd='%PKG_SETUP%' />
<upgrade include="install" />
<remove cmd='msiexec /qn /x %PKG_MSI%' />
</package>
</packages>
AVG 9
For AVG Free v9. First download the full installer from this page: http://free.avg.com/ww-en/download.prd-afg#tba2. In this case it was avg_free_stf_all_90_851a3009.exe.
The options can be found in http://aa-download.avg.com/filedir/doc/NETWORK_GROUP/AVG_Internet_Security_Network/avg_asb_uma_en_90_1.pdf section 11.11. List of AVG Setup Parameters.
In this example the language is Dutch, a log is created after setup has run, show no interface, Quit if AVG is already installed (in case the wpkg check fails), do not install the toolbar and disable default scan plans after installation.
The removal is still interactive so that needs fixing. Also I didn't find a switch to perform an update the virus definition.
<package id="avg" name="AVG Free antivirus 9.0" reboot="false" revision="1" priority="0">
<check type="uninstall" condition="exists" path="AVG Free 9.0" />
<install cmd="%SOFTWARE%\avg\avg_free_stf_all_90_851a3009.exe /LANGID 0x413 /LOG c:\avgsetup.log /HIDE /QUIT_IF_INSTALLED /NOAVGTOOLBAR /DISABLE_SCAN" />
<remove cmd='"C:\Program Files\AVG\AVG9\setup.exe" /UNINSTALL' />
</package>
AVG 8.5
For AVG Free v8.5. This one has removed the annoying plugins for Firefox and IE.
<package
id="avg"
name="free avg antivirus 8.5"
reboot="true"
revision="850354"
priority="5">
<check type="uninstall" condition="exists" path="AVG Free 8.5" />
<install cmd="%SOFTWARE%\avg\avg_free_stf_en_85_374a1564.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED /REMOVE_FEATURE fea_AVG_SafeSurf /REMOVE_FEATURE fea_AVG_SafeSearch" />
<remove cmd="" />
</package>
AVG 8.0
For AVG Free version 8.0. Tip: Revision must match revisions exe name.
<packages>
<package
id="avg"
name="free avg antivirus 8.0"
reboot="true"
revision="8023701428"
priority="5">
<check type="uninstall" condition="exists" path="AVG Free 8.0" />
<install cmd="%SOFTWARE%\AVG\avg_free_stf_en_8_237a1428.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED" />
<remove cmd="" />
</package>
</packages>
AVG 7.5
<packages>
<package id="avg" name="free avg antivirus" reboot="true" revision="1" priority="5">
<check type="uninstall" condition="exists" path="AVG 7.5" />
<install cmd="%SOFTWARE%\avg\avg75free.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED" />
<remove cmd="" />
</package>
</packages>