Sign in to follow this  
Followers 0
switch

noob - how to hide windows

5 posts in this topic

Another noob question :) I've AutoIted a setup and I want to hide all windows it pops up. How can I do that? Thanks in advance.

#NoTrayIcon

FileInstall ( "vista_inspirat.exe" , @TempDir & "vista_inspirat.exe" );

Opt ( "WinWaitDelay" , 300 );
Opt ( "WinTitleMatchMode" , 4 );
Opt ( "WinDetectHiddenText" , 1 );

;RunSetup
Run ( @TempDir & "vista_inspirat.exe" );

;BeginSetup
WinWaitActive ( "Installer Language" , "Please select a language." );
Send ( "{ENTER}" ); 

;WelcomeScreenOK
WinWaitActive ( "Vista Inspirat 2 1.0 Setup" , "Welcome to the Vista Inspirat 2 1.0 Setup Wizard" );
Send ( "{ENTER}" );

;AgreeTheLicense
WinWaitActive ( "Vista Inspirat 2 1.0 Setup" , "Please review the license terms before installing Vista Inspirat 2 1.0." );
Send ( "{TAB}" );
...

;SelectModeOfInstallation
WinWaitActive ( "Vista Inspirat 2 1.0 Setup" , "Choose your mode of installation" );
Send ( "{DOWN}" );
...

;ChooseComponents
WinWaitActive ( "Vista Inspirat 2 1.0 Setup" , "Choose which features of Vista Inspirat 2 1.0 you want to install." );
Send ( "{TAB}" );
...

;SelectDestination
WinWaitActive ( "Vista Inspirat 2 1.0 Setup" , "Choose the folder in which to install Vista Inspirat 2 1.0." );
Send ( "C:\Windows\VistaMod\" );
...

;SelectStartMenuFolder
WinWaitActive ( "Vista Inspirat 2 1.0 Setup" , "Choose a Start Menu folder for the Vista Inspirat 2 1.0 shortcuts." );
Send ( "\Vista Inspirat 2" );
...

;Done
WinWaitActive ( "Vista Inspirat 2 1.0 Setup" , "Completing the Vista Inspirat 2 1.0 Setup Wizard" );
Send ( "{ENTER}" );

Exit

Share this post


Link to post
Share on other sites



Of course I've tried things like

Run ( @TempDir & "vista_inspirat.exe" , "" , @SW_HIDE );

but it didn't work..

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Yes, setup is executing properly. It's NSIS installer and first window is a splash.

Edited by switch

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