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?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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