Jump to content

Recommended Posts

Posted

I tried the simple script below to automate the installation of my eFax client for my 140 users. The "RunAs" administrator works fine, but the eFax app starts and closes a "Computing space requirements" window. when the install closes that window the script stops. I'm guessing the apps opening and closing a window is interupting the script somehow. I'm a bit of a newbie on scripting, so any ideas on how I can get past this sticking point?

Jim

Posted

Sorry. Forgot the script. Here it is.

; Fill in the username and password appropriate for your system.

Local $sUserName = "Administrator"

Local $sPassword = "xxxxxxxxxx"

; Run a command prompt as the other user.

RunAs($sUserName, @ComputerName, $sPassword, 0, "msgrplus.exe", @SystemDir)

; Select Installed language default 'English' United States

WinWaitActive("eFax Messenger Setup")

Send("{ENTER}")

;This is the next window that needs a command sent to it.

WinwaitActive("eFax Messenger Setup" & "Welcome to eFax Messenger Setup Wizard")

;Trying to send a click command to a button, but the next window just stops and nothing happens.

ControlClick("eFax Messenger Setup" & "Welcome to eFax Messenger Setup Wizard", "next", "1497")

;I also tried "WinWaitActive" and anything else I could find that looked like it might work.

WinWaitActive("eFax Messenger Setup" & "Choose Setup Type")

Send("!t")

;

WinWaitActive("eFax Messenger Setup" & "End-User License Agreement")

Send("!a")

Send("!n")

;

WinWaitActive("eFax Messenger Setup" & "Ready to Install")

Send("!i")

;Close the setup wizard by clicking "Finish"

WinWaitActive("eFax Messenger Setup" & "COmpleting the eFax Messenger Setup Wizard")

Send("!f")

Posted

Do I add those line to the beginning of my script to extract the exe and make it an MSI? Or should this be done as a separate process? I apologize for my newbiness.

Jimathth

Posted

first extract the exe file, on your desktop. among the extracted files you will find a msi package. then you run my previous runas code after your credentials code. Then you won't have to manually click through everything..

No need to apologize, I was alot noobier then you pretty recently :ILA2:

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
×
×
  • Create New...