Small addition.  You also might want to add a launch condition to check
if extra property is included in the command line:

<Condition Message="FILENAME variable must be set in the command line">
  Installed OR FILENAME
</Condition>



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Richard
Sent: Thursday, October 18, 2007 10:23 AM
To: WiX Users
Subject: Re: [WiX-users] Passing Parameters to a WIX Msi from
commandline


In article
<[EMAIL PROTECTED]>,
    "Abdullah Ahmed" <[EMAIL PROTECTED]>  writes:

> Simple issue here, I need to pass in a property to my MSI from the
> commandline...the commandline would look something like this..
> 
> misexec product.msi /qr /norestart FILENAME="c:\data.xml"
> 
> I want it so that now in the MSI there is a property called FILENAME
with
> the value c:\data.xml and I wanna beable to use that property for
various
> things in the MSI.
> 
> How do I go about doing this?

MSI already supports this exactly as you describe.  Your command line
is correct.  Once you invoke the install this way, the property will
be set to the value given on the command line.  Only public
properties (all uppercase names) can be set from the command line.
-- 
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for
download
      <http://www.xmission.com/~legalize/book/download/index.html>

        Legalize Adulthood! <http://blogs.xmission.com/legalize/>

------------------------------------------------------------------------
-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to