Jump to content

Automate AgExpert Analyst Install


Recommended Posts

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
Link to comment
Share on other sites

  • Moderators

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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • Moderators

derspinne,

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

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see 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

 

Link to comment
Share on other sites

  • Moderators

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.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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