Jump to content

Recommended Posts

Posted

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


Posted

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?

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...