Sign in to follow this  
Followers 0
danielandross

Question about WinWaitActive

2 posts in this topic

Hello,

I want to write scripts to make unattended software installations.

The only thing I achieved for now is to run a msi file which represents the setup file.

The rest does not work.

I may understood the Function WinWaitActive wrong:

e.g.

shellExecuteWait(@ScriptDir & "\wz120gev.msi")
WinWaitActive("WinZip 12.0 Setup","Willkommen beim WinZip 12.0 Installationsassistenten")
send("{ENTER}")
WinWaitActive("WinZip 12.0 Setup","Lizenzvereinbarungen")
ControlClick("WinZip 12.0 Setup","Lizenzvereinbarungen", "Button", 3)
Send("!w")

The line shellExecuteWait works!

1. problem:

WinWaitActive("WinZip 12.0 Setup","Willkommen beim WinZip 12.0 Installationsassistenten")

send("{ENTER}")

This only works one I start the compiled script the 2nd time (First icon still runs next to windows clock but the 1st install was canceled).

2. problem:

WinWaitActive("WinZip 12.0 Setup","Lizenzvereinbarungen")

ControlClick("WinZip 12.0 Setup","Lizenzvereinbarungen", "Button", 3)

Send("!w")

doesn't work neither. Button3 is a radio Button; once it is activated I need to send the !w. But after the "WinZip 12.0 Setup","Lizenzvereinbarungen" window appears the script does not continue.

Is it correct that the 2nd argument is the begin of the window text? So it is ok that I just use the first word? Can't find any information about that.

Do you see the error?

regards

Daniel

Share this post


Link to post
Share on other sites



Several things -

First - MSI can use command line switches. This can save you LOADS of time and make the installs more stable.

http://msdn.microsoft.com/en-us/library/aa367988.aspx

Second - You can use Opt("WinTitleMatchMode", 2) to use a partial string of the window title.

Third - I will PM you with some info you will be interested in.

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  
Followers 0