# Simple Install Script?

## Recommended Posts

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.

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

Send("!i")

Send("!f")

;Show a message

MsgBox(0, "", "Completed")

##### Share on other sites

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 on other sites

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

## Create an account

Register a new account

• ### Recently Browsing   0 members

×

• Wiki

• Back

• #### Beta

• Git
• FAQ
• Our Picks
×
• Create New...