Jayser279 Posted July 27, 2021 Share Posted July 27, 2021 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 comment Share on other sites More sharing options...
Musashi Posted July 27, 2021 Share Posted July 27, 2021 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 "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 comment Share on other sites More sharing options...
Jayser279 Posted July 27, 2021 Author Share Posted July 27, 2021 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 comment Share on other sites More sharing options...
leuce Posted July 27, 2021 Share Posted July 27, 2021 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 comment Share on other sites More sharing options...
Jayser279 Posted July 27, 2021 Author Share Posted July 27, 2021 1 hour ago, leuce said: DOH! I've figured it out. I hadn't copied the actual software across with the EXE I'd created. All sorted now, thanks pseakins 1 Link to comment Share on other sites More sharing options...
Jayser279 Posted July 30, 2021 Author Share Posted July 30, 2021 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 comment Share on other sites More sharing options...
Developers Jos Posted July 30, 2021 Developers Share Posted July 30, 2021 The Send() commands won't work when there's no active screen. Look at the Wiki/FAQ's about this issue. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Jayser279 Posted August 2, 2021 Author Share Posted August 2, 2021 On 7/30/2021 at 9:55 AM, Jos said: The Send() commands won't work when there's no active screen. Look at the Wiki/FAQ's about this issue. Thanks, I shall take a look 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