Sign in to follow this  
Followers 0
smti

Progress Bar: Completion Percentage

3 posts in this topic

Hi Folks,

I am attempting to automate the installation of Vipre Anti-virus 5.0. Here is my problem: I need to be able to determine when the installation has completed. Once it has, other steps need to be executed. In an effort to ascertain whether the installation is complete, I am trying to read the percentage complete from the integrated progress bar. It seems that my variable $InstallProgress always returns 0 as the value

Using the window tool, I was able to verify the following:

Control ID of progress bar: 1053

Class: msctls_Progress32

; Now we need to determine the value of the progress bar:
Do
$InstallProgress = GUICtrlRead(1053)
MsgBox(0, "Install Progress...", "Install % is: " & $InstallProgress)
Until $InstallProgress = 100;

; Once Vipre is open -- Go to help --> Register and enter the key.
WinWait("VIPRE Antivirus","CNavFrameMainDlg")
WinMenuSelectItem("VIPRE Antivirus","CNavFrameMainDlg","&Help","&Register...")
WinWait("VIPRE Registration","&Buy Now...")

Any assistance you could provide with regard to determing the value of the progress bar OR whether the installation is complete would be greatly appreciated!

Thanks,

smti

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

I am using the RunWait and then verifying install with registry keys or files that didn't exist before the install.

Edit:

Edited by DarkDeveloper

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