Jump to content

Recommended Posts

Posted

hi all,

i have a script that will install programmers notepad with the send option.

is it possible to send key clicks BUT run the install silent so the installer GUI does not show on the screen?

here is my code:

Run("pn2342350.exe")

WinWaitActive("Setup - Programmer's Notepad","Welcome")

Send("{ENTER}")

WinWaitActive("Setup - Programmer's Notepad","License Agreement")

Send("{TAB}{A}{ENTER 6}")

WinWaitActive("Setup - Programmer's Notepad","Completing")

Send("{SPACE}{ENTER}")

Posted

this was just a test program, i know that i can use the /silent switch to install it silent.

i just wanted to know for future application deployments, can the installer GUI be hidden?

i think it can be with using: @SW_DISABLE ?????

Posted (edited)

Depends on the application and whether or not the programmer built the installer with a silent switch.

If the installer has not been built with a silent switch, you'll have to hand-code each step in the install using ControlClick() for the buttons, ControlCommand() for the radios and checkmark boxes, and ControlSetText() for the editbox fields, test the install to make sure it works, then hide the window and test it again.

Good luck.

Edit: By the way ... you'll never get much of anywhere using brute-force methods with just Send() for your tabs, enters and whatnot. Any fool can interrupt that by mashing the keyboard, thereby screwing up your carefully orchestrated dance of keystrokes.

Use the Control*() commands for direct interaction and manipulation of buttons and editboxes. It's more reliable on the order of an infinite magnitude.

Read the help file first and then if any of this continues to make sense, please see your nearest psychological evaluator for immediate remedial treatment.

Edited by Blue_Drache

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

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