Jump to content

Sorry, newbie here...RunWait an exe and pass a parameter


Recommended Posts

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...