Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

AVG Anti-Virus Silent

- - - - -

  • Please log in to reply
126 replies to this topic

#101
muiz

muiz

    SPECIAL

  • Member
  • PipPipPipPipPipPip
  • 1,055 posts
  • Joined 03-August 03
  • OS:none specified
  • Country: Country Flag

Got it working now :

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 :

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


How to remove advertisement from MSFN

#102
Jeroeneke

Jeroeneke

    Member

  • Member
  • PipPip
  • 138 posts
  • Joined 26-November 05
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

Attached Files


Edited by Jeroeneke, 16 June 2006 - 10:10 AM.


#103
larciel

larciel

    Member

  • Member
  • PipPip
  • 241 posts
  • Joined 06-December 03
followed your steps, muiz, and got 'invalid switch' -"/f" . ;P

#104
argimiro

argimiro
  • Member
  • 1 posts
  • Joined 18-September 06
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....tpl/v5#avg-free

with 4 update .bin files

u7avi804sq.bin
u7f4053y.bin
u7iavi460sq.bin
u7lx30.bin
http://free.grisoft....4/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 B) my eyes lit up when i saw what he done there with vbscript


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

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

'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 :)



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

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.

Edited by argimiro, 27 September 2006 - 09:59 AM.


#105
ZileXa

ZileXa

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 767 posts
  • Joined 27-May 04
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.whirlp...cfm/632926.html

Edited by ZileXa, 09 December 2006 - 11:00 AM.


#106
blinkdt

blinkdt

    Somewhat Knowledgeable

  • Member
  • PipPipPipPip
  • 582 posts
  • Joined 30-September 03
  • OS:Windows 8 x64
  • Country: Country Flag
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:
;-----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.

Edited by blinkdt, 09 December 2006 - 11:58 PM.

no peace for the wicked, no rest for the good

#107
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,767 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Nice script there blinkdt, I might modify it for my personal use as I prefer to update after all installations are completed.

#108
hmaster10

hmaster10

    Stalker

  • Member
  • PipPip
  • 176 posts
  • Joined 23-February 05

Got it working now :

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 :

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?

Life isn't always black & white... but it's the opposite for me...


#109
hmaster10

hmaster10

    Stalker

  • Member
  • PipPip
  • 176 posts
  • Joined 23-February 05
Also using the AVG_Admin, how can I specify in the .INI that AVG should update from file after installation?

Life isn't always black & white... but it's the opposite for me...


#110
Alex2005

Alex2005
  • Member
  • 2 posts
  • Joined 27-March 06
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:
 
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"


#111
hmaster10

hmaster10

    Stalker

  • Member
  • PipPip
  • 176 posts
  • Joined 23-February 05

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:

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.

Life isn't always black & white... but it's the opposite for me...


#112
Triel

Triel

    Newbie

  • Member
  • 45 posts
  • Joined 09-August 06
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.

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

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

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

Edited by Triel, 01 August 2007 - 09:54 PM.


#113
cypher_soundz

cypher_soundz

    Junior

  • Member
  • Pip
  • 78 posts
  • Joined 10-December 04
here is the ini for people who use AVG + Firewall

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:

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
To live a creative life, we must lose our fear of being wrong.

If you don't run your own life, somebody else will.

#114
nhatminh1209

nhatminh1209

    Newbie

  • Member
  • 11 posts
  • Joined 06-December 06

tskill avgwb
tskill avgupsvc
tskill avgcc
tskill avgemc
tskill avgamsvr

While AVG's running? Dream on :whistle:
Even when I've closed Control Center. It keep prevent some virus, keylog ,trojan from executing

Edited by nhatminh1209, 24 September 2007 - 11:25 AM.


#115
jjvs

jjvs

    Newbie

  • Member
  • 27 posts
  • Joined 21-June 05
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
"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.

#116
jjvs

jjvs

    Newbie

  • Member
  • 27 posts
  • Joined 21-June 05
This week I've found a solution for updating from the internet without asking the user for confirmation.

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

#117
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,767 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Nice find but not a biggy, I personally prefer not be connected to the net whilst doing any Ua or silent installs.

#118
jjvs

jjvs

    Newbie

  • Member
  • 27 posts
  • Joined 21-June 05
Today I found out how to download only the latest update files, priority and if available recommended.

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

/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:
%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.

Edited by jjvs, 26 April 2008 - 03:11 AM.


#119
cool400

cool400

    Junior

  • Member
  • Pip
  • 72 posts
  • Joined 08-November 05
@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:
%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:

Edited by cool400, 28 April 2008 - 09:45 AM.


#120
jjvs

jjvs

    Newbie

  • Member
  • 27 posts
  • Joined 21-June 05
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":
/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.
%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

#121
cool400

cool400

    Junior

  • Member
  • Pip
  • 72 posts
  • Joined 08-November 05
@jjvs

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

"%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:

#122
jjvs

jjvs

    Newbie

  • Member
  • 27 posts
  • Joined 21-June 05
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.
/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.

#123
cool400

cool400

    Junior

  • Member
  • Pip
  • 72 posts
  • Joined 08-November 05
@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:

#124
coolmat

coolmat
  • Member
  • 2 posts
  • Joined 16-September 08
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:
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:
@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

#125
kikij

kikij
  • Member
  • 2 posts
  • Joined 09-July 10
  • OS:none specified
  • Country: Country Flag
I tried avg and i was not such a good friend of it. I don't know why but i didn't like it at all. So i became a fun of http://www.trustdown...urity-7.0.html'>kaspersky version 7and i stopped to this. It really works so i can recommend you from all my heard




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN