Sign in to follow this  
Followers 0
derspinne

Automate AgExpert Analyst Install

5 posts in this topic

#1 ·  Posted (edited)

Ok I have this code :

#RequireAdmin

ShellExecute("setup_english.msi")

WinWait("AgExpert Analyst 2013-02 - InstallShield Wizard","WARNING: This progra")

WinActivate("AgExpert Analyst 2013-02 - InstallShield Wizard","WARNING: This progra")

ControlClick("AgExpert Analyst 2013-02 - InstallShield Wizard", "Welcome to the InstallShield Wizard for AgExpert Analyst 2013-02", "Button1")

WinWait("AgExpert Analyst 2013-02 - InstallShield Wizard", "I &do not accept the")

WinActivate("AgExpert Analyst 2013-02 - InstallShield Wizard", "I &do not accept the")

Send("!I &accept") ; It selected the I accept for the license and moved will should move to the next button below but it doesn't click on Next.

1st try: ControlClick("AgExpert Analyst 2013-02 - InstallShield Wizard", "&Next", "Button5")

2nd try: ControlClick("AgExpert Analyst 2013-02 - InstallShield Wizard", "", "[&Next >]")

3rd try: ControlClick("AgExpert Analyst 2013-02 - InstallShield Wizard", "[CLASS:Button; INSTANCE:5]", "[&Next >]")

4rt try: ControlClick("AgExpert Analyst 2013-02 - InstallShield Wizard", "", "[iD:1913]")

My problem here is after it accepted the License it moves to a button that is Not Button5 (Next) but it will go to Print button so I will print the Agreement. I know It's weird and I tried using the correct: ID, TEXT and CLASS but nothing seems to work in order to just click on Next.

>>>> Control <<<<

Class: Button

Instance: 5

ClassnameNN: Button5

Name:

Advanced (Class): [CLASS:Button; INSTANCE:5]

ID: 1913

Text: &Next >

Position: 306, 324

Size: 88, 22

ControlClick Coords: 36, 12

Style: 0x50032001

Any Help will be appreciated.

Regards.

Edited by derspinne

Share this post


Link to post
Share on other sites



Why would you resurrect a 6 year old thread for a completely different product?! Please start a new thread; you'll get a much better response.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

derspinne,

Good advice from JLogan3o13 there - please follow it in future. :)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

As YogiBear stated, this is an Installshield installation, which means you should be able to script it for a quiet install, and skip all that ControlClick mess.


√-1 2^3 ∑ π, and it was delicious!

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