Jump to content

Automated Installation of eFax desktop stops on third window?


Recommended Posts

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

Link to comment
Share on other sites

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")

Link to comment
Share on other sites

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:

Link to comment
Share on other sites

This should do the job

; Fill in the username and password appropriate for your system.
Local $sUserName = "Administrator"
Local $sPassword = "xxxxxxxxxx"

RunAs($sUserName, @ComputerName, $sPassword, 0, "msiexec /i eFaxMessenger4.4.msi /qb", @SystemDir)
MsgBox(0,"", "Done!")

I didn't test it, but this should be your entire script.

Sorry for the belated response, I was out of my office yesterday.

Link to comment
Share on other sites

  • Moderators

I would suggest RunAsWait if you're going to do a MsgBox. With RunAs, the Msgbox will show up right away.

"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 stand corrected. I was going to switch that before posting, and forgot. :oops:

Here is the corrected version:

; Fill in the username and password appropriate for your system.
Local $sUserName = "Administrator"
Local $sPassword = "xxxxxxxxxx"

RunAsWait($sUserName, @ComputerName, $sPassword, 0, "msiexec /i eFaxMessenger4.4.msi /qb", @SystemDir)
MsgBox(0,"", "Done!")
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...