Jump to content
Sign in to follow this  
Guest Frustrated_Worker

unattended installation won't work as planned

Recommended Posts

Guest Frustrated_Worker

Hi everybody,

I'm trying to automate the installation of a program.

I'm using Run and WinWaitActive to go through the installation windows.

It's working as it should be, showing the installation windows in "fast forward" .

Now I''m having the idea of using a progress bar and hiding the installation window.

But this will not work. The installation windows are still visible.

Where's my mistake?

Code excerpt:

--> snip:


GUICtrlSetData ($pro1,0)

FileChangeDir(@ScriptDir & $spath)

If $os = "WIN_XP" Then

Run($program, "", @SW_HIDE)

WinWaitActive("OpenVPN 2.0_rc16-gui-1.0-rc4 Setup")


GUICtrlSetData ($pro1,15)

WinWaitActive("OpenVPN 2.0_rc16-gui-1.0-rc4 Setup")


GUICtrlSetData ($pro1,30)

WinWaitActive("OpenVPN 2.0_rc16-gui-1.0-rc4 Setup","Choose Components")


GUICtrlSetData ($pro1,45)

WinWaitActive("OpenVPN 2.0_rc16-gui-1.0-rc4 Setup","Choose Install Location")

Send(@ProgramFilesDir & $tpath)


GUICtrlSetData ($pro1,60)



GUICtrlSetData ($pro1,75)

WinWaitActive("OpenVPN 2.0_rc16-gui-1.0-rc4 Setup","Installation Complete")


GUICtrlSetData ($pro1,90)

WinWaitActive("OpenVPN 2.0_rc16-gui-1.0-rc4 Setup","Click Finish to close this wizard.")


GUICtrlSetData ($pro1,100)


--> snip

For better understanding:

$pro1 is the progressbar.

$spath is the path where the installation file lies.

$prog :) ram is the name of the installation file.

Help is greatly appreciated.

Thanks in advance,


Share this post

Link to post
Share on other sites

Could try WinSetState("OpenVPN 2.0_rc16-gui-1.0-rc4 Setup","",@SW_MINIMIZE)

Or try


Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs

Share this post

Link to post
Share on other sites

I noticed you are using "Send".

Program will have to be "Visible" And "Active" in order to receive these "Send" commands.

What type of install is it, Inno, Installsheild ?

Might want to try a silent switch if possible.

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.