BKVCRN Posted April 7, 2011 Share Posted April 7, 2011 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 More sharing options...
dufran3 Posted April 7, 2011 Share Posted April 7, 2011 (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 April 7, 2011 by dufran3 Link to comment Share on other sites More sharing options...
BKVCRN Posted April 7, 2011 Author Share Posted April 7, 2011 Thanks for the reply. I did get it working and deployed through Psexec. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now