Jump to content

Message Box issue


Recommended Posts

I am automating the installation of a business application that is troubling me. I get through the entire installation but cannot figure out why I cannot click the "OK" button on the final message box that pops up telling me that the installation was successful. The title of the messagebox is "information" and the Control ID for the OK button is 2. I have tried using the following example, but it does not work.

ControlClick("Information", "Setup has completed successfully.", 2)

I've tried WinWaitActive, WinClose, and WinWaitClose.

I don't know what I am doing wrong.

Any help would be greatly appreciated!!!

Link to comment
Share on other sites

Here is the code that I am using.

;Run The QuickExpense Installer
Run("C:\Install\Applications\QuickExp\Setup.exe")

;Wait for Setup Form, select Next
WinWaitActive("QuickXpense Enterprise 2.4.1 Setup")
ControlClick("QuickXpense Enterprise 2.4.1 Setup", "", 1)

;Select default destination dir, select Next
WinWaitActive("Choose Destination Location")
ControlClick("Choose Destination Location", "", 1)

;Default Components, select Next
WinWaitActive("Select Components")
ControlClick("Select Components", "", 1)

;Default Program Group, select Next
WinWaitActive("Create Program Group")
ControlClick("Create Program Group", "", 1)

;Done - Now click the Ok button in the messagebox to exit
WinWaitActive("QuickXpense Enterprise 2.4.1 Setup")
ControlClick("Information", "Setup has completed successfully.", 2)

;Copy some forms over the the appropriate folder
FileCopy "C:\Install\Applications\QuickExp\Forms\*.*" "C:\XMS\QXpense\Forms\ ,1"
Exit
Link to comment
Share on other sites

Awesome, that did it!!!!

Thanks

One more quick thing. How do I close a folder that opens after setup is complete?

For example "C:\Documents and Settings\All Users\XMS"

not...

WinWaitActive("QuickXpense Enterprise 2.4.1 Setup")
ControlClick("Information", "Setup has completed successfully.", 2)oÝ÷ Ù»­¥êájºÚ"µÍÚ[ØZ]
    ][ÝÒ[ÜX][Û][ÝË    ][ÝÔÙ]ÈÛÛ]YÝXØÙÜÙ[K][ÝÊBÛÛÛÛXÚÊ  ][ÝÒ[ÜX][Û][ÝË    ][ÝÔÙ]ÈÛÛ]YÝXØÙÜÙ[K][ÝË
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...