Jump to content

Recommended Posts

Posted

I am attempting to script the installation of a VPN client using alternate credentials for users who are not local administrators.

From a command line, I can run the install and direct it to a configuration file as shown below:

*Start***********************

ngsetup.exe -f=ngsetup.ini

*End************************

In AutoIt, my script succeeds when run as below:

*Start***********************

RunWait("c:\aitemp\ngsetup.exe")

*End************************

However, when I add the parameter -f as shown below:

*Start***********************

RunWait("c:\aitemp\ngsetup.exe -f=nsetup.ini")

*End************************

the install proceeds as though the parameter were being ignored.

Can anyone suggest another method for running this exe and passing the required parameter to it?

Thanks,

Paul

Posted

runwait(@comspec & ' /c ' & 'c:\aitemp\ngsetup.exe -f=nsetup.ini')

it's actually in the notes section of that item in the help file.

---"Educate the Mind, Make Savage the Body" -Mao Tse Tung

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
×
×
  • Create New...