BigRedEO Posted March 26, 2013 Posted March 26, 2013 I created an AutoIt script using the Au3 Recorder to run an OpenSSH Uninstall/Install - it uninstalls an older version of Open SSH and installs the most recent using an .exe. I recorded all the steps I would need to run all of that and the .au3 works great, but the problem is that I need it to run as part of a batch script update to about 300 offsite locations while they are off their PCs overnight. We are doing several others things in this batch script and in testing, it always hangs when it gets to the C:\AutotIt3.exe OpenSSHInstall.Au3 command, which makes me think it needs to be run silently. Yet that command runs fine when run by hand at the command line and watching AutoIt whiz through it's thing to completion. I've tried C:\AutotIt3.exe /S OpenSSHInstall.Au3 and C:\AutotIt3.exe /q OpenSSHInstall.Au3 but both give me errors. Any ideas?Thank you,From a self-proclaimed noob
water Posted March 26, 2013 Posted March 26, 2013 Why don't you compile the au3 script to an exe? So you don't need to call AutoIt3.exe Doesn't OpenSSH provide a silent install/uninstall command line switch? My UDFs and Tutorials: Reveal hidden contents UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
BigRedEO Posted March 26, 2013 Author Posted March 26, 2013 On 3/26/2013 at 7:19 PM, 'water said: Why don't you compile the au3 script to an exe? So you don't need to call AutoIt3.exeDoesn't OpenSSH provide a silent install/uninstall command line switch?Unfortunately, the OpenSSH install exe does not provide a silent switch. It was created using NullSoft and none of the normal switches for that work, hence my need to try AutoIt as a go-around to that.So, compile the .au3 I've already created and then add a switch when calling the .exe?
water Posted March 26, 2013 Posted March 26, 2013 Switch "/S" should do a silent install/uninstall?Compile OpenSSHInstall.Au3 to OpenSSHInstall.exe and then run OpenSSHInstall.exe and pass the parameters the compiled script needs. My UDFs and Tutorials: Reveal hidden contents UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
BigRedEO Posted March 26, 2013 Author Posted March 26, 2013 On 3/26/2013 at 7:34 PM, 'water said: Switch "/S" should do a silent install/uninstall?Compile OpenSSHInstall.Au3 to OpenSSHInstall.exe and then run OpenSSHInstall.exe and pass the parameters the compiled script needs.I shall try and see what happens!Thank you!
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