marale Posted December 15, 2003 Share Posted December 15, 2003 could you help me to convert this line on Autoit V3: msiexec /i "F:\Adobe\reader 6\Adobe Reader 6.0 - Français.msi" /qb-! I've some problems with "". Because it's necessary for lauch the install. Thanks... Link to comment Share on other sites More sharing options...
Administrators Jon Posted December 15, 2003 Administrators Share Posted December 15, 2003 RunWait('msiexec /i "F:\Adobe\reader 6\Adobe Reader 6.0 - Français.msi" /qb-!') or RunWait("msiexec /i ""F:\Adobe\reader 6\Adobe Reader 6.0 - Français.msi"" /qb-!") Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
CyberSlug Posted December 15, 2003 Share Posted December 15, 2003 (edited) EDIT: Yeah, see what Jon said Explaination: In case a string or command line commands the double quote mark, you can use single quotes to enclose the entire string. $example = ' The man said, "Hello." ' Another way is to still use the double quotes for enclosing the entire string but replace any instances of " within the string with "". $example = " The man said, ""Hello."" " Edited December 15, 2003 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
marale Posted December 16, 2003 Author Share Posted December 16, 2003 Thanks for your solutions. But, if i want replace the letter F: by a variable like : $server= " \\server1\\appli" what is the solution for that the value of variable is visible: RunWait('msiexec /i "F:\Adobe\reader 6\Adobe Reader 6.0 - Français.msi" /qb-!') Sorry for my English !!! Link to comment Share on other sites More sharing options...
CyberSlug Posted December 16, 2003 Share Posted December 16, 2003 (edited) Use & to join strings or variables:$server= " \\server1\\appli"RunWait('msiexec /i " & $server & "\Adobe\reader 6\Adobe Reader 6.0 - Français.msi" /qb-!') Edited December 16, 2003 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
marale Posted December 16, 2003 Author Share Posted December 16, 2003 Thanks for your responce.This is my code:$server= " \\server1\appli"$comm= 'msiexec /i " & $server & "\Adobe\reader 6\Adobe Reader 6.0 - Français.msi" /qb-!'msgbox(4096,"valeur",$comm) This is what appears in the message box.msiexec /i " &$server & "\adobe\reader 6\Adobe Reader 6.0 - Français.msi" /qb-!I must have the value of $server in the commande line like this :msiexec /i "\\server1\appli\Adobe\reader -\Adobe Reader 6.0 - Français.msi" /qb-! Link to comment Share on other sites More sharing options...
CyberSlug Posted December 16, 2003 Share Posted December 16, 2003 (edited) Sorry--I messed up the quotation marks! Try: $comm= 'msiexec /i "' & $server & '\Adobe\reader 6\Adobe Reader 6.0 - Français.msi" /qb-!' Edited December 16, 2003 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
marale Posted December 16, 2003 Author Share Posted December 16, 2003 Thank you Very much ! It's great !! Link to comment Share on other sites More sharing options...
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