Help - Search - Members - Calendar
Full Version: AVG Anti-Virus Silent
MSFN Forums > Unattended Windows Discussion & Support > Application Installs
Pages: 1, 2, 3

   


Google Internet Forums Unattended CD/DVD Guide
muiz
QUOTE (muiz @ May 20 2006, 02:50 PM) *
Got it working now :

CODE
REG ADD %KEY%\005 /VE /D "avg" /f
REG ADD %KEY%\005 /V 1 /D "%CDROM%\Software\avg\avgsetup.exe /script_file %CDROM%\Software\AVG\avgsetup.ini" /f


Ini looks like this :

CODE
HIDE:
DONT_START_APPS:
NO_WELCOME:
NO_AVGW_STARTUP:
QUIT_IF_INSTALLED:
LOG: "C:\AVG7INST.LOG"
TARGET_DIR: "C:\Program Files\AVG7"
NAME: "your name"
COMPANY: "your company"
LICNO: "xx-xxxxxx-xx-xxx-xxxxx-xxx-xxxx"


Place AVGSETUP.INI in the AVG folder.

works with new version to
Jeroeneke
I'm having a strange problem when installing AVG Free. It doesn't get installed. I did a logged install, maybe somebody can help me. (see attachment).

It works when installing attended (same time) or directly after my software installation (without a reboot).

BTW, I'm using XPlode to install my software, could that be something ?
also, I run the installation at first login (not directly after the boot, but I go to the instalaltion folder myself)

EDIT: Tested it after a reboot by running XPlode and installing AVG only, that works! Will test some other stuff later.

nvm, everything works now, this is what I have to do: Install XP, let XP (automatically) boot, then reboot, and then running my unattended installation
larciel
followed your steps, muiz, and got 'invalid switch' -"/f" . ;P
argimiro
This is for AVG free, downloaded mid september '06, installing off the back of a winxp pro unattended install cd & doing it the vbscript way posted by Schadenfroh

file ver avg71free_405a791.exe
http://free.grisoft.com/doc/5390/lng/us/tpl/v5#avg-free

with 4 update .bin files

u7avi804sq.bin
u7f4053y.bin
u7iavi460sq.bin
u7lx30.bin
http://free.grisoft.com/doc/24/lng/us/tpl/v5

