Jump to content
Sign in to follow this  
es976

Activate Install Window

Recommended Posts

es976

For some reason I can not get the first window in the install process to activate. Am I doing something wrong or is there a better way to write the script. I have 5 setup.exe that I am scripting. Sometimes the first one works the the other 4 fail.

Here's my script:

Break(0) ;Disable break

SplashTextOn ("RM Easiteach Content Installation Script", "The Math Content is Being Installed. Please Wait.", 350, 30,-1,-1,-1,"","10","")

AutoItSetOption("SendKeyDelay", 100)

AutoItSetOption("WinWaitDelay",2000)

FileChangeDir("V:\Support\RMEasiTeach\math")

Run("\Support\RMEasiTeach\math\Setup.exe")

WinWait("Easiteach North American Math Content - InstallShield Wizard", "&Next >")

WinWaitActive("Easiteach North American Math Content - InstallShield Wizard", "&Next >")

WinActive("Easiteach North American Math Content - InstallShield Wizard")

Send("{N}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{TAB}")

Send("{Space}")

Send("{N}")

Send("{DOWN}")

Send("{DOWN}")

Send("{TAB}")

Send("{N}")

Send("{I}")

WinWait("Easiteach North American Math Content - InstallShield Wizard","Finish")

Send("{ENTER}")

SplashOff()

MsgBox(0, "RM Easiteach Content Installation Script", "The MATH Content has Successfully Completed.")

Share this post


Link to post
Share on other sites
Nahuel

WinWaitActive("Easiteach North American Math Content - InstallShield Wizard", "&Next >")
WinActive("Easiteach North American Math Content - InstallShield Wizard")

So.. you are waiting for a window to become active and then activate it? :P

Try it this way:

WinActive("Easiteach North American Math Content - InstallShield Wizard")
WinWaitActive("Easiteach North American Math Content - InstallShield Wizard", "&Next >")

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.