MrBedo Posted March 20, 2006 Posted March 20, 2006 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
MadBoy Posted March 20, 2006 Posted March 20, 2006 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)
Marc Posted March 20, 2006 Posted March 20, 2006 (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 March 20, 2006 by Marc Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL)
MHz Posted March 20, 2006 Posted March 20, 2006 1st time that I have seen anyone use quotes in a MSI propertyname value. No spaces used, right?
MadBoy Posted March 20, 2006 Posted March 20, 2006 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)
MrBedo Posted March 21, 2006 Author Posted March 21, 2006 DOH ! Thanks for that guys, worked first time. Much appreciated
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now