Jump to content
Sign in to follow this  
Jimathth

Automated Installation of eFax desktop stops on third window?

Recommended Posts

Jimathth

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

Share this post


Link to post
Share on other sites
tes5884
  • You're script is not attached.
  • If you can can find silent switches, you'll have a much easier time..

Share this post


Link to post
Share on other sites
Jimathth

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

Share this post


Link to post
Share on other sites
tes5884

try extracting the EXE files

msgrplus.exe /extract:new_folder

Then

Run("msiexec /i eFaxMessenger4.4.msi /qb")

or

RunAs($sUserName, @ComputerName, $sPassword, 0, "[/font][/color]msiexec /i eFaxMessenger4.4.msi /qb[color=#282828][font=helvetica, arial, sans-serif]", @SystemDir)

should work

Edited by tes5884

Share this post


Link to post
Share on other sites
Jimathth

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

Share this post


Link to post
Share on other sites
tes5884

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:

Share this post


Link to post
Share on other sites
Exit

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

There is a syntax error. It should read:

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

Same in controlclick.


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites
tes5884

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.

Share this post


Link to post
Share on other sites
tes5884

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

Share this post


Link to post
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
Sign in to follow this  

×