Jump to content

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.

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

Link to comment
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
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...