[main]
Title=Avira AntiVir Personal - FREE Antivirus
Description=Request only Internet connection :)
Selected=False
Level=5
Locked=false
Author=NightMan
Version=12
Contact=vistape@vistape.net
Date=06.06.2008
Credits=
Updates=
Download_Level=1

[process]
Echo,"Processing Avira AntiVir Personal..."
If,NotExistFile,"%ScriptDir%\Avira\avcenter.exe",Run,%ScriptFile%,Download
Echo,"Processing Avira AntiVir Personal..."
DirMake,"%TargetDir%\Program Files\Avira\AntiVir PersonalEdition Classic"
DirMake,"%TargetDir%\ProgramData\AntiVir PersonalEdition Classic\INFECTED"
DirMake,"%TargetDir%\ProgramData\AntiVir PersonalEdition Classic\LOGFILES"
DirMake,"%TargetDir%\ProgramData\AntiVir PersonalEdition Classic\REPORTS"
DirMake,"%TargetDir%\ProgramData\AntiVir PersonalEdition Classic\TEMP"
DirMake,"%TargetDir%\Windows\Inf"
DirMake,"%TargetDir%\Windows\System32\Drivers"
FileCopy,"%ScriptDir%\Avira\avipbb.inf","%TargetDir%\Windows\Inf"
FileCopy,"%ScriptDir%\Avira\ssmdrv.inf","%TargetDir%\Windows\Inf"
FileCopy,"%ScriptDir%\Avira\avipbb.sys","%TargetDir%\Windows\System32\Drivers"
FileCopy,"%ScriptDir%\Avira\ssmdrv.sys","%TargetDir%\Windows\System32\Drivers"
FileCopy,"%ScriptDir%\Avira\*.*","%TargetDir%\Program Files\Avira\AntiVir PersonalEdition Classic"
#
Add_Shortcut,StartMenu,"Antivirus","X:\Program Files\Avira\AntiVir PersonalEdition Classic\avcenter.exe","Avira AntiVir Personal"
AddAutoRun,"Avira AntiVir","X:\Program Files\Avira\AntiVir PersonalEdition Classic\avgnt.exe",/min,2
AddAutoRun,"Avira AntiVir Scheduler","x:\windows\system32\net.exe","start #$qAntiVirScheduler#$q",3
#
Run,%ScriptFile%,SaveSettings

[update]
Echo,"Updating Avira AntiVir Personal..."
Set,%ATMP%,%TempFolder%\Avira.tmp
DirMake,%ATMP%
WebGetIfNotExist,"http://dl.antivir.de/down/vdf/ivdf_fusebundle_nt_en.zip","%ATMP%\update.zip"
Echo,"Updating Avira AntiVir Personal..."
ShellExecute,Hide,#$q%Tools%\7z.exe#$q,"x -y #$q%ATMP%\update.zip#$q -o#$q%ScriptDir%\Avira#$q"
DirDelete,"%ATMP%"

[Download]
Echo,"Prepare Avira AntiVir Personal..."
Set,%ATMP%,%TempFolder%\Avira.tmp
DirMake,%ATMP%\tmp
DirMake,%ATMP%\tmp2
#WebGet,"FileToDownload","FileOnDisk"
WebGetIfNotExist,"http://dl1.avgate.net/down/windows/antivir_workstation_winu_en_h.zip","%ATMP%\antivir.zip"
Echo,"Prepare Avira AntiVir Personal..."
ShellExecute,Hide,#$q%Tools%\7z.exe#$q,"x -y #$q%ATMP%\antivir.zip#$q -o#$q%ATMP%\tmp#$q"
FileCopy,"%ATMP%\tmp\*.*","%ATMP%\tmp2"
DirDelete,"%ATMP%\tmp2\basic"
FileCopy,"%ATMP%\tmp\basic\*.*","%ATMP%\tmp2"
DirDelete,"%ATMP%\tmp2\2k"
DirDelete,"%ATMP%\tmp2\nt"
DirDelete,"%ATMP%\tmp2\vista64"
DirDelete,"%ATMP%\tmp2\xp64"
FileCopy,"%ATMP%\tmp2\xp\avgntflt.sys","%ATMP%\tmp2\avgntflt.sys"
DirDelete,"%ATMP%\tmp2\xp"
DirDelete,"%ATMP%\tmp"
DirMove,"%ATMP%\tmp2","%ScriptDir%\Avira"
DirDelete,"%ATMP%"
Run,%ScriptFile%,update

