sparkle Posted March 18, 2010 Share Posted March 18, 2010 (edited) Hi all, I want to automate an installation but I've got some problems with msiexec. I've got syntax errors. Here is my script : DriveMapAdd("V:", "\\install") runwait(@SystemDir & "\msiexec.exe /I "v:\setup.msi ADDLOCAL=ALL SOFTWARE_CLASS=Professional INSTALLDIR="C:\pdf\" INSTALLDIR1="C:\view\" /passive) How I can I specify the installdir and installdir1 with quotes ? I try with variables: $MyMsi="V:\setup.msi" $MyMsi2="ADDLOCAL=ALL SOFTWARE_CLASS=Professional INSTALLDIR="C:\pdf\" INSTALLDIR1="C:\view\" /passive" runwait(@SystemDir & "\msiexec.exe /I " & $MyMsi $MyMsi2) But it's the same Thanks for your help. Edited March 18, 2010 by sparkle Link to comment Share on other sites More sharing options...
99ojo Posted March 18, 2010 Share Posted March 18, 2010 Hi, maybe this: $run = @SystemDir & "\msiexec.exe /I v:\setup.msi ADDLOCAL=ALL SOFTWARE_CLASS=Professional INSTALLDIR=""C:\pdf\"" INSTALLDIR1=""C:\view\"" /passive" MsgBox (0,"",$run) ;-)) Stefan Link to comment Share on other sites More sharing options...
sparkle Posted March 18, 2010 Author Share Posted March 18, 2010 (edited) Hi, maybe this: $run = @SystemDir & "\msiexec.exe /I v:\setup.msi ADDLOCAL=ALL SOFTWARE_CLASS=Professional INSTALLDIR=""C:\pdf\"" INSTALLDIR1=""C:\view\"" /passive" MsgBox (0,"",$run) ;-)) Stefan "" Yes, You're great. I change MsgBox (0,"",$run) with RunWait ( $run) And no more syntax errors. I didn't know the "" Thanks from France. I really appreciate. Edited March 18, 2010 by sparkle 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