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
darren4323
Silent install is simply installing without user interaction. Its typically used by system admins to deliver custom settings.

My question is:

is there a method for silent uninstall of AVG?
I already tried 'setup /HIDE /UNINSTALL' but it still gives flashes up with.."do you wish to continue". Can I give it an uninstall config file to automagically uninstall?

Thanks
darren4323
I think I awnsered my own question already: :thumbup

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("setup.exe /UNINSTALL")
WScript.Sleep 3000
WshShell.SendKeys "~"
WScript.Sleep 3000
WshShell.SendKeys "~"

seems to work. Its a bit dirty as I don't really need the getout clause.
mirkoB
Hi,
I've already made AVG 7 Free silent install. Now I'm trying to make update to installed AVG.
I've got some ideas, but thing I need some help smile.gif
1st, looking at installed and updated AVG folder - that is %systemdrive%\Program Files\Grisoft\AVG Free" I noticed many files (dll's and exe's mostly) that had been changed since instalation. I've isolated this files and made 7zip self extracting archive with them. File is called AVGupd.exe, it's about 12MB big (it would be smaller if my AVG build were newer).
I call this exe from runoonceex key, like this:
REG ADD %KEY%\020 /v 2 /D "%systemdrive%\Install\AVG\avgupd.exe -o\"%systemdrive%\Program Files\Grisoft\AVG Free\" -y" /f
Please notice that "2" between \020 and \D - it's because AVG instalation is already ended (under "1" of \020).
Here starts my problems - even when extracting with -y switch I get errors like "can not delete output file C:\Program Files\Grisoft\AVG Free\avgamint.dll"
I tried to stop manualy AVG Control Centar, stop manualy 2 AVG services and delete, from cmd file, all files that should be replaced in AVG folder.
I get access denied errors on some files.
So, if someone has an idea how to force file replacment in AVG folder please, enlight me...

Idea no. 2)
If you extract avg setup files, you will notice that probably most files are packed inside the bigest file out there - "files.dat"
If we could repack this file with new file versions that would be great, something like "updated from the box".
Is there any way to open that file? Resource Hacker does not open .dat files. sad.gif
isitaye
My first post but like to start by saying that through the forum i've created a complete unattended xpsp2 cd with all updates/patches and most apps. thanks to all concerned

on to the request.....

anyone really managed to get the AVG update to install along with or immediately after the client.

any help appreciated guys
isitaye
anyone at all had any juy getting avg to upgrade either during the install or post the install...

i'm sure someone must've cracke d it

any help apprecaited smile.gif
nexgolai
I'd just like to pop in and also ask the Unattended collective how this can be done, apart from setting up a local web server to serve the patches to avginetl.exe (from the admin pack.) Passing a local URL simply returns a CONNECT_ERR 10061.
DLF
QUOTE
anyone really managed to get the AVG update to install along with or immediately after the client

Ditto - would love to know how this can be achieved for AVG Free, I have even emailed AVG for some guidelines, but they have said they only supply support for their "purchased" products not free. confused.gif
scognito
hi...i'm installing avg 7.0 with this command line:
avg70f_323a539.exe" /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED /LICNO=myserial

i've also tried with /SERNO=myserial

both with and without double quotes

nothing to do...the options SERNO and LICNO are not recognized.

Any hint how to get the serial working?
Even a regkey would be fine, thanks!

Ciaooo!
Wesmosis
please guyz , I got confused of all the above 8 pages of different waus which some work and other don't,
so my direct Q is:
how to Silently Unattendedly Installing AVG v7.0.323 Free Edition?
plz give me the best easiest way , btw i'm using RunOnceEx.cmd
waiting for my hero!:P
Wesmosis
ok all things went right
for the benefit of all msfn members , here my WOKRING settings:

CODE
REG ADD %KEY%\05 /VE /D "AVG Antivirus v7.0.323 Free" /f
REG ADD %KEY%\05 /V 1 /D "%CDROM%\install\AVG7\AVG.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED" /f


but one last thing and I'll get the hell outta here! tongue.gif
I need the progress bar, is it by removing (/HIDE) ?
Wesmosis
plz guyz, i'm still waiting to burn my CD
Dustinwmew
when I remove /HIDE it turns into a attended.
Wesmosis
@Dustin
you mean you have to mouse click and stuff!
my request is ONLY a progress bar and completely UA
Dustinwmew
OK, I have this .vbs that someone made. I only mod it to work for this.
I don't remaber who made it. So if the person is on here tell me and I will give you credit to them.
I have NOT done a final test on this so it may not work. tell me if it does.

