Jump to content

Installing an exe on remote machine


Recommended Posts

Hi all,

I've created an automated install using AutoIT V3, compiled, run the exe and my program installs like a dream.

I need to deploy this exe to another 15 machines and when I've copied my exe to another test machine & ran it just hangs and if I click the system tray icon it just gives the Pause Script or Exit options.

The only way around this I have found so far, is to actually also install AutoIT V3 on the remote machine, re-compile the script & run the newly created exe on there.

I just wondered if this is right (I think not) or is there an easier way to do this as it's going to be really fiddly otherwise?

I've checked AV & Microsoft logs and cannot find anything that's being blocked.

Thanks in advance.

 

Link to post
Share on other sites
18 minutes ago, Jayser279 said:

I just wondered if this is right (I think not)

Yes, it's not !

17 minutes ago, Jayser279 said:

The only way around this I have found so far, is to actually also install AutoIT V3 on the remote machine, re-compile the script & run the newly created exe on there.

Could you please post your script

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to post
Share on other sites
7 minutes ago, Musashi said:

Yes, it's not !

Could you please post your script

Hi, here it is - 

#RequireAdmin
Opt("TrayIconDebug", 1)
Opt("TrayAutoPause", 0)
Run(@ScriptDir & '\PCConnectSetup_216V0R2.28-UK.exe')
AutoitSetOption('MouseCoordMode', 0)

WinWait('PC Connect 216V0R2.28 Setup')
WinActivate('PC Connect 216V0R2.28 Setup')
Send('{enter}')
sleep(300)
Send('{enter}')
WinWait('FTDI CDM Drivers')
WinActivate('FTDI CDM Drivers')
Send('{enter}')
Sleep(300)
WinWait('Device Driver Installation Wizard')
WinActivate('Device Driver Installation Wizard')
Send('{enter}')
Sleep(300)
WinActivate('Device Driver Installation Wizard')
Send('{tab}{space}')
Sleep(300)
WinActivate('Device Driver Installation Wizard')
Send('{enter}')
sleep(300)
WinActivate('PC Connect 216V0R2.28 Setup')
Send('{enter}')

Link to post
Share on other sites
2 hours ago, Jayser279 said:

I've created an automated install using AutoIT V3, compiled, run the exe and my program installs like a dream.

Are you able to run the AU3 script uncompiled on any of the machines where AutoIt is installed?

2 hours ago, Jayser279 said:

When I've copied my exe to another test machine & ran it, it just hangs...

When you double-click the EXE file, does the UAC come up and ask for your permission to run it, or does it just hang immediately?

Have you tried right-clicking the EXE and selecting "Run as administrator"?

Link to post
Share on other sites

I do have another issue with this now though!

Although I can install the software whilst directly connected to PC, it doesn't do anything if I try to deploy & install from SCCM or running from an interactive command prompt.

Any ideas gratefully received :)

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...