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
<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>
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>
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>
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>