Jump to content

Hide / Minimize installation


Recommended Posts

 

Hello! My name is Cristian and, to be honest, I speak 100% Spanish, so it is difficult for me to seek help. But I will comment .. I'm using Auto-it to "silence" application installations, and what I'm looking for is to minimize the installation, or hide it, while it is being done, so that the user does not interrupt the installation. I will leave 1 simple examples of my code very simple.

----------------------------------------------------------------

Name-Installer: "Mipony-installer.exe"

---------------------------------------------------------------

Opt("WinWaitDelay",100)
Opt("WinTitleMatchMode",4)
Opt("TrayIconHide", 1)

dim $txt1 , $txt2 , $txt3 , $txt4 , $txt5 , $txt6 ,$txt7 , $txt8 , $txt9

$txt1 ="Installer Language"
$txt2 ="Instalación de MiPony 3.0.4"
$txt3 =""
$txt4 =""
$txt5 =""
$txt6 =""
$txt7 =""
$txt8 =""
$txt9 =""


run("Mipony-Installer.exe")

WinWait($txt1 ,"Please select a language")
If Not WinActive($txt1 ,"Please select a language") Then WinActivate($txt1 ,"Please select a language")
WinWaitActive($txt1 ,"Please select a language")
ControlClick ($txt1 ,"Please select a language", "Button1")

WinWait($txt2 ,"Bienvenido al Asistente")
If Not WinActive($txt2 ,"Bienvenido al Asistente") Then WinActivate($txt2 ,"Bienvenido al Asistente")
WinWaitActive($txt2 ,"Bienvenido al Asistente")
ControlClick ($txt2 ,"Bienvenido al Asistente", "Button2")

WinWait($txt2 ,"Acuerdo de licencia")
If Not WinActive($txt2 ,"Acuerdo de licencia") Then WinActivate($txt2 ,"Acuerdo de licencia")
WinWaitActive($txt2 ,"Acuerdo de licencia")
ControlClick ($txt2 ,"Acuerdo de licencia", "Button4")
ControlClick ($txt2 ,"Acuerdo de licencia", "Button2")

WinWait($txt2 ,"Elegir lugar de instalación")
If Not WinActive($txt2 ,"Elegir lugar de instalación") Then WinActivate($txt2 ,"Elegir lugar de instalación")
WinWaitActive($txt2 ,"Elegir lugar de instalación")
ControlClick ($txt2 ,"Elegir lugar de instalación", "Button2")

WinWait($txt2 ,"Completando el Asistente de Instalación de MiPony")
If Not WinActive($txt2 ,"Completando el Asistente de Instalación de MiPony") Then WinActivate($txt2 ,"Completando el Asistente de Instalación de MiPony")
WinWaitActive($txt2 ,"Completando el Asistente de Instalación de MiPony")
ControlClick ($txt2 ,"Completando el Asistente de Instalación de MiPony", "Button4")
ControlClick ($txt2 ,"Completando el Asistente de Instalación de MiPony", "Button2")

;Cierra Aplicacion
Sleep("200")
ProcessClose("Mipony.exe.exe")

Exit

---------------------------------------------------------------

Note: 

The installation is perfect, but I would like to hide the installation windows.

Regards!! :)

 

Link to comment
Share on other sites

Yes! I had tried with all the commands to silence, and I realized that I had to change to CAPS "/ S", so that it would work for me ... Anyway it is very difficult to hide as I mentioned, the installation by au3 ?

Link to comment
Share on other sites

  • Developers
56 minutes ago, xris09 said:

Anyway it is very difficult to hide as I mentioned, the installation by au3 ?

That all depends on the installer and how it interacts with the desktop. The easy way to hide it is to run it under different credentials to avoid any interaction with the desktop at all, but the /S(ilent) option is always preferred as there are no exceptions to worry about and it should always finish properly.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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