Sign in to follow this  
Followers 0
flyonthewall

Progress Bar

3 posts in this topic

If I manually run this script (& not push out to end-users) and would like to see the progress of the uninstall, where would I add this progress bar?

Thank you for any assistance.

RunWait (@ComSpec & ' /c "msiexec /x {0B1774B2-3A08-4780-B13A-D401D2945208} /q"', @TempDir, @SW_HIDE)
RunWait (@ComSpec & ' /c "msiexec /x {9EADC6BD-33BB-4E38-9607-998FB0788751} /q"', @TempDir, @SW_HIDE)
RunWait (@ComSpec & ' /c "msiexec /x {E58F01AD-B636-4960-8827-266AD991AFCD} /q"', @TempDir, @SW_HIDE)
RunWait (@ComSpec & ' /c "msiexec /x {57F2EB35-AC12-42C6-AEE8-F3DC33F2C2D4} /q"', @TempDir, @SW_HIDE)
RunWait (@ComSpec & ' /c "msiexec /x {0CD9E86D-5D7D-4614-961C-AA44ADA45A82} /q"', @TempDir, @SW_HIDE)
RunWait (@ComSpec & ' /c "msiexec /x {C1CCECCC-22D8-4542-B54A-D193BE81A0F3} /q"', @TempDir, @SW_HIDE)
RunWait (@ComSpec & ' /c "msiexec /x {CF592260-4681-4DD2-ACC9-853CF02D5E34} /q"', @TempDir, @SW_HIDE)

ProgressOn("Progress Meter", "Increments every second", "0 percent")
For $i = 10 to 100 step 10
    sleep(1000)
    ProgressSet( $i, $i & " percent")
Next
ProgressSet(100 , "Done", "Complete")
sleep(500)
ProgressOff()

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

ProgressOn("Progress Meter", "", "0 percent")
RunWait (@ComSpec & ' /c "msiexec /x {0B1774B2-3A08-4780-B13A-D401D2945208} /q"', @TempDir, @SW_HIDE)
ProgressSet( Round(1/7*100,0), Round(1/7*100,0) & " percent")
RunWait (@ComSpec & ' /c "msiexec /x {9EADC6BD-33BB-4E38-9607-998FB0788751} /q"', @TempDir, @SW_HIDE)
ProgressSet( Round(2/7*100,0), Round(2/7*100,0) & " percent")
RunWait (@ComSpec & ' /c "msiexec /x {E58F01AD-B636-4960-8827-266AD991AFCD} /q"', @TempDir, @SW_HIDE)
ProgressSet( Round(3/7*100,0), Round(3/7*100,0) & " percent")
RunWait (@ComSpec & ' /c "msiexec /x {57F2EB35-AC12-42C6-AEE8-F3DC33F2C2D4} /q"', @TempDir, @SW_HIDE)
ProgressSet( Round(4/7*100,0), Round(4/7*100,0) & " percent")
RunWait (@ComSpec & ' /c "msiexec /x {0CD9E86D-5D7D-4614-961C-AA44ADA45A82} /q"', @TempDir, @SW_HIDE)
ProgressSet( Round(5/7*100,0), Round(5/7*100,0) & " percent")
RunWait (@ComSpec & ' /c "msiexec /x {C1CCECCC-22D8-4542-B54A-D193BE81A0F3} /q"', @TempDir, @SW_HIDE)
ProgressSet( Round(6/7*100,0), Round(6/7*100,0) & " percent")
RunWait (@ComSpec & ' /c "msiexec /x {CF592260-4681-4DD2-ACC9-853CF02D5E34} /q"', @TempDir, @SW_HIDE)

    ProgressSet(100 , "Done", "Complete")
ProgressOff()

Edited by Zedna

Share this post


Link to post
Share on other sites

ProgressOn("Progress Meter", "", "0 percent")
RunWait (@ComSpec & ' /c "msiexec /x {0B1774B2-3A08-4780-B13A-D401D2945208} /q"', @TempDir, @SW_HIDE)
ProgressSet( Round(1/7*100,0), Round(1/7*100,0) & " percent")
RunWait (@ComSpec & ' /c "msiexec /x {9EADC6BD-33BB-4E38-9607-998FB0788751} /q"', @TempDir, @SW_HIDE)
ProgressSet( Round(2/7*100,0), Round(2/7*100,0) & " percent")
RunWait (@ComSpec & ' /c "msiexec /x {E58F01AD-B636-4960-8827-266AD991AFCD} /q"', @TempDir, @SW_HIDE)
ProgressSet( Round(3/7*100,0), Round(3/7*100,0) & " percent")
RunWait (@ComSpec & ' /c "msiexec /x {57F2EB35-AC12-42C6-AEE8-F3DC33F2C2D4} /q"', @TempDir, @SW_HIDE)
ProgressSet( Round(4/7*100,0), Round(4/7*100,0) & " percent")
RunWait (@ComSpec & ' /c "msiexec /x {0CD9E86D-5D7D-4614-961C-AA44ADA45A82} /q"', @TempDir, @SW_HIDE)
ProgressSet( Round(5/7*100,0), Round(5/7*100,0) & " percent")
RunWait (@ComSpec & ' /c "msiexec /x {C1CCECCC-22D8-4542-B54A-D193BE81A0F3} /q"', @TempDir, @SW_HIDE)
ProgressSet( Round(6/7*100,0), Round(6/7*100,0) & " percent")
RunWait (@ComSpec & ' /c "msiexec /x {CF592260-4681-4DD2-ACC9-853CF02D5E34} /q"', @TempDir, @SW_HIDE)

    ProgressSet(100 , "Done", "Complete")
ProgressOff()
great. thank you very much!

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