Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Simulate clicking Acceptance Agreement and other buttons

Posted on 2003-03-05
Medium Priority
Last Modified: 2010-05-01
I need to run a setup (.EXE) that requires user interaction.  Like any other setup, there are buttons that need to be clicked, to accept the license agreement, etc.  I need to run this setup unattended.
My question is, is there a way to make Visual Basic "see" these popup windows during setup, and then "click" the buttons without the user having to do anything?
Question by:singer01

Assisted Solution

deadlyfluvirus earned 60 total points
ID: 8073749
You can use the Veritas WinInstaller LE located on the Microsoft Windows 2000 Advanced Server CD-Rom under D:\VALUEADD\3RDPARTY\MGMT\WINSTLE.

This program allows you to make an image of a machine before the program is installed, and then an image after the program is installed.

It then 'subtracts' the two images, and builds an MSI (Microsoft Installer) file that you can then run.

Let me know if you have any questions.
LVL 10

Accepted Solution

aeklund earned 90 total points
ID: 8074149
Yes, you can do this with VB... it requires FindWindow, FindWindowEx, SendMessage, etc.. functions..  but it is possible..

I just thought I would recommend a free 3rd party util that will do this instead of posting pages of code to do it in vb..

Use the utility called "AutoIt":

Expert Comment

ID: 8900626
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Experts: Post your closing recommendations!  Who deserves points here?
LVL 49

Expert Comment

ID: 9074005
Moderator, my recommended disposition is:

    Split points between: deadlyfluvirus and aeklund

DanRollins -- EE database cleanup volunteer

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

578 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question