Jump to content
Sign in to follow this  

Progress bar for silent program installations

Recommended Posts



I am making unnatended silent program installation files for my windows setup. And I thougth that a progress bar would be nice. Since I'm not so confident with autoit, and I have tried searching, I realy hope someone could help me put this together. I'm going to use the RunWait command for installing programs silently.

What I have found and want is this

#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <SendMessage.au3>

global $hGUI = GUICreate("Test", 420, 70)
GUICtrlCreateProgress(10, 20, 400, 20, $PBS_MARQUEE)
_SendMessage(GUICtrlGetHandle(-1), $PBM_SETMARQUEE, True, 5) ; final parameter is update time in ms

While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE

But I also want some text under the progress bar saying "installing program" etc, and after program is installed by RunWait command the progress bar stops and stand at 100%, and the text saying "done" etc.

Is this possible, and can somone please help me with this? :D

Share this post

Link to post
Share on other sites

You went at it the hard way. What's wrong with the simple ProgressOn()/ProgressSet()/ProgressOff()?


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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