Jump to content

msiexec problem : syntax error


Recommended Posts

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 by sparkle
Link to comment
Share on other sites

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 by sparkle
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...