Sign in to follow this  
Followers 0
sparkle

msiexec problem : syntax error

3 posts in this topic

#1 ·  Posted (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 by sparkle

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 by sparkle

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  
Followers 0