AVG Anti-Virus Silent I found out how to do it
#63
Posted 26 July 2005 - 07:25 AM
you mean you have to mouse click and stuff!
my request is ONLY a progress bar and completely UA
#64
Posted 28 July 2005 - 04:41 AM
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.
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
This post has been edited by Dustinwmew: 28 July 2005 - 04:44 AM
#65
Posted 02 August 2005 - 05:53 AM
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:
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:
AutoItSetOption("TrayIconHide", 1)
AutoItSetOption("WinTitleMatchMode", 4)
BlockInput(0)
ProcessClose("AVGfreeUp.exe")
ProcessClose("AutoIt3.exe")
This post has been edited by blinkdt: 26 November 2005 - 04:28 AM
#66
Posted 05 September 2005 - 02:07 PM
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!
This post has been edited by CaptainM: 05 September 2005 - 02:09 PM
#67
Posted 05 September 2005 - 02:28 PM
CaptainM, on Sep 5 2005, 09:07 PM, said:
<{POST_SNAPBACK}>
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
#68
Posted 05 September 2005 - 04:31 PM
#69
Posted 18 September 2005 - 03:42 PM
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
This post has been edited by Wesmosis: 12 October 2005 - 12:21 PM
#70
Posted 21 September 2005 - 10:28 AM
Verified Working with WPI
#71
Posted 12 October 2005 - 12:32 PM
i downloaded the bin files along the main exe avg, but donno how to integrate or involve those bin files
#72
Posted 22 October 2005 - 04:20 PM
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
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
#73
Posted 22 October 2005 - 05:52 PM
#74
Posted 23 October 2005 - 12:05 AM
#75
#76
Posted 24 October 2005 - 11:46 AM
#77
Posted 13 November 2005 - 07:11 PM
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
Posted 14 November 2005 - 08:58 AM
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
#80
Posted 21 November 2005 - 10:58 AM



Help


Back to top










