This is a brief but foolproof tutorial to create localized switchless installers for Avast. First you'll have to download Avast in your preferred language. Mind that you need the offline installer; get "avast! Home Edition - [Your Language]". The setup files are about 37MB each.
Do not download the "Universal installation file", because this is a web-based installer.
Second, you'll have to order your free registration key. If you do not register avast, it will work for 60 days only. Avast stores it registration information in the registry location below (export this key to license.reg):
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\ALWIL Software\Avast\4.0]
"RegData"=hex:ee,xx,xx,xx,xx,xx,xx,xx


Select the General tab, give the archive a name (1), and check "Create SFX archive" (2).
Now select the Comment tab, and paste the code below in the "Enter a command manually" field (3):
Code: Select all
;The comment below contains SFX script commands
Title=avast! AntiVirus
Text
{
Installing avast! AntiVirus, please wait...
}
TempMode
Overwrite=1
Silent=1
Setup=Avast481356.exe /SILENT /SUPPRESSMSGBOXES /NORESTART /SP-
Setup=regedit.exe /s license.reg
But I want an addon?!
If you want to make an addon of the Avast SFX, here is how to do it:
- If you followed the steps above you'll have an SFX named "Avast481356.exe" in "C:\Temp".
- Make a new folder named "svcpack" in "C:\Temp" and move "Avast481356.exe" in there.
- Copy/paste the code below to notepad and save it in "C:\Temp" as "entries_avast.ini":
Code: Select all
[General]
Title=avast Home Edition
Version=4.8.x
BuildDate=2009/11/17
Website=http://www.avast.com/
[EditFile]
I386\SVCPACK.INF,SetupHotfixesToRun,AddProgram
[AddProgram]
Avast481356.exe
- Select "Add to archive", name it "avast_4.8.x_addon.rar" for example, and click OK.