Jump to content

Windows GUI installer automation


Recommended Posts

Hi,

 

Pretty new to Auto-IT.

I want to create an automation installation on my server for a specific installer.

I was able to click buttons (next buttons and etc')

My question is how I can insert text values (lets say IP addresses, username and passwords) automatically for a specific rubric on the installer?

Tried to follow KBs of Autoit without success.

Thanks you all.

Edited by Jos
Link to comment
Share on other sites

  • Developers

Welcome,

There is not enough information there to give you an proper answer. 
You need to provide the script with your effort and include the info found with AU3INFO about the Window/Control information which you are trying to provide info for.

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

Hi,

 

Sorry for the misinformation - new here as I said :)

 

The script is basic:

 

 

#RequireAdmin
Run(@ScriptDir & '\WebsenseInstaller-8.6.2.225.exe')
AutoItSetOption('MouseCoordMode', 0)

WinWait('Forcepoint Security Setup')
WinActivate('Forcepoint Security Setup')
MouseClick('primary', 363, 206, 1, 0)

 

I try to launch Forcepoint program installer and to click with MouseClick on "Modify Button":

image.png.e689c20308ea229e7764e35af7565a5a.png

 

 

Please let me know if any other information is needed.

 

Thanks!

Link to comment
Share on other sites

Your screenshot shows the program may be able to be controlled with ControlClick, which would be more reliable if supported. For your particular application, I think this might work:

ControlClick("Forcepoint Security Setup", "", "[CLASS:WindowsForms10.STATIC.app.0.33c0d9d; Instance:17]", "Left")

 

Edited by abberration
Fixed an error
Link to comment
Share on other sites

2 hours ago, Moses2492 said:

I want to create an automation installation on my server for a specific installer.

Often Installers or Setup programs provide a so-called Silent / Quiet option. This allows various settings to be passed to the Installer using command line parameters. You should check if this is possible with your software.

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to comment
Share on other sites

Since we do not see the full class name of the control, there maybe an misspell.  Try using the id directly :

ControlClick("Forcepoint Security Setup", "", 2949354, "Left")

FYI, the positon of the control shown in the Au3info tool is the client area position.  The position of the mouse shown in the tool will depend on Option/CoordMode menu.

ps. use tags when you post code as described in the link

Edited by Nine
Link to comment
Share on other sites

i never had any luck with win10 forms and standard autoit. standard autoit cannot interact with WPF applications

 

i would try UIAutomation instead. See FAQ 31

Edited by Earthshine

My resources are limited. You must ask the right questions

 

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