Sign in to follow this  
Followers 0
StOnge

Program Install Without Window Popping Up

5 posts in this topic

Hi,

I wrote a script that installs a program automatically, but I was wondering if it is possible to run the install without the window popping up, either by the install windows remaining hidden or minimized while issuing commands to it. Does @SW_HIDE accomplish this? I've tried a few options, but I'm rather confused by the @SW_HIDE help file. Can anyone clarify for me exactly what @SW_HIDE accomplishes?

Here is my script:

Run("C:\Documents and Settings\All Users\Templates\SOCO Templates\EXE\setup.exe")
        Sleep(1200)
        If WinExists("InsertCompanyAddInSetup", "through the steps") Then
            WinActivate("InsertCompanyAddInSetup", "through the steps")
            WinWaitActive("InsertCompanyAddInSetup", "through the steps")
            Send("!n")
            WinWaitActive("InsertCompanyAddInSetup", "Select Installation Folder")
            Send("!n")
            WinWaitActive("InsertCompanyAddInSetup", "Confirm Installation")
            Send("!n")
            WinWaitActive("InsertCompanyAddInSetup", "Installation Complete")
            WinClose("InsertCompanyAddInSetup", "Installation Complete")
            WinWaitClose("InsertCompanyAddInSetup", "Installation Complete")
            Sleep(600)
            ProcessClose("setup.exe")
        EndIf

As it stands now, the program installs just fine, but it would really be great if I get it to install without any windows popping up. You see, sometimes the user starts clicking around the window and it screws up. I read what I could on the @SW_HIDE command, but am a little confused.

Any help would be greatly appreciated.

Thanks!,

StOnge


www.stonge.com

Share this post


Link to post
Share on other sites



Try setup.exe /silent or something similar.

I tried Run("...setup.exe /silent") and it just makes the .exe not execute. If I put the /silent after the quotation marks, it isn't recognized. I also was unable to find anything about /silent in the AutoIt wiki or help file. Would you mind clarifying a little bit?

Thanks!,

StOnge


www.stonge.com

Share this post


Link to post
Share on other sites

No luck on switches for my setup.exe file. Is there any way to accomplish my ends with the @SW_HIDE command?


www.stonge.com

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