Read the file. there are things you have to change.
CODE
Set WshShell = CreateObject("WScript.Shell")
Set FileSysObj = CreateObject("Scripting.FileSystemObject")
ScriptPath = FileSysObj.GetFile(WScript.ScriptFullName).ParentFolder
Cmd = Chr(34) & ScriptPath & "\avgsetup.exe" & Chr(34)
WshShell.Run Cmd
' Give time to load
WScript.Sleep 5000
WshShell.SendKeys "~"
' License Agree
WScript.Sleep 1000
WshShell.SendKeys "{LEFT}"
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "{LEFT} ~"
WshShell.SendKeys "~"
WScript.Sleep 3000
WshShell.SendKeys "{DOWN 3}"
WshShell.SendKeys "~"
' Serial
WScript.Sleep 1000
WshShell.SendKeys "~"
' Install Location
WScript.Sleep 1000
WshShell.SendKeys "{TAB 2}"
WScript.Sleep 1000
'put in the next one for the install location, or it will goto defalt
WshShell.SendKeys ""
WScript.Sleep 1000
WshShell.SendKeys "{TAB 3}"
WshShell.SendKeys "~"
WScript.Sleep 1000
'New dir - if NOT new remove next ~
WshShell.SendKeys "~"
WScript.Sleep 1000
'Component selection
WshShell.SendKeys "~"
WScript.Sleep 1000
'Email scanner
WshShell.SendKeys "{DOWN 3}"
WshShell.SendKeys "~"
' for the next 4 you will need to change file to fit what plogin you like.
WScript.Sleep 1000
WshShell.SendKeys "{TAB 2}"
' Pet the bat: put in the 1st one {SPACE} to able.
WScript.Sleep 1000
WshShell.SendKeys "~"
WshShell.SendKeys "{DOWN}"
' Outlook: put in the 1st one {SPACE} to able.
WScript.Sleep 1000
WshShell.SendKeys "~"
WshShell.SendKeys "{DOWN}"
' Eudora: put in the 1st one {SPACE} to able.
WScript.Sleep 1000
WshShell.SendKeys "~"
WshShell.SendKeys "{DOWN}"
' personal Email scanner: put in the 1st one {SPACE} to disable!!!!!!!
WScript.Sleep 1000
WshShell.SendKeys "~"
WshShell.SendKeys "{TAB 2} ~"
WScript.Sleep 1000
'finish
WshShell.SendKeys "~"
WScript.Sleep 10000
WshShell.SendKeys "~"
WScript.Sleep 3000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "~"
WScript.Sleep 1000

Set WshShell = Nothing
Set FileSysObj = Nothing
WScript.Quit
blinkdt
It occurs to me that redfive19 made a great AutoIt script to update Microsot AntiSpyware immediately following the install (read more HERE), so why not with AVG? The avginet.exe controls the Internet update functionality, the only issue is error checking. If you have a live Internet connection at the time of install, then update. If not, don't. And if the AVG servers are not available... well... I couldn't replicate that scenario but took a stab at it using the Adlib function.

CODE
AutoItSetOption("TrayIconHide", 0)
AutoItSetOption("WinTitleMatchMode", 4)
BlockInput(0)

$var = Ping        ("guru.grisoft.com")
If $var Then

    Run        (@Programfilesdir & "\Grisoft\AVG Free\avginet.exe")
    AdlibEnable    ("Quit", 500)
    WinWait        ("AVG Free Edition Update Selection", "Please select update", 60)
    AdlibDisable    ()
    ControlClick    ("AVG Free Edition Update Selection", "Please select update", "Button2")
    WinWait        ("AVG Free Edition", "Update was successfully finished", 5)
    ControlClick    ("AVG Free Edition", "Update was successfully finished", "Button1")

Else
    Exit
EndIf

Exit

Func Quit()
If WinExists        ("Update AVG")    Then
    ControlClick    ("Update AVG", "An error occurred when trying to connect", "Button1")
ElseIf WinExists        ("AVG Update")    Then
    ControlClick    ("AVG Update", "No new update files are available", "Button1")
EndIf
EndFunc


The Adlib function should kill the dialogue that will pop up if Grisoft's servers are inaccessible as well as close the dialogue that will appear in the unlikely event that an update is not available.

Edit: I updated the script to account for a Window title typo that Grisoft recently corrected (lower case "selection" is now upper case "Selection," and AutoIt is pretty finicky). I have compiled it as "AVGfreeUp.exe" and added it to my WPI install:

