Forgive the confusion and ignorance

but I have some basic questions regarding Licensing, as suggested by
MUIZ, and Updating, as suggested by
blinkdt.
PLEASE HELP!1. LICENSINGMUIZ,
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. UPDATINGblinkdt 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