Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Passing multiple propertyvalues to SETUP.EXE


3 replies to this topic

Eyvind

Eyvind
  • Members
  • 2 posts

Posted 25 April 2001 - 12:52

Hi all

Im having trouble with passing more than one property to SETUP.EXE

This is what i do :

setup.exe /v"INSTALLDIR=C:\My Folder MYPROPERTY=1"
setup.exe /v"INSTALLDIR="C:\My Folder" MYPROPERTY=1"
setup.exe /v"INSTALLDIR="C:\My Folder",MYPROPERTY=1"
setup.exe /vINSTALLDIR="C:\My Folder",MYPROPERTY="1"

Note that there is a space in "C:\my folder", if there is no space, it works.

Any ideas how to solve this ?

I know i can just call MSIEXEC, but i want to be sure that the customer gets the new InstallEngine installed.



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 April 2001 - 12:50

From help topic "Setup.exe Command-Line Parameters":

First, you need to place a backslash (\) in front of any quotation mark that resides within existing quotes.

In your case:

setup.exe /v"INSTALLDIR=\"C:\My Folder\" MYPROPERTY=1"


SteveP

SteveP
  • Members
  • 126 posts

Posted 26 April 2001 - 22:12

From the various samples you have given I would try:

setup.exe /v INSTALLDIR="C:\My Folder" MYPROPERTY=1

You will need the quote delimiters for the path with the white space, but the parameter list is generally space delimited.  The escape character (\) is only needed if you are working with quotes imbedded between quotes, and you don't need to put a quote prior to the name of the parameter.  In my experience, if you need to force a double quote character you can do so by using """ (three iterations of the character) in the parameter string.

Hope that helps.