You could use 3 different properties. One for the command line, one for the 
registrysearch, and one for the default. Then have two set property custom 
actions conditioned on whether or not the command line property is set or if 
the registrysearch property is set. If they are, then you would set the default 
property to that value using the custom action. You can order them in the order 
you need to in order to get the precedence you want. Then just use the default 
property everywhere else.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of RussGreen
Sent: Sunday, October 21, 2007 8:56 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Command line parameters


I have 2 public properties in my MSI file.  Each property is set a default
value as well has a registrysearch to find a value..

e.g.

    <Property Id="MDBFULLPATH" Value="C:\Program
Files\eProject\database\eProject - empty.mdb">
      <RegistrySearch Id="MDBPathRegistry" Type="raw" Root="HKLM"
Key="Software\eProject" Name="DataSource" />
    </Property>

What I want to be able to do is pass in a value for this property from the
command line but that only works when RegistrySearch is commented out.

If the RegistrySeach returns a value then that should be used,
else the command line value should be used,
else the defautl Value should be used as a last resort.

Is this possible?

Russ
--
View this message in context: 
http://www.nabble.com/Command-line-parameters-tf4666532.html#a13330344
Sent from the wix-users mailing list archive at Nabble.com.


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