Sign in to follow this  
Followers 0
BKVCRN

Simple Install Script?

3 posts in this topic

Hi,

Completely new to AutoIT, which is likely evident by the nature of this post. Basically what I am wanting to do is to remotely install the Adobe Reader program remotely on a network. Essentially when I try to execute this it starts, but seems to hang and do nothing. Not sure if it makes any difference, but I will need to execute this on both Windows 7 and XP machines.

Below is the code I am using. Any ideas? I'm thinking\hoping it is a rookie mistake.

Thanks in advance.

; Variables

Local $sUsername = "user"

Local $sPassword = "password"

Local $sDomain = "domain"

Local $sShare = "\\path\to\file\file.exe"

;Run Program as Another User

RunAs($sUsername, $sDomain, $sPassword, 0, $sShare ,@TempDir)

WinWaitActive("Adobe Reader X (10.0.1) - Setup", "&Install")

Send("!i")

WinWaitActive("Adobe Reader X (10.0.1) - Setup", "&Finish")

Send("!f")

;Show a message

MsgBox(0, "", "Completed")

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Try incorporating this into your Run String...worked for me installing in the past, and you don't have to wait for windows, and it eliminates having to use the send keys. :)

RunWait($FilePath & ' /sPB')
Edited by dufran3

Share this post


Link to post
Share on other sites

Thanks for the reply. I did get it working and deployed through Psexec.

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  
Followers 0