Jump to content
Sign in to follow this  
MrBedo

Unknown Fucntion Name When Running Msi Install

Recommended Posts

MrBedo

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
MadBoy

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
Marc

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.
My Projects: Profiler, MakeSFX, UserInfo

Share this post


Link to post
Share on other sites
MHz

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
MadBoy

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
MrBedo

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.