Jump to content

Recommended Posts

Posted

Hi

I'm using the following command:

Run("msiexec /i g:\ts3\ts3.msi /qn SERVER="myserver" ADDLOCAL="ALL"")

If I run this from the "Run" dialog box in Windows it works fine, but from within an autoit script I recieve an "unknown function name" error when it gets to the myserver part.

The SERVER="myserver" and ADDLOCAL="ALL" are additional parameters specifict to the ts3.msi file, so I'm guessing it's something to do with this.

Anyone got any ideas what I can do about this ?

many thanks

rich

Posted

Run("msiexec /i g:\ts3\ts3.msi /qn SERVER="myserver" ADDLOCAL="ALL"")

You need to double the quotes around "my server" too :)

Run("msiexec /i g:\ts3\ts3.msi /qn SERVER=""myserver""  ADDLOCAL=""ALL"" ")

should work i guess

My little company: Evotec (PL version: Evotec)

Posted (edited)

It's the Quote-Signs... either use doubled quotes (makes reading more difficult) or use ' instead:

Run('msiexec /i g:\ts3\ts3.msi /qn SERVER="myserver"  ADDLOCAL="ALL" ')

best regards

Marc

edit: madboy has been faster...need to improve my typing speed :)

Edited by Marc

Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL)

Posted

1st time that I have seen anyone use quotes in a MSI propertyname value. No spaces used, right?

In this case nope, but in other cases you can have spaces i guess..

My little company: Evotec (PL version: Evotec)

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