It will unattendedly install then update to the bin files above (or whatever .bin's are supplied & specified in the scripts - dunno, maybe one could supply the bin files on a seperate cd to be a bit more flexible & up to date whilst keeping the rest of an unattended xp cd 'the same' from month to month

(it doesn't go online and grab any updates between when you got the bin files last, and when you run the install cd)

modify paths to your requirement & hope it helps someone. works ok on my pc but your mileage etc

respect to Schadenfroh cool.gif my eyes lit up when i saw what he done there with vbscript


go.bat
''''''''''''''''

CODE
@echo off
cls

rem E: drive is just my 2nd hard drive where I was playing with this
rem I think you must modify it to the proper path for your unattended xp cd!

rem We slap the update files on the desktop so it is easy to point AVG at them later on..

echo Copy update file 1 to desktop
copy "E:\build custom xp disk\updated xp\xp\$OEM$\$1\Install\Applications\avg19sep06\u7avi804sq.bin" "%userprofile%\desktop\u7avi804sq.bin"
echo Copy update file 2 to desktop
copy "E:\build custom xp disk\updated xp\xp\$OEM$\$1\Install\Applications\avg19sep06\u7f4053y.bin" "%userprofile%\desktop\u7f4053y.bin"
echo Copy update file 3 to desktop
copy "E:\build custom xp disk\updated xp\xp\$OEM$\$1\Install\Applications\avg19sep06\u7iavi460sq.bin" "%userprofile%\desktop\u7iavi460sq.bin"
echo Copy update file 4 to desktop
copy "E:\build custom xp disk\updated xp\xp\$OEM$\$1\Install\Applications\avg19sep06\u7lx30.bin" "%userprofile%\desktop\u7lx30.bin"

echo now begin avg install

start /wait keypresses.vbs

echo avg now installed. killing avg processes
tskill avgwb
tskill avgupsvc
tskill avgcc
tskill avgemc
tskill avgamsvr

echo finally delete update files off the desktop theyre no longer needed
del "%userprofile%\desktop\*.bin"



keypresses.vbs
''''''''''''''''''''''''''''''

CODE
'run the avg installer
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("avg71free_405a791.exe")

'startup timed at 10 secs - add 4 for good luck
WScript.Sleep 14000

WshShell.SendKeys "{ENTER}"

'happens in a flash - give 2 seconds.
WScript.Sleep 2000

WshShell.SendKeys "{LEFT}"

'happens in a flash - give 2 seconds.
WScript.Sleep 2000

WshShell.SendKeys "{ENTER}"

'happens in a flash - give 2 seconds.
WScript.Sleep 2000

WshShell.SendKeys "{LEFT}"

'happens in a flash - give 2 seconds.
WScript.Sleep 2000

WshShell.SendKeys "{ENTER}"

'this takes about 4 secs - give 8 for luck
WScript.Sleep 8000

WshShell.SendKeys "{TAB}"

'happens in a flash - give 2 seconds.
WScript.Sleep 2000

WshShell.SendKeys "{TAB}"

'happens in a flash - give 2 seconds.
WScript.Sleep 2000

WshShell.SendKeys "{ENTER}"

'happens in a flash - give 2 seconds.
WScript.Sleep 2000

WshShell.SendKeys "{ENTER}"

'maybe dawdles a bit here - give 5 secs, safe side
WScript.Sleep 5000

'initiate main install
WshShell.SendKeys "{ENTER}"

'install timed at 25 secs. give it 45, safe side
'too long isn't a problem here as it just ends with a 'static'
'OK button, which doesnt threaten to disappear
WScript.Sleep 45000

WshShell.SendKeys "{ENTER}"

'took 7 secs for 'congratulations' to appear.. give it 15
WScript.Sleep 15000

WshShell.SendKeys "{ENTER}"

'happens in a flash - give 2 seconds.
WScript.Sleep 2000

WshShell.SendKeys "{LEFT}"

'happens in a flash - give 2 seconds.
WScript.Sleep 2000

'this asks to update
WshShell.SendKeys "{ENTER}"

'happens in a flash - give 2 seconds.
WScript.Sleep 2000

'move highlight to folder button. now 'enter' doesnt work
'here for some reason, but we move the focus to the
'correct button anyhow, just in case
WshShell.SendKeys "{TAB}"

'happens in a flash - give 2 seconds.
WScript.Sleep 2000

'here we say f for folder, not internet update
'we use the keyboard shortcut because 'enter' doesnt seem to
'operate the button correctly here, even though
'the correct button has focus
WshShell.SendKeys "f"

'1 1/2 secs for browse box to appear. give 5 secs
WScript.Sleep 5000

'now folder browse dialog appears.
'we go up-up-up to the desktop where we
'batch-file loaded the updates earlier
'extra 'up's dont matter but we never know whatll be in there?
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"

'throw in a 2 second pause for uh, luck
WScript.Sleep 2000

WshShell.SendKeys "{TAB}"

'happens in a flash - give 2 seconds.
WScript.Sleep 2000

WshShell.SendKeys "{ENTER}"

'bit of a dawdle, give it 5 sec
WScript.Sleep 5000

'this one initiates the update.
WshShell.SendKeys "{ENTER}"

'the update was timed at 18 secs, after which
'the ok button was present for 30 secs.
'so try and hit it amidships at 18 + 15 = 33 secs?

WScript.Sleep 33000

WshShell.SendKeys "{ENTER}"

'4 sec delay.. say 8 for good measure

WScript.Sleep 8000

'now, 7 quick 'enter's to take us out

WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 2000
WshShell.SendKeys "{ENTER}"

'but this leaves us with avg hanging around the place
'so just kill it back in the batch file with tskill x 5 processes.


other files in same folder as the 2 scripts = the avg installer and the 4 update bins





Thanks for the info - smashin' forum smile.gif



[edit]
updated version - fixed a few problems on older machines

CODE
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("%systemdrive%\Install\Applications\avg19sep06\avg71free_405a791.exe")

'using explicit keys rather than 'enter' all the time
'as apps have nasty habit of moving buttons around

'startup timed at 10 secs on slow machine
' - add 5 for good luck
WScript.Sleep 15000

'first dialog - n for next

WshShell.SendKeys "{n}"
WScript.Sleep 2000

'accept license 1
WshShell.SendKeys "{LEFT}"
WScript.Sleep 2000
WshShell.SendKeys "{a}"
WScript.Sleep 2000

'accept license 2
WshShell.SendKeys "{LEFT}"
WScript.Sleep 2000
WshShell.SendKeys "{a}"

'checking system state
'timed at 40 sec on a slow machine
'so give 50s to be on safe side
WScript.Sleep 50000

'select standard install
WshShell.SendKeys "{s}"
WScript.Sleep 2000
WshShell.SendKeys "{TAB}"
WScript.Sleep 2000
WshShell.SendKeys "{TAB}"
WScript.Sleep 2000
WshShell.SendKeys "{n}"
WScript.Sleep 2000

'confirmation next
WshShell.SendKeys "{n}"
WScript.Sleep 2000

'summary (button=finish)
WshShell.SendKeys "{f}"

'install timed at 25 secs. give it 50, safe side
'too long isn't a problem here as it just ends with a 'static'
'OK button, which doesnt threaten to disappear
'add. info. -timed on a slow machine at 32s
WScript.Sleep 50000

'once done its 'o' for okay
WshShell.SendKeys "{o}"

'took 7 secs for 'congratulations' to appear.. give it 15
WScript.Sleep 15000

WshShell.SendKeys "{>}"
WScript.Sleep 2000
WshShell.SendKeys "{RIGHT}"
WScript.Sleep 2000
WshShell.SendKeys "{RIGHT}"
WScript.Sleep 2000
WshShell.SendKeys "{RIGHT}"
WScript.Sleep 2000
WshShell.SendKeys "{LEFT}"
WScript.Sleep 2000
'this asks to update
WshShell.SendKeys "{ENTER}"

WScript.Sleep 2000

'folder or internet update?
WshShell.SendKeys "{RIGHT}"
WScript.Sleep 2000
WshShell.SendKeys "{RIGHT}"
WScript.Sleep 2000
WshShell.SendKeys "{LEFT}"
WScript.Sleep 2000
'this asks to update
WshShell.SendKeys "{f}"

'1 1/2 secs for browse box to appear. give 5 secs
WScript.Sleep 5000

'now folder browse dialog appears.
'we go up-up-up to the desktop where we
'batch-file loaded the updates earlier
'extra 'up's dont matter but we never know whatll be in there?
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"
WScript.Sleep 600
WshShell.SendKeys "{UP}"

'throw in a 2 second pause for luck
WScript.Sleep 2000

WshShell.SendKeys "{TAB}"

'happens in a flash - give 2 seconds.
WScript.Sleep 2000

WshShell.SendKeys "{ENTER}"

'bit of a dawdle, give it 5 sec
WScript.Sleep 5000

'this one initiates the update.
WshShell.SendKeys "{y}"

'update will take anything from 15 - 40 secs.
'it is followed by an ok dialog which lasts for 30 seconds
'before returning you to a next button.
'so max time = 40 sec + 30 sec + say 10 sec grace = 80s

WScript.Sleep 80000

'grab focus when avg reappears
WshShell.AppActivate("AVG Free - First Run")
WScript.Sleep 2000

'now, 7 keypresses to take us out

WshShell.SendKeys "{>}"
WScript.Sleep 2000
WshShell.SendKeys "{>}"
WScript.Sleep 2000
WshShell.SendKeys "{>}"
WScript.Sleep 2000
WshShell.SendKeys "{>}"
WScript.Sleep 2000
WshShell.SendKeys "{>}"
WScript.Sleep 2000
WshShell.SendKeys "{>}"
WScript.Sleep 2000
WshShell.SendKeys "{ENTER}"

'but this leaves us with avg hanging around the place
'so just kill it back in the batch file with tskill x 5 processes.
ZileXa
Damnz.. can't AVG FREE 7.5 be installed silently with just a switch and perhaps a few taskkill commands afterwards?
I use Kaspersky... but not everyone is paying for A/V so I'd like to put this free A/V to my cd..

EDIT:

Here you go, for Grisoft AVG anti-virus FREE silent install, simply use these switches:
/HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED


source:
http://forums.whirlpool.net.au/forum-repli...cfm/632926.html
blinkdt
I've noticed that I need to run update several times to fully update AVG Free, installing priority updates and optional updates along the way. So I modified my earlier AutoIt script to loop through the update process until complete:
CODE
;-----install AVG Free
RunWait(@ScriptDir & '\avg75free_428a818.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED')
FileDelete(@DesktopCommonDir & '\AVG*.lnk')
FileCreateShortcut(@ProgramFilesDir & '\Grisoft\AVG Free\avgw.exe', @ProgramsCommonDir & '\Accessories\System Tools\AVG Free.lnk')
DirRemove(@ProgramsCommonDir & '\AVG Free Edition', 1)
;-----update AVG Free
Update()
While 1
  If WinExists('AVG Free Edition Update Selection', 'Please select update') Then
    ControlClick('AVG Free Edition Update Selection', 'Please select update', 'Button2')
  ElseIf WinExists ('AVG Free Edition', 'Update was successfully finished') Then
    ControlClick('AVG Free Edition', 'Update was successfully finished', 'Button1')
    Update()
  Else
    If WinExists('Update AVG', 'An error occurred when trying to connect') Then
        ControlClick('Update AVG', 'An error occurred when trying to connect', 'Button1')
    ElseIf WinExists('AVG Update', 'Your AVG program already has the latest updates installed') Then
        ControlClick('AVG Update', 'Your AVG program already has the latest updates installed', 'Button1')
        Exit
    EndIf
  EndIf
    Sleep(40)
WEnd
    
Func Update()
  $var = Ping('guru.grisoft.com')
  If $var Then
    Run(@Programfilesdir & '\Grisoft\AVG Free\avginet.exe')
  Else
    Exit
  EndIf
EndFunc

In my case, the update process runs three times and the program is fully up-to-date following the unattend routine. Nice.
MAVERICKS CHOICE
Nice script there blinkdt, I might modify it for my personal use as I prefer to update after all installations are completed.
hmaster10
QUOTE (muiz @ Jun 4 2006, 04:57 AM) *
QUOTE (muiz @ May 20 2006, 02:50 PM) *
Got it working now :

CODE
REG ADD %KEY%05 /VE /D "avg" /f
REG ADD %KEY%05 /V 1 /D "%CDROM%\Software\avg\avgsetup.exe /script_file %CDROM%\Software\AVG\avgsetup.ini" /f


Ini looks like this :

CODE
HIDE:
DONT_START_APPS:
NO_WELCOME:
NO_AVGW_STARTUP:
QUIT_IF_INSTALLED:
LOG: "C:\AVG7INST.LOG"
TARGET_DIR: "C:\Program Files\AVG7"
NAME: "your name"
COMPANY: "your company"
LICNO: "xx-xxxxxx-xx-xxx-xxxxx-xxx-xxxx"


Place AVGSETUP.INI in the AVG folder.

works with new version to

What are additional switches I can use? like to be able to select only the components I want to be installed?
hmaster10
Also using the AVG_Admin, how can I specify in the .INI that AVG should update from file after installation?
Alex2005
Hi. I installed AVG 7.5 silent with INI file , but i can,t find out how to install it with firewall, because firewall by default isn't installed.
Please help!

My INI file:
CODE
HIDE:
DONT_START_APPS:
NO_WELCOME:
NO_AVGW_STARTUP:
QUIT_IF_INSTALLED:
LOG: "C:\AVG7INST.LOG"
TARGET_DIR: "C:\Program Files\AVG7"
NAME: "your name"
COMPANY: "your company"
LICNO: "xx-xxxxxx-xx-xxx-xxxxx-xxx-xxxx"
hmaster10
QUOTE (Alex2005 @ Feb 10 2007, 02:48 PM) *
Hi. I installed AVG 7.5 silent with INI file , but i can,t find out how to install it with firewall, because firewall by default isn't installed.
Please help!

My INI file:
CODE
HIDE:
DONT_START_APPS:
NO_WELCOME:
NO_AVGW_STARTUP:
QUIT_IF_INSTALLED:
LOG: "C:\AVG7INST.LOG"
TARGET_DIR: "C:\Program Files\AVG7"
NAME: "your name"
COMPANY: "your company"
LICNO: "xx-xxxxxx-xx-xxx-xxxxx-xxx-xxxx"


you can use the avg_admin, which is free & downloadable from avg site.
Triel
I am not sure why, but I could not get the Admin to work. First it told me that my installer would not work, so I downloaded the network version of my software. Then it told me my key was wrong. Thats funny since it installs fine without the Admin.

Anyway, I am not very good with Runonce or Autoit so i messed with switches till I found what I needed. Here is how I did it.

Created my avgsetup.ini file with Notepad.

CODE
HIDE:
DONT_START_APPS:
NO_WELCOME:
NO_AVGW_STARTUP:
QUIT_IF_INSTALLED:
LOG: "C:\AVG7INST.LOG"
TARGET_DIR: "C:\Program Files\AVG7"
NAME: "your name"
COMPANY: "your company"
LICNO: "xx-xxxxxx-xx-xxx-xxxxx-xxx-xxxx"



From what I remember, you need to use quotes anytime you use a switch and follow it with information.

Like this

CODE
/script_file "D:\PROGRAMS\$Done$\AVG\avgsetup.ini"


Not sure why, but having quotes around it caused it to fail. AVG showed a setup failure do to a parse error. So, I just removed the quotes like this:

CODE
/script_file D:\PROGRAMS\$Done$\AVG\avgsetup.ini


and it installed just like the ini told it to. Now this is only tested through the RUN cmd in WinXP. I am getting ready to test it in my install.


UPDATE

Ok, in a Unattended installation this method failed. Now I can not even get it to work like it did. I will have to do more testing to find out what I most likely forgot or screwed up.

UPDATE

Ok, now it works! Seems that you can not have any spaces in the file name at all. I had /script_file C:\Installs\Applications\AVG7.5 Anti Malware\avgsetup.ini and it failed. But, when I changed the folder name to /script_file C:\Installs\Applications\AVG75AntiMalware\avgsetup.ini it went on and did a silent install. So, I have proven it to work on WinXPPro. If others can try this on other versions just to make sure it does exactly work then we have a better way to install AVG Pro.
cypher_soundz
here is the ini for people who use AVG + Firewall

CODE
HIDE:
DONT_START_APPS:
NO_WELCOME:
NO_AVGW_STARTUP:
QUIT_IF_INSTALLED:
LICNO: "xxxxxxxxxxxxxxxxxxxxxxxxxxx"
ADD_FEATURE: fea_AVG_ResidentShield
ADD_FEATURE: fea_AVG_Firewall
ADD_FEATURE: fea_AVG_Bat_plugin
ADD_FEATURE: fea_AVG_Exchange_plugin
ADD_FEATURE: fea_AVG_Eudora_plugin
ADD_FEATURE: fea_AVG_EMC
ADD_FEATURE: fea_AVG_Office_2000_plugin


for differnt langs add desired:

CODE
ADD_FEATURE: fea_AVG_Language_CZ
ADD_FEATURE: fea_AVG_Language_GE
ADD_FEATURE: fea_AVG_Language_SK
ADD_FEATURE: fea_AVG_Language_FR
ADD_FEATURE: fea_AVG_Language_SP
ADD_FEATURE: fea_AVG_Language_PB
ADD_FEATURE: fea_AVG_Language_PL
ADD_FEATURE: fea_AVG_Language_SC
ADD_FEATURE: fea_AVG_Language_IT
ADD_FEATURE: fea_AVG_Language_HU
ADD_FEATURE: fea_AVG_Language_NL
ADD_FEATURE: fea_AVG_Language_JP
ADD_FEATURE: fea_AVG_Language_PT


Regards
cyph
nhatminh1209
QUOTE (argimiro)
tskill avgwb
tskill avgupsvc
tskill avgcc
tskill avgemc
tskill avgamsvr

While AVG's running? Dream on whistling.gif
Even when I've closed Control Center. It keep prevent some virus, keylog ,trojan from executing
jjvs
I've found a way to update the AVG Free version with the latest downloaded virus definition files (*.bin) stored on a local disk without the use of scripts.

Let's assume AVG is installed in "C:\Program Files\AVG7" and the bin-files are stored in "D:\Data\AVG-Update".
Run the following command
CODE
"C:\Program Files\AVG7\avgw.exe" /UPDATE /UPDDIR="D:\Data\AVG-Update"

The latest bin files will be installed. And the usual popup box (which closes after 30 seconds) will show itself.

BTW, you can run it right after you've installed AVG.
jjvs
This week I've found a solution for updating from the internet without asking the user for confirmation.

CODE
AVGINET.EXE /ADMIN /UPDDIR="D:\Data\AVG-Update"


The /ADMIN switch will download the updates from the internet (without asking the user for confirmation).
All updates are downloaded to "%ALLUSERSPROFILE%\Application Data\Grisoft\Avg7Data\upd7bin". If you use the switch "/UPDDIR=...", the update files will be copied (not moved) to the path specified. Use quotes around the pathname, otherwise this switch will be ignored.

As a downside, the first time it will download the full updates (which is approx. 28mb, at the moment), even if you've installed the latest version. Another thing, the updates are not installed automaticly. To do this you need avgw.exe (see my previous post).

So to put it all together: (Install, download the updates, install the updates)
CODE
avg75free_524a1293.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED /TARGET_DIR %SYSTEMDRIVE%\Apps\AVG\Antivirus
%SYSTEMDRIVE%\Apps\AVG\Antivirus\avginet.exe /ADMIN /UPDDIR="D:\Data\AVG-Update"
%SYSTEMDRIVE%\Apps\AVG\Antivirus\avgw.exe /UPDATE /UPDDIR="D:\Data\AVG-Update"


This works for the free version. I don't know if it'll work for a licensed version.
MAVERICKS CHOICE
Nice find but not a biggy, I personally prefer not be connected to the net whilst doing any Ua or silent installs.
jjvs
Today I found out how to download only the latest update files, priority and if available recommended.

CODE
%SYSTEMDRIVE%\Apps\AVG\Antivirus\avginet.exe /SCHED=0

All updates are downloaded in 1 go, and updated immediately. No additional commands or scripts needed.

1 other thing, The free version can also use a scriptfile to install avg-antivirus. Mine looks like this:

CODE
/HIDE
/DONT_START_APPS
/NO_WELCOME
/NO_AVGW_STARTUP
/QUIT_IF_INSTALLED
/LOG %SYSTEMDRIVE%\Apps\Install_AVG_AV.log
/TARGET_DIR %SYSTEMDRIVE%\Apps\AVG\Antivirus

And here is the full install command:
CODE
%CDROM%\Install\AVG\avg75free_524a1293.exe /SCRIPT_FILE %CDROM%\Install\AVG\AVG_AV.ini


Edit:
Unfortunately the update commands only apply to avg7 and not avg8, the switch "SCRIPT_FILE" does work for avg8 also.
cool400
@jjvs

Thanks for sharing your experiences with us!

So I can install AVG 8 Free silently using your INI-file and the command-line you posted?
Are there some more parameters for the INI-file?

I found this in the AVG-forum/FAQ: How to install AVG without LinkScanner

And what do you mean, that the update-commands are not working in AVG 8?

I simply want to install AVG 8 silently and unattended - updates are made when first connecting to the internet, because I don't have internet-access while installing Windows.

BTW, maybe it's possible to include AVG 8, its INI-script and the actual updates in a WinRAR-SFX-archive? After extracting all files to e.g. %temp%\AVG8 it calls a CMD-file, that first runs the AVG-setup referring to the INI-script and after that installing the included updates via this command-line:
CODE
%SYSTEMDRIVE%\Apps\AVG\Antivirus\avgw.exe /UPDATE /UPDDIR="%temp%\AVG8"

I will try to make a batch-file like I already did for Avira Antivir 8 and see if this works!

Best regards

cool400 ph34r.gif
jjvs
Hi Cool400,

Yes you can use the scriptfile. It works so much easier.

There is an option to disable the installation of the "Yahoo toolbar":
CODE
/NOAVGTOOLBAR

I haven't tried to disable the linkscanner myself. So I cannot help you with that.

About the updates, The line of code you included in your post doesn't work. AVG has decided to use another commandline util.
CODE
%SYSTEMDRIVE%\Apps\AVG\avgupd.exe
This will go to the internet, and grab the latest update files, and install these. I've tried to find an option to update AVG with local stored update files. But no success so far.

Hope it'll helps
cool400
@jjvs

Maybe you want to take a look here - there you can read that this is the command for updating AVG8 from a folder:

CODE
"%programfiles%\AVG\AVG8\avgupd.exe" /PRI=4 /SESSION=0 /SOURCE=folder /PATH="D:\AVG-Updates"

BTW, how did you find out all the switches?

Best regards

cool400 ph34r.gif
jjvs
Hi Cool400,
I've seen the post (and already replied). It's working great, (even better without the pri and session parameters).

Most of the switches were somewhere in this topic, and I just used them. But some time ago, I've wanted to install AVG in another directory other than the default, and as far as i know, there was no known option for that. So I started looking in
the installation directory of AVG. To make a long story short, I opened setup.exe in a hexeditor and did a search for one of the known options (HIDE or DONT_START_APPS or something like that). That's how i found out about "TARGET_DIR" and recently NOAVGTOOLBAR and that the option SCRIPT_FILE was there. Once I've found the options, I just played around with it.

The following option for instance in only useful if you have "Microsoft Visual C++ redist ..." installed before AVG is installed.
CODE
/NO_VC_REDIST
Otherwise the installation of AVG fails.

I can only tell you where to look, but from there on, It's also a big mystery for me.
cool400
@jjvs

Thanks for your information!

I asked myself if there's a way to download the AVG-Updates via a batch file? But it seems that they have different names everytime they're updated...

Has anyone an idea how to batch-download them? Or maybe we can use any file of the AVG-EXEs (e.g. avgupd.exe) to download available updates to a specified folder and not to install them?

Best regards

cool400 ph34r.gif
coolmat
Hi guys,

I recently have a task for my job and it was to install AVG 8.1 Free silently.

Here what I done:

avgsetup.ini:
CODE
HIDE:
DONT_START_APPS:
NO_WELCOME:
LOG: "C:\AVG7INST.LOG"
NAME: "UserName"
COMPANY: "Company"


No serial needed, it is include with the free AVG!

Install_Silent_AVG.bat:
CODE
@echo off
ECHO Install Silent AVG 8.1..
SET SETUP="avg_free_stf_en_8_169a1359\avgsetup.exe"
%SETUP% /SCRIPT_FILE "avg_free_stf_en_8_169a1359\avgsetup.ini" %1 %2 %3 %4 %5 %6 %7 %8 %9


I know that you'll be able to change it for your own use, but... I just share what I've done!

Best regards,
Matt




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.