[SaveSettings]
RegHiveLoad,Tmp_setupreg_hiv,%RegSystem%
RegHiveLoad,Tmp_softreg_hiv,%RegSoftware%
RegHiveLoad,Tmp_default,%RegUser%
RegWrite,"HKLM",0x1,"Tmp_default\Software\Avira\AntiVir PersonalEdition Classic\SeenMessages","200806030001","20080603-20080603"
RegWrite,"HKLM",0x4,"Tmp_softreg_hiv\Avira\AntiVir PersonalEdition Classic","SecurityDetection","1"
RegWrite,"HKLM",0x1,"Tmp_softreg_hiv\Avira\AntiVir PersonalEdition Classic","Path","X:\Program Files\Avira\AntiVir PersonalEdition Classic\"
RegWrite,"HKLM",0x1,"Tmp_softreg_hiv\Avira\AntiVir PersonalEdition Classic","AppDataDirectory","X:\ProgramData\Avira\AntiVir PersonalEdition Classic\"
RegWrite,"HKLM",0x4,"Tmp_softreg_hiv\Avira\AntiVir PersonalEdition Classic","FilterType","1"
RegWrite,"HKLM",0x4,"Tmp_softreg_hiv\Avira\AntiVir PersonalEdition Classic","RootkitsInstalled","0"
RegWrite,"HKLM",0x4,"Tmp_softreg_hiv\Avira\AntiVir PersonalEdition Classic","WSC_Registered","1"
RegWrite,"HKLM",0x1,"Tmp_softreg_hiv\Avira\AntiVir PersonalEdition Classic","ProductID","4d4f0d684c4427a57c4a15a2306029312d2c6caf"
RegWrite,"HKLM",0x4,"Tmp_softreg_hiv\Avira\AntiVir PersonalEdition Classic","UpdateStarted","1212507933"
RegWrite,"HKLM",0x4,"Tmp_softreg_hiv\Avira\AntiVir PersonalEdition Classic","UpdateInProgress","0"
RegWrite,"HKLM",0x4,"Tmp_softreg_hiv\Avira\AntiVir PersonalEdition Classic","ProductUpdates","1"
RegWrite,"HKLM",0x4,"Tmp_softreg_hiv\Avira\AntiVir PersonalEdition Classic","LastUpdate","1212508014"
RegWrite,"HKLM",0x4,"Tmp_softreg_hiv\Avira\AntiVir PersonalEdition Classic","LastProductUpdateMessage","1212508019"
RegWrite,"HKLM",0x1,"Tmp_softreg_hiv\Microsoft\Windows\CurrentVersion\Run","avgnt","#$qX:\Program Files\Avira\AntiVir PersonalEdition Classic\avgnt.exe#$q /min"
RegWrite,"HKLM",0x1,"Tmp_softreg_hiv\X-AVCSD\Workstation\AntiVir PersonalEdition Classic","Name","Avira AntiVir Personal – Free Antivirus"
RegWrite,"HKLM",0x1,"Tmp_softreg_hiv\X-AVCSD\Workstation\AntiVir PersonalEdition Classic","Lang","EN"
RegWrite,"HKLM",0x4,"Tmp_softreg_hiv\X-AVCSD\Workstation\AntiVir PersonalEdition Classic","ID","57"
RegWrite,"HKLM",0x1,"Tmp_softreg_hiv\X-AVCSD\Workstation\AntiVir PersonalEdition Classic","Type","UNICODE"
RegWrite,"HKLM",0x1,"Tmp_softreg_hiv\X-AVCSD\Workstation\AntiVir PersonalEdition Classic","MasterKey","Software\Avira\AntiVir PersonalEdition Classic"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirScheduler","Type","16"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirScheduler","Start","2"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirScheduler","ErrorControl","1"
RegWrite,"HKLM",0x2,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirScheduler","ImagePath","#$qX:\Program Files\Avira\AntiVir PersonalEdition Classic\sched.exe#$q"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirScheduler","DisplayName","Avira AntiVir Personal – Free Antivirus Scheduler"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirScheduler","Group","NetworkProvider"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirScheduler","ObjectName","LocalSystem"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirScheduler","Description","Service to schedule Avira AntiVir Personal – Free Antivirus jobs and updates."
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirService","Type","16"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirService","Start","4"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirService","ErrorControl","1"
RegWrite,"HKLM",0x2,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirService","ImagePath","#$qX:\Program Files\Avira\AntiVir PersonalEdition Classic\avguard.exe#$q"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirService","DisplayName","Avira AntiVir Personal – Free Antivirus Guard"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirService","ObjectName","LocalSystem"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\AntiVirService","Description","Offers permanent protection against viruses and malware with the AntiVir search engine."
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\avgio","Type","1"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\avgio","Start","1"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\avgio","ErrorControl","1"
RegWrite,"HKLM",0x2,"Tmp_setupreg_hiv\ControlSet001\Services\avgio","ImagePath","\??\X:\Program Files\Avira\AntiVir PersonalEdition Classic\avgio.sys"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\avgio","DisplayName","avgio"
RegWrite,"HKLM",0x7,"Tmp_setupreg_hiv\ControlSet001\Services\avgio","DependOnService","46","6c","74","4d","67","72","00","00"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\avgio\Enum","0","Root\LEGACY_AVGIO\0000"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\avgio\Enum","Count","1"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\avgio\Enum","NextInstance","1"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\avgntflt","Type","2"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\avgntflt","Start","3"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\avgntflt","ErrorControl","1"
RegWrite,"HKLM",0x2,"Tmp_setupreg_hiv\ControlSet001\Services\avgntflt","ImagePath","\??\X:\Program Files\Avira\AntiVir PersonalEdition Classic\avgntflt.sys"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\avgntflt","DisplayName","avgntflt"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\avgntflt","Group","FSFilter Anti-Virus"
RegWrite,"HKLM",0x7,"Tmp_setupreg_hiv\ControlSet001\Services\avgntflt","DependOnService","46","6c","74","4d","67","72","00","00"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\avgntflt","Description","Avira AntiVir Personal – Free Antivirus mini-filter used for on-access scan to provide real-time antivirus security."
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\avgntflt\Instances","DefaultInstance","avgntflt Instance"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\avgntflt\Instances\avgntflt Instance","Altitude","320500"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\avgntflt\Instances\avgntflt Instance","Flags","0"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\avipbb","Type","1"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\avipbb","Start","1"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\avipbb","ErrorControl","1"
RegWrite,"HKLM",0x2,"Tmp_setupreg_hiv\ControlSet001\Services\avipbb","ImagePath","system32\DRIVERS\avipbb.sys"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\avipbb","DisplayName","avipbb"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\avipbb","Description","Avira's Driver for RootKit Detection"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\avipbb","DebugFlags","0"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\Eventlog\Application\H+BEDV AntiVir","CategoryMessageFile","X:\Program Files\Avira\AntiVir PersonalEdition Classic\guardevt.dll"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\Eventlog\Application\H+BEDV AntiVir","EventMessageFile","X:\Program Files\Avira\AntiVir PersonalEdition Classic\guardevt.dll"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\Eventlog\Application\H+BEDV AntiVir","TypesSupported","7"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\Eventlog\Application\H+BEDV AntiVir","CategoryCount","3"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\Eventlog\System\avgntflt","CategoryCount","1"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\Eventlog\System\avgntflt","TypesSupported","7"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\Eventlog\System\avgntflt","CategoryMessageFile","X:\Program Files\Avira\AntiVir PersonalEdition Classic\avgntflt.sys"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\Eventlog\System\avgntflt","EventMessageFile","X:\Program Files\Avira\AntiVir PersonalEdition Classic\avgntflt.sys"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\ssmdrv","Type","1"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\ssmdrv","Start","1"
RegWrite,"HKLM",0x4,"Tmp_setupreg_hiv\ControlSet001\Services\ssmdrv","ErrorControl","1"
RegWrite,"HKLM",0x2,"Tmp_setupreg_hiv\ControlSet001\Services\ssmdrv","ImagePath","system32\DRIVERS\ssmdrv.sys"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\ssmdrv","DisplayName","ssmdrv"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\ssmdrv","Description","Avira Snapshot Driver"
RegWrite,"HKLM",0x1,"Tmp_setupreg_hiv\ControlSet001\Services\ssmdrv\Products","Avira AntiVir Personal – Free Antivirus","X:\Program Files\Avira\AntiVir PersonalEdition Classic\"
RegHiveUnLoad,Tmp_setupreg_hiv
RegHiveUnLoad,Tmp_softreg_hiv
RegHiveUnLoad,Tmp_default

[Interface]
pTextFile1=eula.txt,1,6,10,79,489,217
pButton1="Download update",1,8,10,40,121,25,update

[InterfaceEncoded]
eula.txt=3Kb,4Kb

[EncodedFile-InterfaceEncoded-eula.txt]
lines=1
[encoded data, 4587 characters]

[EncodedFile-AuthorEncoded-logo-avira.jpg]
lines=1
[encoded data, 7204 characters]

[AuthorEncoded]
logo-avira.jpg=5Kb,7Kb
Logo=logo-avira.jpg

