Jump to content

Difficult Final Stage of Office 2016 Upgrade - (Moved)

Recommended Posts

Hi there,

This is my second project using auto IT and have run into a problem I cant surmount myself. Usually I am progressing things using  examples from here, and the web in general, automating installations - my usual remit with AutoIT. 

Part of my job requires installing office 2016 in upgrade mode. All is well until the process completes and a "Close" button appears. Using the Window Info tool literally 'nothing' has

changed in light of visible/hidden text, control buttons/ID's or anything as far as I can tell. It's rather frustrating. I have tried taking off Spy++ to see if that reveals more info but to no avail. 

I can use a sleep command but I'm dealing with SDD machines and older HDD so it's going to be unreliable unless I create a massive timeout to takecare of the install time differences which then defeats the purpose of what I'm attempting to achieve. 

Is there perhaps way to silently keep clicking in the mouse coordinates region of where the button appears and then stop once the button is pressed so I can then progress with the rest of it, which is easy enough (new window info & button ID's etc.) ?

Code so far below, apologies if it's really banal stuff, keen to see how to progress from here for other scenarios that maybe similar in future projects. Thanks in advance for any ideas. 

; Script Start - Add your code below here
AutoItSetOption('SendKeyDelay', 5)
Run(@ScriptDir & '\setup.exe')
AutoItSetOption('MouseCoordMode', 0)

WinWait('Microsoft Office Professional Plus 2016', 'EULAID:O16_RTM_VL.1_RTM_EN')
WinActivate('Microsoft Office Professional Plus 2016')
MouseClick('primary', 175, 515, 1, 0)
MouseClick('primary', 500, 520, 1, 0)

WinWait('Microsoft Office Professional Plus 2016')
WinActivate('Microsoft Office Professional Plus 2016')
MouseClick('primary', 310, 213, 1, 0)


WinWait('Microsoft Office Professional Plus 2016')
WinActivate('Microsoft Office Professional Plus 2016')
MouseClick('primary', 548, 522, 1, 0)

ControlClick('Setup', '', 'Button1')



summary of window info :- 

>>>> Window <<<<
Title:    Microsoft Office Professional Plus 2016
Class:    SetupExe
Position:    652, 185
Size:    616, 564
Style:    0x14C80000
ExStyle:    0x00000100
Handle:    0x00000000001603B6

>>>> Control <<<<
Class:    NetUIHWND
Instance:    1
ClassnameNN:    NetUIHWND1
Advanced (Class):    [CLASS:NetUIHWND; INSTANCE:1]
Position:    0, 0
Size:    610, 535
ControlClick Coords:    238, 229
Style:    0x56000000
ExStyle:    0x00000000
Handle:    0x0000000000050420

>>>> Mouse <<<<
Position:    241, 255
Cursor ID:    0
Color:    0xFFFFFF

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<

>>>> Hidden Text <<<<
PLEASE NOTE: Your use of this software is subject to the terms and conditions of the license agreement by which you acquired this software.  For instance, if you are:

• a volume license customer, use of this software is subject to your volume license agreement.
• a MSDN customer, use of this software is subject to the MSDN agreement.

You may not use this software if you have not validly acquired a license for the software from Microsoft or its licensed distributors.


C:\Program Files (x86)\Microsoft Office\



Screenshot 2021-03-13 105657.png

Link to post
Share on other sites
  • Moderators

Moved to the appropriate forum.

Moderation Team

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:


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 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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...