Jump to content

AutoGK - Installation is corrupt, using Run()


Recommended Posts

I'm writing a script to automate DVD ripping and DivX conversion. Here's my code:

Opt('ExpandEnvStrings', 1)
$outfile1=%outfile%
Run("%programfiles%\DVD Decrypter\DVDDecrypter /mode ifo /src %drive% /dest %dest% /naming pgc angel /overwrite yes /split none /start /close")
WinWait("DVD Decrypter" , "OK")
Send("{ENTER}")
Run("c:\program files\autogk\autogk.exe")
;WinWaitActive("len0x presents: Auto Gordian Knot 2.45 - THE tool for XviD/DivX conversion.")
;ControlSend("len0x presents: Auto Gordian Knot 2.45 - THE tool for XviD/DivX conversion." , "" , "721688" , "$outfile")
Exit

Note that the variables %drive%, %dest%, and %outfile% are declared and read from the NT shell script that calls my autoIT script.

The script works perfectly until it gets to Run("c:\program files\autogk\autogk.exe"). It pops up a dialog box saying:

Installation is corrupt. Please reinstall the application.

I have also tried starting autoGK from the command line and it pops up the same dialog box. I'm using autoGK version 2.45 and autoIT version 3.

Any ideas or suggestions why this doesn't work? Or an alternate way to start AutoGK? I guess I could use mouse clicks, and start it from a shortcut, but thats sloppy looking and impractical.

Thanks for your time.

-Tony

Link to comment
Share on other sites

Well... if the problem is with the application then there's not a problem with AutoIt. Did you look at the shortcut's properties to see if you got the right .exe? Did you try using ShellExectue() to run the shortcut?

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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