MSFN Forum: AVG help - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

AVG help Rate Topic: -----

#1 User is offline   poeee 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 29-April 04

Posted 12 August 2004 - 11:02 PM

I'm trying to get AVG running from a batch file running in [GuiRunOnce].

Now i've got a VBScript which when run by itself (not through guirunonce) installs AVG fine. It's what i've got in the batch file which is the problem.

The VBS...
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("setup.exe")
WScript.Sleep 4000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "AVG-*-********-***"
WScript.Sleep 1000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "~"
WScript.Sleep 18000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "~"
WScript.Sleep 1000
WshShell.SendKeys "~"


and the batch file...
ECHO.
ECHO Installing AVG
ECHO Please wait...
start /wait %systemdrive%\install\Applications\AVG\avg.vbs


As I said, i'm almost positive it's the batch file, as it just doesn't look right.

Could someone help me? :)


#2 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 12 August 2004 - 11:06 PM

looks fine
take out your cd key from the post tho (atleast thats what i think it is)

#3 User is offline   poeee 

  • Newbie
  • Group: Members
  • Posts: 17
  • Joined: 29-April 04

Posted 12 August 2004 - 11:38 PM

The .vbs is fine, works all good. Doesn't work when running from the batch file.

#4 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 12 August 2004 - 11:59 PM

i just made a simple vbs script & it worked

*.cmd
start /wait test.vbs


*.vbs
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run ("notepad.exe")


works fine.. maybe something in your path?

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy