other vbs that i couldnt has the differences:
time to wait until serial is entered: WScript.Sleep 8000
he sends all keys for the serial at once WshShell.SendKeys "xxxxxxx"
time to wait until pressing enter after serial is written: WScript.Sleep 2000
thats the only real difference. i didnt know that all keys can be written at once for the serial.
changed my vbs, guess this is the fastest way for it to work
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Popup "DONT PRESS ANY KEY OR MOVE THE MOUSE!!!",5," - Warning - ",48
WshShell.Run ("SETUP.EXE /S")
WScript.Sleep 5000
WshShell.SendKeys "YOUR_SERIAL_HERE"
WScript.Sleep 1000
WshShell.SendKeys "{ENTER}"
WScript.Quit
found this here on MSFN with the difference that it copys the reflist.ref to the ad aware dir
Set WshShell = WScript.CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
On Error Resume Next
WshShell.Popup "Do NOT MOVE the mouse an do NOT PRESS any button!",5," - Warning - ",48
...
...
...
'Copy the newest reflist.ref to the ad-aware folder overwrite the old one
'you have to check the path !
Set refl = fso.GetFile("%systemdrive%\Apps\reflist.ref")
refl.Copy ("%programfiles%\Lavasoft\Ad-aware 6\reflist.ref")
Wscript.Quit
but the it didnt copy the file when i tried it, anybody have an idea ?