Jump to content

Recommended Posts

Posted

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 :geek:

Posted

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

 

Posted

  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.exe

Doesn'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?

Posted

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

 

Posted

  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!

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...