Jump to content

New to autoIT first project need help!


Recommended Posts

the goal is to auto install an application with 1 click.

so far I have this.

Run("C:\Users\hjohnson\Desktop\ALLIT-GMU-CHT Remote Support Standard Procedures\..1..ccsetup321.exe")

Winwaitactive("(installer language)")

Send("{enter}")

The program launches but does not seem to register "enter", but when I press enter on my keyboard it goes to the next step of the installation process. So I am not understanding if I am doing the send wrong? I have tried the send that holds the key but no better result. Please help.

Link to comment
Share on other sites

Welcome to AutoIt and the forum!

You posted in the wrong forum. The developer forum is "A place for the v3 developers and C++ geeks to talk."

Please post questions in the General Help and Support or the Graphical User Interface (GUI) Help and Support forum.

Edited by water

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

  • Moderators

Hi, Pseudonymous. It appears from your post that you're trying to automate the install of CCleaner. Is there any reason you're not just doing a silent install, rather than trying to click your way through the GUI install? Something like this should suffice:

ShellExecuteWait("ccsetup321.exe", '/s')

If you're interested in all the command line options, you can check here : http://www.piriform.com/docs/ccleaner/advanced-usage/command-line-parameters

"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

I second JLogan. Don't try to automate a installer that has silent switches. It's just faster and much less of a headache to used the provided silent install feature.

http://www.piriform.com/docs/ccleaner/advanced-usage/command-line-parameters

Spoiler

“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”

 

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