Jump to content

installer exe fails to run with Run() and fails to see Send() or ControlClick() activity


brownds
 Share

Recommended Posts

Hello all,

I met this interesting condition recently and did not resolve it (yet) and would be interested in others' comments!   I have used AutoIT very successfully and was expecting this to be another success story  :)

The first oddity was that the (software installer) EXE which I wanted AutoIT to launch, failed to launch with Run() - no error messages, nothing!   I worked around that with ShellExecute()

The second and show-stopping oddity is that once a window is active and correctly identified (meaning, correct title and correct strings in it) no amount of Send() or even ControlClick() will get it to see input.   Using a real mouse or real keyboard works fine.

I suspect that the EXE has hijacked the keyboard / mouse buffers in some way so that only "real" key and mouse events are visible to it.

Have any other members seen this behaviour?   I have written to the EXE's developers in the hope of learning more but I believe that I tried a substantial number of AutoIT methods to get it to work :)   The installer was written with JR Inno Setup if that makes a difference...

Kind regards,
Denis

Link to comment
Share on other sites

Most installation programs come with command line switches for a silent install. This one too?

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to comment
Share on other sites

Thanks, Water.

I will have a look... I suspect that Inno has something which could assist by reducing the number of screens.   Still needs AutoIT to insert the authorisation codes.

As it happens the installs were done manually (not onerous) but I will investigate this line and report back.   It may assist others, who knows :-)

Kind regards,
Denis

Link to comment
Share on other sites

It always help to provide some code, so that we can see any slight errors you MAY have made.

For instance, we don't know if you are using WinActivate, any wait, sleep even ..... or working directory, etc.

Edited by TheSaint

Make sure brain is in gear before opening mouth!
Remember, what is not said, can be just as important as what is said.

Spoiler

What is the Secret Key? Life is like a Donut

If I put effort into communication, I expect you to read properly & fully, or just not comment.
Ignoring those who try to divert conversation with irrelevancies.
If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.
I'm only big and bad, to those who have an over-active imagination.

I may have the Artistic Liesense ;) to disagree with you. TheSaint's Toolbox (be advised many downloads are not working due to ISP screwup with my storage)

userbar.png

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