CODE
cmd1[pn]=['%cdrom%\\Programs\\AVG\\avg71free_362a652.exe /HIDE /DONT_START_APPS /NO_WELCOME
/NO_AVGW_STARTUP /QUIT_IF_INSTALLED']
cmd2[pn]=['%cdrom%\\AutoIt3.exe %cdrom%\\Programs\\AVG\\AVGfreeUp.au3']
cmd3[pn]=['%cdrom%\\AutoIt3.exe %cdrom%\\Programs\\AVG\\kill.au3']


The "kill.au3" entry closes the process, 'cause I'm having trouble getting it to work any other way:


CODE
AutoItSetOption("TrayIconHide", 1)
AutoItSetOption("WinTitleMatchMode", 4)
BlockInput(0)

ProcessClose("AVGfreeUp.exe")
ProcessClose("AutoIt3.exe")
blushing.gif
CaptainM
welcome.gif Everyone, my 1st post.

Just wanted to mention a few things I found with AVG Free v7.344 (avg70free_344a618.exe):

- The /SCRIPT_FILE option as discussed above did not seem to work for the free version
- Browing around a found Command Line switches that do not use the Script file:
- avgsetup.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED /LOG "C:\install\AVG7INST.LOG"
- I also noticed that if the Setup fails, you can remove the /HIDE and will see a GUI with Details on what the problem is.
- Hope this helps someone...

Thank you for this forum. I have been using it now for 2 days with high degree of success! thumbup.gif
rikgale
QUOTE (CaptainM @ Sep 5 2005, 09:07 PM)
avgsetup.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED /LOG "C:\install\AVG7INST.LOG"

*


I've been using this method for the free version for a while with out any problems, seems to work fine, however I dont use the /LOG switch.

Welcome to the forum CaptianM
MAVERICKS CHOICE
No problems here usin the same since seven was released.
Wesmosis
hi again
how can I update the internal Virus Database of AVG unattendely?! or disable that crappy message after first boot which telling me that I' too old! then the colorful icon become grey!
I'm installing on PCs that don't have an internet access
Rosebud6
avgsetup.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED

Verified Working with WPI
Wesmosis
plz how to update unattendely?
i downloaded the bin files along the main exe avg, but donno how to integrate or involve those bin files
Mikep7779
Im a little confused when it comes to this, i use the runonce.cmd, can anyone tell me what to do.

CODE
REG ADD %KEY%\015 /VE /D "AVG Ver7.0 Free" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\AVG7\avg71f_361a651.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED" /f


Dosent set the cd key, so should i extract the avg71f_361a651.exe add the .inf and make it

CODE
REG ADD %KEY%\015 /VE /D "AVG Ver7.0 Free" /f
REG ADD %KEY%\015 /V 1 /D "%systemdrive%\install\AVG7\setup.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED" /f
MAVERICKS CHOICE
QUOTE (Wesmosis @ Oct 13 2005, 04:32 AM) *
plz how to update unattendely?
i downloaded the bin files along the main exe avg, but donno how to integrate or involve those bin files



I to am keen to do this anyone know?
contender
Version 7.1 is out
download link
http://free.grisoft.com/softw/70free/setup...ree_361a651.exe
MAVERICKS CHOICE
QUOTE (contender @ Oct 23 2005, 04:05 PM) *


Nice one been waitin for that. thumbup.gif
Wesmosis
yeah Thanx, but after a while , the question about integrating bin update files will reappear again! smile.gif
Venevus
welcome.gif hi! i'm new to the forums and i have just one question, preferably in reference to the technique that involved making an .ini file for avgsetup.exe and using the switch in the batch file /SCRIPT_FILE
the file works for me, but i need to know how to make my own custom directory "c:\utilities\grisoft\avg free\" rather than the default "c:\program files\grisoft\avg free"

this is for the lastest release of avg free (7.1 i believe)

any help would be greatly appreciated
jjvs
Hi Venevus,

For AVG I use this cmdline option to install to a different location:
CODE
/TARGET_DIR "%Systemdrive%\path-to\AVG-Antivirus"

I think if you add TARGET_DIR "%Systemdrive%\path-to\AVG-Antivirus" to your script
file it should work too.

JJVS
Venevus
thumbup.gif thumbup.gif a thousand thanks to jjvs! woot.gif woot.gif
Wesmosis
how to unattendedly disable the boring message about updating, it's so embarassing smile.gif
xorg
QUOTE (flattspott @ Nov 9 2003, 01:15 AM) *
This is what you've all be waiting for. How to do a silent install with AVG Anti-Virus.
Change the directories if needed. You should have something similar;

$OEM$\$1\Install\Applications\AVG7\

Inside the AVG7 folder you put extracted AVG setup files.
Then you have to make a file named avgsetup.ini and put the following in it:

CODE
HIDE:
DONT_START_APPS:
NO_WELCOME:
LOG: "C:\AVG7INST.LOG"
NAME: "UserName"
COMPANY: "Company"
LICNO: "Serial"


The AVG7 folder should now have the following;

avgsetup.exe
avgsetup.ini
files.dat
setup.dat
setup.lns
license_sk.txt
license_us.txt
license_cz.txt
license_fr.txt
license_ge.txt
readme_ge.txt
readme_cz.txt
readme_fr.txt
readme_sk.txt
readme_us.txt

I tried removing the text files but AVG wouldn't install so just leave them.

Then add this to your app install file;

CODE
ECHO.
ECHO Installing AVG Anti-Virus 7.0.197...
SET SETUP="%systemdrive%\Install\Applications\AVG7\avgsetup.exe"
[COLOR=blue]%SETUP% /SCRIPT_FILE "%systemdrive%\Install\Applications\AVG7\avgsetup.ini" %1 %2 %3 %4 %5 %6 %7 %8 %9
[/COLOR]


The part in blue is one line.

If you want to get more technical get the freeware app AVGADMIN 7.0.195

It's how I did it.



With the second lot of code, does this also go into the avgsetup.ini File?

QUOTE (flattspott @ Nov 9 2003, 01:15 AM) *
This is what you've all be waiting for. How to do a silent install with AVG Anti-Virus.
Change the directories if needed. You should have something similar;

$OEM$\$1\Install\Applications\AVG7\

Inside the AVG7 folder you put extracted AVG setup files.
Then you have to make a file named avgsetup.ini and put the following in it:

CODE
HIDE:
DONT_START_APPS:
NO_WELCOME:
LOG: "C:\AVG7INST.LOG"
NAME: "UserName"
COMPANY: "Company"
LICNO: "Serial"


The AVG7 folder should now have the following;

avgsetup.exe
avgsetup.ini
files.dat
setup.dat
setup.lns
license_sk.txt
license_us.txt
license_cz.txt
license_fr.txt
license_ge.txt
readme_ge.txt
readme_cz.txt
readme_fr.txt
readme_sk.txt
readme_us.txt

I tried removing the text files but AVG wouldn't install so just leave them.

Then add this to your app install file;

CODE
ECHO.
ECHO Installing AVG Anti-Virus 7.0.197...
SET SETUP="%systemdrive%\Install\Applications\AVG7\avgsetup.exe"
[COLOR=blue]%SETUP% /SCRIPT_FILE "%systemdrive%\Install\Applications\AVG7\avgsetup.ini" %1 %2 %3 %4 %5 %6 %7 %8 %9
[/COLOR]


The part in blue is one line.

If you want to get more technical get the freeware app AVGADMIN 7.0.195

It's how I did it.



With the second lot of code, does this also go into the avgsetup.ini File?

"ECHO.
ECHO Installing AVG Anti-Virus 7.0.197...
SET SETUP="%systemdrive%\Install\Applications\AVG7\avgsetup.exe"
%SETUP% /SCRIPT_FILE "%systemdrive%\Install\Applications\AVG7\avgsetup.ini" %1 %2 %3 %4 %5 %6 %7 %8 %9
"

Does this lot of code go into the avgsetup.ini file?

I am using AVG 7.1 Free edition (Build 371), to build my (First) switchless installer.
MAVERICKS CHOICE
QUOTE (xorg @ Jan 9 2006, 01:54 PM) *
QUOTE (flattspott @ Nov 9 2003, 01:15 AM) *

This is what you've all be waiting for. How to do a silent install with AVG Anti-Virus.
Change the directories if needed. You should have something similar;

$OEM$\$1\Install\Applications\AVG7\

Inside the AVG7 folder you put extracted AVG setup files.
Then you have to make a file named avgsetup.ini and put the following in it:

CODE
HIDE:
DONT_START_APPS:
NO_WELCOME:
LOG: "C:\AVG7INST.LOG"
NAME: "UserName"
COMPANY: "Company"
LICNO: "Serial"


The AVG7 folder should now have the following;

avgsetup.exe
avgsetup.ini
files.dat
setup.dat
setup.lns
license_sk.txt
license_us.txt
license_cz.txt
license_fr.txt
license_ge.txt
readme_ge.txt
readme_cz.txt
readme_fr.txt
readme_sk.txt
readme_us.txt

I tried removing the text files but AVG wouldn't install so just leave them.

Then add this to your app install file;

CODE
ECHO.
ECHO Installing AVG Anti-Virus 7.0.197...
SET SETUP="%systemdrive%\Install\Applications\AVG7\avgsetup.exe"
[COLOR=blue]%SETUP% /SCRIPT_FILE "%systemdrive%\Install\Applications\AVG7\avgsetup.ini" %1 %2 %3 %4 %5 %6 %7 %8 %9
[/COLOR]


The part in blue is one line.

If you want to get more technical get the freeware app AVGADMIN 7.0.195

It's how I did it.



With the second lot of code, does this also go into the avgsetup.ini File?

QUOTE (flattspott @ Nov 9 2003, 01:15 AM) *
This is what you've all be waiting for. How to do a silent install with AVG Anti-Virus.
Change the directories if needed. You should have something similar;

$OEM$\$1\Install\Applications\AVG7\

Inside the AVG7 folder you put extracted AVG setup files.
Then you have to make a file named avgsetup.ini and put the following in it:

CODE
HIDE:
DONT_START_APPS:
NO_WELCOME:
LOG: "C:\AVG7INST.LOG"
NAME: "UserName"
COMPANY: "Company"
LICNO: "Serial"


The AVG7 folder should now have the following;

avgsetup.exe
avgsetup.ini
files.dat
setup.dat
setup.lns
license_sk.txt
license_us.txt
license_cz.txt
license_fr.txt
license_ge.txt
readme_ge.txt
readme_cz.txt
readme_fr.txt
readme_sk.txt
readme_us.txt

I tried removing the text files but AVG wouldn't install so just leave them.

Then add this to your app install file;

CODE
ECHO.
ECHO Installing AVG Anti-Virus 7.0.197...
SET SETUP="%systemdrive%\Install\Applications\AVG7\avgsetup.exe"
[COLOR=blue]%SETUP% /SCRIPT_FILE "%systemdrive%\Install\Applications\AVG7\avgsetup.ini" %1 %2 %3 %4 %5 %6 %7 %8 %9
[/COLOR]


The part in blue is one line.

If you want to get more technical get the freeware app AVGADMIN 7.0.195

It's how I did it.



With the second lot of code, does this also go into the avgsetup.ini File?

"ECHO.
ECHO Installing AVG Anti-Virus 7.0.197...
SET SETUP="%systemdrive%\Install\Applications\AVG7\avgsetup.exe"
%SETUP% /SCRIPT_FILE "%systemdrive%\Install\Applications\AVG7\avgsetup.ini" %1 %2 %3 %4 %5 %6 %7 %8 %9
"

Does this lot of code go into the avgsetup.ini file?

I am using AVG 7.1 Free edition (Build 371), to build my (First) switchless installer.


@ Xorg

You seem to be going to alot of trouble to install the free edition, ini not really reqd just use the switches which are widely specified in this thread.

Cheers

MC.
tempuser
avg free = virus LOL

so many false positives i had to delete it from my workstation.

every few seconds it would detect some virus. FALSE !!!

LOL

Bitdefender is the best
Jeroeneke
QUOTE (tempuser @ Jan 9 2006, 07:19 AM) *
avg free = virus LOL

so many false positives i had to delete it from my workstation.

every few seconds it would detect some virus. FALSE !!!

LOL

Bitdefender is the best


I have been using AVG Free for a while now (after Norton f***ed up my pc) and I'm having no problems with it!

I would also like to know how to unattendedly install those updates!

thx! jeroen.
The008
Hey guys, I tried using this with my AVG 7 plus Firewall (not Free) and works fine:


avgsetup.ini
QUOTE
HIDE:
DONT_START_APPS:
NO_WELCOME:
NAME: "UserName"
COMPANY: "Company"
LICNO: "Serial"
setup.bat
QUOTE
ECHO.
ECHO Installing AVG Anti-Virus 7 plus Firewall...
SET SETUP="%systemdrive%\Install\Applications\AVG7\avgsetup.exe"
SET SCRIPT="%systemdrive%\Install\Applications\AVG7\avgsetup.ini"
%SETUP% /SCRIPT_FILE %SCRIPT% %1 %2 %3 %4 %5 %6 %7 %8 %9



if anyone wants, you can create a .log file in the c:\ or %systemdrive% just adding this line in the avgsetup.ini:
QUOTE
LOG: "%systemdrive%\AVG7INST.LOG"
...or....
LOG: "C:\AVG7INST.LOG"


just like the first post in this section, fully working, then I'm just trying to discover how to install up-to-date.
Danielb
QUOTE
avg free = virus LOL

so many false positives i had to delete it from my workstation.

every few seconds it would detect some virus. FALSE !!!

LOL


I have no problems either, i would sort you pc out mate laugh.gif
MAVERICKS CHOICE
Yeah Tempers got some real issues with AVG huh, no dramas or viruses here.

I'm really thinkin I need to speak to someone from AVG re what files can be backed up & then reinstalled in a ua install. Don't know how much luck I'll have with that but I only have the free vers? & one pc anyway may be worth the ask?

Cheers
MC
malinduta
QUOTE (Wesmosis @ Oct 12 2005, 08:32 PM) *
plz how to update unattendely?
i downloaded the bin files along the main exe avg, but donno how to integrate or involve those bin files


Chech here: http://www.msfn.org/board/index.php?showtopic=69536
Wesmosis
@malinduta
thanx

so guyz, what the best easiesi method for installing AVG Pro version?
TheOZ
I'm not sure if any of this helps out but here we go.........
I've been using AVG7.1 FULL version, and have been trying to do silent install...
After reading through these posts I tried my hand at it.........Sorry to say I havent got it to do silent install, but I have got it to accept serial with AVGSETUP.INI file, and it does install ok.
Strangest thing is when I use my method, AVG installs as "SERVER EDITION".......
This doesnt show up when I've installed on regular attended setup though. blink.gif

Heres what I've done............
----------------------------------------------------------------
AVGSETUP.INI file

NAME:"AVGUSER"
COMPANY:"."
LICNO:"xx-xxxxxx-xx-xxx-xxxxx-xxx-xxxx"

--------------------------------------------------------------------
SETUP.CMD file

@cmdow @ /hid
@echo off
FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET
CDROM=%%i:
SET SETUP="PATH\AVG\avgsetup.exe"
SET SCRIPT="PATH\AVG\avgsetup.ini"
START "AVG SETUP" /WAIT %SETUP% /SCRIPT_FILE %SCRIPT% %1 %2 %3 %4 %5 %6 %7 %8 %9
/DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED

----------------------------------------------------------------------
All setup files have been unzipped into folder along with .cmd and .ini files....

I dont believe these switches are working though.....
""/DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED""

Install is as usuall.....
Any and all ideas would be appreciated.......

THEOZ.............
BTW.....GREAT FORUM.....Keep up the good work, and thanks for everything.............
muiz
QUOTE (TheOZ @ Apr 29 2006, 03:36 AM) *
I'm not sure if any of this helps out but here we go.........
I've been using AVG7.1 FULL version, and have been trying to do silent install...
After reading through these posts I tried my hand at it.........Sorry to say I havent got it to do silent install, but I have got it to accept serial with AVGSETUP.INI file, and it does install ok.
Strangest thing is when I use my method, AVG installs as "SERVER EDITION".......
This doesnt show up when I've installed on regular attended setup though. blink.gif

Heres what I've done............
----------------------------------------------------------------
AVGSETUP.INI file

NAME:"AVGUSER"
COMPANY:"."
LICNO:"xx-xxxxxx-xx-xxx-xxxxx-xxx-xxxx"

--------------------------------------------------------------------
SETUP.CMD file

@cmdow @ /hid
@echo off
FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET
CDROM=%%i:
SET SETUP="PATH\AVG\avgsetup.exe"
SET SCRIPT="PATH\AVG\avgsetup.ini"
START "AVG SETUP" /WAIT %SETUP% /SCRIPT_FILE %SCRIPT% %1 %2 %3 %4 %5 %6 %7 %8 %9
/DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED

----------------------------------------------------------------------
All setup files have been unzipped into folder along with .cmd and .ini files....

I dont believe these switches are working though.....
""/DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED""

Install is as usuall.....
Any and all ideas would be appreciated.......

THEOZ.............
BTW.....GREAT FORUM.....Keep up the good work, and thanks for everything.............

Doesnt work
MAVERICKS CHOICE
Only have good success with the free vers so far.

Cheers
MC.
muiz
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.
Sangi
Forgive the confusion and ignorance blushing.gif but I have some basic questions regarding Licensing, as suggested by MUIZ, and Updating, as suggested by blinkdt.

PLEASE HELP!

1. LICENSING

MUIZ,

You said:


QUOTE
Got it working now :

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

CODEHIDE:
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.
Here are my questions:
1. What is the script_file, which script does it refer to? (I looked at the thread but I could decide which script did what, nor for which version, Free or Pro, and I'm interested in Pro);
2. what should it be called (Simply script_file, with no file extention?);
3. Where should it be placed ? (In the same folder as the avgsetup.ini files, along with all the rest?);
4. Once I have the correct script_file, would this be a possible Runonce command?

REG ADD %KEY%\054 /VE /D "AVG Pro" /f
REG ADD %KEY%\054 /V 1 /D "%PP%\AVGPRO\avgsetup.exe /script_file %PP%\AVGPRO\avgsetup.ini" /f

2. UPDATING

blinkdt

You said:

QUOTE
It occurs to me that redfive19 made a great AutoIt script to update Microsot AntiSpyware immediately following the install (read more HERE), so why not with AVG? The avginet.exe controls the Internet update functionality, the only issue is error checking. If you have a live Internet connection at the time of install, then update. If not, don't. And if the AVG servers are not available... well... I couldn't replicate that scenario but took a stab at it using the Adlib function.

CODEAutoItSetOption("TrayIconHide", 0)
AutoItSetOption("WinTitleMatchMode", 4)
BlockInput(0)

$var = Ping ("guru.grisoft.com")
If $var Then

Run (@Programfilesdir & "\Grisoft\AVG Free\avginet.exe")
AdlibEnable ("Quit", 500)
WinWait ("AVG Free Edition Update Selection", "Please select update", 60)
AdlibDisable ()
ControlClick ("AVG Free Edition Update Selection", "Please select update", "Button2")
WinWait ("AVG Free Edition", "Update was successfully finished", 5)
ControlClick ("AVG Free Edition", "Update was successfully finished", "Button1")

Else
Exit
EndIf

Exit

Func Quit()
If WinExists ("Update AVG") Then
ControlClick ("Update AVG", "An error occurred when trying to connect", "Button1")
ElseIf WinExists ("AVG Update") Then
ControlClick ("AVG Update", "No new update files are available", "Button1")
EndIf
EndFunc

The Adlib function should kill the dialogue that will pop up if Grisoft's servers are inaccessible as well as close the dialogue that will appear in the unlikely event that an update is not available.

Edit: I updated the script to account for a Window title typo that Grisoft recently corrected (lower case "selection" is now upper case "Selection," and AutoIt is pretty finicky). I have compiled it as "AVGfreeUp.exe" and added it to my WPI install:

CODEcmd1[pn]=['%cdrom%\\Programs\\AVG\\avg71free_362a652.exe /HIDE /DONT_START_APPS /NO_WELCOME
/NO_AVGW_STARTUP /QUIT_IF_INSTALLED']
cmd2[pn]=['%cdrom%\\AutoIt3.exe %cdrom%\\Programs\\AVG\\AVGfreeUp.au3']
cmd3[pn]=['%cdrom%\\AutoIt3.exe %cdrom%\\Programs\\AVG\\kill.au3']

The "kill.au3" entry closes the process, 'cause I'm having trouble getting it to work any other way:


CODEAutoItSetOption("TrayIconHide", 1)
AutoItSetOption("WinTitleMatchMode", 4)
BlockInput(0)

ProcessClose("AVGfreeUp.exe")
ProcessClose("AutoIt3.exe")


Here are my questions:
1. Would this script work with the script_file and the avgsetup.ini method described by MUIZ?
2. If so, once I have both AVGfreeUp.exe and kill.exe compiled and ready: Where should they go? (In the same folder as the avgsetup.ini files, along with all the rest, or in a subfolder?)
3. What would I have to add to my Runonce.cmd file? Is the following an option? (Assuming they go into the same folder as everything else.):

REG ADD %KEY%\054 /VE /D "AVG Pro" /f
REG ADD %KEY%\054 /V 1 /D "%PP%\AVGPRO\avgsetup.exe /script_file %PP%\AVGPRO\avgsetup.ini" /f
REG ADD %KEY%\054 /V 2 /D "%PP%\AVGPRO\AVGfreeUp.exe" /f
REG ADD %KEY%\054 /V 3 /D "%PP%\AVGPRO\kill.exe" /f


Thanx
MAVERICKS CHOICE
What ver of Avg are u using? You don't need to go to those lengths for AVGFree ver.

Cheers
MC.
blinkdt
@sangi Yes, your setup looks correct. I have my AutoIt scripts in one folder together with the AVG setup file and run them from that location. I do not use the PRO version--and therefore do not use the .ini install method--but imagine the update process is the same? If not--if the dialogue boxes are different--then my script will not work...AutoIt is clicking the buttons for me, and those buttons and dialogues are set out in a particular order. If Grisoft changes their install routine, then I must change my script, but that has only happened once due to the typo I mentioned (a capitalization issue, which was difficult to locate huh.gif ). I have been using the script successfully for some time now. The entire script looks like this, cleaning up shortcuts along the way:
CODE
SplashTextOn("", "" & @CRLF & "Installing AVG Free Antivirus 7.1.392..."  & @CRLF & "", 500, 55, -1, -1, 1, "Arial", 12, 12)
Sleep(1000)
SplashOff()
RunWait( @ScriptDir & "\Extras\AVG\avg71free_394a752.exe /HIDE /DONT_START_APPS /NO_WELCOME /NO_AVGW_STARTUP /QUIT_IF_INSTALLED")
Sleep(500)
FileDelete( @DesktopCommonDir & "\AVG*.lnk")
Sleep(100)
FileDelete( @DesktopDir & "\AVG*.lnk")
Sleep(100)
FileCreateShortcut(@ProgramFilesDir & "\Grisoft\AVG Free\avgw.exe", @ProgramsCommonDir & "\Accessories\System Tools\AVG Free.lnk")
Sleep(100)
DirRemove( @ProgramsCommonDir & "\AVG Free Edition", 1)
Sleep(1500)
$var = Ping("guru.grisoft.com")
If $var Then

    Run(@Programfilesdir & "\Grisoft\AVG Free\avginet.exe")
    AdlibEnable("Quit", 500)
    WinWait("AVG Free Edition Update Selection", "Please select update")
    AdlibDisable()
    ControlClick("AVG Free Edition Update Selection", "Please select update", "Button2")
    WinWait("AVG Free Edition", "Update was successfully finished")
    ControlClick("AVG Free Edition", "Update was successfully finished", "Button1")

Else
    Exit
EndIf

Exit

Func Quit()
If WinExists("Update AVG")Then
    ControlClick("Update AVG", "An error occurred when trying to connect", "Button1")
ElseIf WinExists("AVG Update")Then
    ControlClick("AVG Update", "No new update files are available", "Button1")
EndIf
EndFunc

@MC Do you know of a silent method of running the avginet.exe service? That would be great! yes.gif
MAVERICKS CHOICE
No I don't to be honest, but the guys over at the CD forum have been workin on that using their pe discs etc & I haven't had time to catch up with the progress.

Cheers
MC.
NicodemusAtNIMH
QUOTE (Shotgun @ Nov 10 2003, 05:02 PM) *
QUOTE (Bachus @ Nov 10 2003, 10:09 AM)
Try using setup.exe /HIDE /@ avg_net.cfg

It seems to work for me. smile.gif


THANK YOU SO MUCH Bachus!!!
You just made my existance easier!!!!
:punk: :afro: :jump:


Where does this go? In my runonce.cmd file?
Sangi
blinkdt,

I did not use your entire script because I wouldn't know how to license it from there. However, your update script works fine for AVG Pro, with a few minor changes highlighted below.

QUOTE
AutoItSetOption("TrayIconHide", 0)
AutoItSetOption("WinTitleMatchMode", 4)
BlockInput(0)

$var = Ping ("guru.grisoft.com")
If $var Then

Run (@Programfilesdir & "\Grisoft\AVG7\avginet.exe")
AdlibEnable ("Quit", 500)
WinWait ("AVG Anti-Virus Update selection", "Please select update", 60)
AdlibDisable ()
ControlClick ("AVG Anti-Virus Update selection", "Please select update", "Button2")
WinWait ("AVG Anti-Virus", "Update was successfully finished", 5)
ControlClick ("AVG Anti-Virus", "Update was successfully finished", "Button1")

Else
Exit
EndIf

Exit

Func Quit()
If WinExists ("Update AVG") Then
ControlClick ("Update AVG", "An error occurred when trying to connect", "Button1")
ElseIf WinExists ("AVG Update") Then
ControlClick ("AVG Update", "No new update files are available", "Button1")
EndIf
EndFunc


MUIZ,

I've answered my own stupid blushing.gif question. There is no other script file, that is script_file referes to the avgsetup.ini itself! Only one minor glitch, the target directory has to include Grisoft, see below:

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


And if anyone else is interested the way I placed everything in the same folder (avgsetup.ini, AVGfreeUp.exe and kill.exe) and called it on my Runonce works fine! (See below).

QUOTE
REG ADD %KEY%\054 /VE /D "AVG Pro" /f
REG ADD %KEY%\054 /V 1 /D "%PP%\AVGPRO\avgsetup.exe /script_file %PP%\AVGPRO\avgsetup.ini" /f
REG ADD %KEY%\054 /V 2 /D "%PP%\AVGPRO\AVGfreeUp.exe" /f
REG ADD %KEY%\054 /V 3 /D "%PP%\AVGPRO\kill.exe" /f


Best,

Sangi
edacval
New (working) link to AVG Admin:Avg Admin




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.