Sign in to follow this  
Followers 0
MrBedo

Unknown Fucntion Name When Running Msi Install

6 posts in this topic

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

Share this post


Link to post
Share on other sites



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)

Share this post


Link to post
Share on other sites

#3 ·  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

It's my job to comfort the disturbed and to disturb the comfortable.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

DOH ! :)

Thanks for that guys, worked first time.

Much appreciated

Share this post


Link to post
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
Sign in to follow this  
Followers 0