antmar904 Posted September 11, 2012 Share Posted September 11, 2012 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}") Link to comment Share on other sites More sharing options...
Chimaera Posted September 11, 2012 Share Posted September 11, 2012 (edited) why not just deploy it with a switch pn2342350.exe /silent some extra info here http://pnotepad.org/forums/?topic=silent-installation Edited September 11, 2012 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
antmar904 Posted September 11, 2012 Author Share Posted September 11, 2012 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 ????? Link to comment Share on other sites More sharing options...
Blue_Drache Posted September 11, 2012 Share Posted September 11, 2012 (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 September 11, 2012 by Blue_Drache Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache Link to comment Share on other sites More sharing options...
antmar904 Posted September 11, 2012 Author Share Posted September 11, 2012 ty blue i was not aware of the Control*(), i will def give it a try. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now