Sign in to follow this  
Followers 0
itaiptz

autoit script with ControlClick dont run with psexec on remote pc

5 posts in this topic

#1 ·  Posted

hey 

i created a autoit script and compiled him to exe and when i run hum on the remote computer with psexec 

i can see the prosses sart on the remote computer but it stay on and didnt do anything

 

when i run the script manually on the remote cimputer its work great 

 

this is the script

 

 

#RequireAdmin
#include <AutoItConstants.au3>

ShellExecute("C:\burnaware_free_10.2.exe")

While ProcessExists("burnaware_free_10.2.exe")
;SplashTextOn("Title", "Message goes here.", 650, 500, -1, -1,  $DLG_MOVEABLE , "", 24)


WinWait("Select Setup Language" , "Select the language to use during the installation:" )
ControlClick("Select Setup Language" , "Select the language to use during the installation:" , "[CLASS:TNewButton; INSTANCE:1]" )

WinWait("Setup - BurnAware Free" , "Welcome to the BurnAware Free Setup Wizard" )
ControlClick("Setup - BurnAware Free" , "Welcome to the BurnAware Free Setup Wizard" , "[CLASS:TNewButton; INSTANCE:1]" )

WinWait("Setup - BurnAware Free" , "License Agreement" )
ControlClick("Setup - BurnAware Free" , "License Agreement" , "[CLASS:TNewRadioButton; INSTANCE:1]" )
ControlClick("Setup - BurnAware Free" , "License Agreement" , "[CLASS:TNewButton; INSTANCE:2]" )

WinWait("Setup - BurnAware Free" , "Select Destination Location" )
ControlClick("Setup - BurnAware Free" , "Select Destination Location" , "[CLASS:TNewButton; INSTANCE:3]" )

WinWait("Setup - BurnAware Free" , "Select Start Menu Folder" )
ControlClick("Setup - BurnAware Free" , "Select Start Menu Folder" , "[CLASS:TNewButton; INSTANCE:4]" )


WinWait("Setup - BurnAware Free" , "Select Additional Tasks" )
ControlClick("Setup - BurnAware Free" , "Select Additional Tasks" , "[CLASS:TNewButton; INSTANCE:4]" )

WinWait("Setup - BurnAware Free" , "Ready to Install" )
ControlClick("Setup - BurnAware Free" , "Ready to Install" , "[CLASS:TNewButton; INSTANCE:4]" )

WinWait("Setup - BurnAware Free" , "Completing the BurnAware Free Setup Wizard" )
ControlClick("Setup - BurnAware Free" , "Completing the BurnAware Free Setup Wizard" , "[CLASS:TNewButton; INSTANCE:4]" )

ProcessClose ( "BurnAware.exe" )


   WEnd

 

 

 

 

Share this post


Link to post
Share on other sites



#2 ·  Posted

SOMEONE ?

Share this post


Link to post
Share on other sites

#3 ·  Posted

Have you reviewed this thread? Does BurnAware offer a silent install option?

Share this post


Link to post
Share on other sites

#4 ·  Posted

why don't you use it's built in command line parameters instead? using winwait and controlclick as the last option you want to use.

FVOGnYi.png

Share this post


Link to post
Share on other sites

#5 ·  Posted

The commandline options are definitely the way to go. For the record though, it sounds like the issue is likely that your process isn't running interactively. You would need to tell psexec to start burnaware (or whatever application) interactively (using -i), and then start your script/compiled exe interactively.

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