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

#76
Wesmosis

Wesmosis

    Just Call Me Doctor Just Call Me Pain!

  • Member
  • PipPipPipPipPip
  • 787 posts
  • Joined 20-September 04
yeah Thanx, but after a while , the question about integrating bin update files will reappear again! :)
@I dont know how the third World War will be fought, but I`m sure the fourth will be fought with sticks and stones
@Like What You Do, If You Can't Do What You Like
@Reality.Sys Corrupted. Universe Halted. Reboot Y/N


How to remove advertisement from MSFN

#77
Venevus

Venevus
  • Member
  • 6 posts
  • Joined 13-November 05
:hello: 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

#78
jjvs

jjvs

    Newbie

  • Member
  • 27 posts
  • Joined 21-June 05
Hi Venevus,

For AVG I use this cmdline option to install to a different location:
/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

#79
Venevus

Venevus
  • Member
  • 6 posts
  • Joined 13-November 05
:thumbup :thumbup a thousand thanks to jjvs! :w00t: :w00t:

#80
Wesmosis

Wesmosis

    Just Call Me Doctor Just Call Me Pain!

  • Member
  • PipPipPipPipPip
  • 787 posts
  • Joined 20-September 04
how to unattendedly disable the boring message about updating, it's so embarassing :)
@I dont know how the third World War will be fought, but I`m sure the fourth will be fought with sticks and stones
@Like What You Do, If You Can't Do What You Like
@Reality.Sys Corrupted. Universe Halted. Reboot Y/N

#81
xorg

xorg

    Newbie

  • Member
  • 16 posts
  • Joined 18-December 05

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:

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;

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?

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:

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;

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.

#82
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,783 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag


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:

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;

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?

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:

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;

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.

#83
tempuser

tempuser

    スキューバ ダイバ

  • Member
  • PipPip
  • 119 posts
  • Joined 08-December 05
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

Edited by tempuser, 09 January 2006 - 12:20 AM.

Flash and animated signatures and avatars are not permitted.

#84
Jeroeneke

Jeroeneke

    Member

  • Member
  • PipPip
  • 138 posts
  • Joined 26-November 05

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.

#85
The008

The008

    MSFN Curious

  • Member
  • PipPip
  • 124 posts
  • Joined 18-July 05
Hey guys, I tried using this with my AVG 7 plus Firewall (not Free) and works fine:


avgsetup.ini

HIDE:
DONT_START_APPS:
NO_WELCOME:
NAME: "UserName"
COMPANY: "Company"
LICNO: "Serial"

setup.bat

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:

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.

Posted Image


#86
Danielb

Danielb

    Newbie

  • Member
  • 13 posts
  • Joined 19-November 05

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

#87
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,783 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
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

#88
malinduta

malinduta

    Newbie

  • Member
  • 39 posts
  • Joined 19-January 05

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/...showtopic=69536

#89
Wesmosis

Wesmosis

    Just Call Me Doctor Just Call Me Pain!

  • Member
  • PipPipPipPipPip
  • 787 posts
  • Joined 20-September 04
@malinduta
thanx

so guyz, what the best easiesi method for installing AVG Pro version?
@I dont know how the third World War will be fought, but I`m sure the fourth will be fought with sticks and stones
@Like What You Do, If You Can't Do What You Like
@Reality.Sys Corrupted. Universe Halted. Reboot Y/N

#90
TheOZ

TheOZ
  • Member
  • 1 posts
  • Joined 27-April 06
  • OS:XP Pro x86
  • Country: Country Flag
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:

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

Edited by TheOZ, 28 April 2006 - 08:42 PM.


#91
muiz

muiz

    SPECIAL

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

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:

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

#92
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,783 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
Only have good success with the free vers so far.

Cheers
MC.

#93
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.

Edited by muiz, 20 May 2006 - 06:51 AM.


#94
Sangi

Sangi

    Newbie

  • Member
  • 34 posts
  • Joined 29-November 05
Forgive the confusion and ignorance :blushing: 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:


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:

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

#95
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,783 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
What ver of Avg are u using? You don't need to go to those lengths for AVGFree ver.

Cheers
MC.

#96
blinkdt

blinkdt

    Somewhat Knowledgeable

  • Member
  • PipPipPipPip
  • 582 posts
  • Joined 30-September 03
  • OS:Windows 8 x64
  • Country: Country Flag
@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: ). I have been using the script successfully for some time now. The entire script looks like this, cleaning up shortcuts along the way:
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:

Edited by blinkdt, 31 May 2006 - 11:35 PM.

no peace for the wicked, no rest for the good

#97
MAVERICKS CHOICE

MAVERICKS CHOICE

    The Guy from Aus

  • Member
  • PipPipPipPipPipPipPip
  • 1,783 posts
  • Joined 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag
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.

#98
NicodemusAtNIMH

NicodemusAtNIMH
  • Member
  • 7 posts
  • Joined 22-March 06

Try using setup.exe /HIDE /@ avg_net.cfg

It seems to work for me. :)


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


Where does this go? In my runonce.cmd file?

#99
Sangi

Sangi

    Newbie

  • Member
  • 34 posts
  • Joined 29-November 05
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.

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

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

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

#100
edacval

edacval
  • Member
  • 1 posts
  • Joined 02-June 06
New (working) link to AVG Admin:Avg Admin




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users