Jump to content

Progress bar for silent program installations


Gyppie
 Share

Recommended Posts

Hi!

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
GUISetState()


While 1
    Switch GUIGetMsg()
        Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd

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

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...