flyonthewall Posted October 22, 2007 Share Posted October 22, 2007 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() Link to comment Share on other sites More sharing options...
Zedna Posted October 22, 2007 Share Posted October 22, 2007 (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 October 22, 2007 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
flyonthewall Posted October 22, 2007 Author Share Posted October 22, 2007 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now