More information... It looks like the Property action isn't being executed by 
the time the UI displays the page that I use to verify the contents. Where 
should I schedule the CA's so that they come after the Property calls but 
before the UI is displayed?

Thanks!

    <Property Id="REGWEBSERVICESURL" Secure="yes">
      <RegistrySearch Id="WebServicesUrlSearch" Root="HKLM" 
Key="Software\WSOD\Maestro" Name="MaestroWebServicesURL"  Type="raw"/>
    </Property>
    <Property Id="REGWEBUIURL" Secure="yes">
      <RegistrySearch Id="WebUIUrlSearch" Root="HKLM" 
Key="Software\WSOD\Maestro" Name="MaestroWebUIURL" Type="raw"/>
    </Property>

    <CustomAction Id="CAWEBUIURL" Property="WEBUIURL" Value="[CLWEBUIURL]"/>
    <CustomAction Id="CAWEBSERVICESURL" Property="WEBSERVICESURL" 
Value="[CLWEBSERVICESURL]"/>
    <CustomAction Id="CAWEBUIURL2" Property="WEBUIURL" Value="[REGWEBUIURL]"/>
    <CustomAction Id="CAWEBSERVICESURL2" Property="WEBSERVICESURL" 
Value="[REGWEBSERVICESURL]"/>

    <InstallUISequence>
      <Custom Action="CAWEBUIURL" 
Before="AppSearch"><![CDATA[CLWEBUIURL]]></Custom>
      <Custom Action="CAWEBSERVICESURL" 
Before="AppSearch"><![CDATA[CLWEBSERVICESURL]]></Custom>
      <Custom Action="CAWEBUIURL2" Before="AppSearch"><![CDATA[NOT CLWEBUIURL 
OR CLWEBUIURL = ""]]></Custom>
      <Custom Action="CAWEBSERVICESURL2" Before="AppSearch"><![CDATA[NOT 
CLWEBSERVICESURL OR CLWEBSERVICESURL = ""]]></Custom>
    </InstallUISequence>

-----Original Message-----
From: David Bartmess 
Sent: Tuesday, March 03, 2009 3:17 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Conditionally set a property from command line?

I've looked all over and not found a good answer to this.

I'm trying to set a property within WIX to a value set on the command line.
If there's not a command line property set, then it should read the value from 
the registry.

But I can't seem to get the syntax right, it either 1) always uses the command 
line option (even if it's not set) or 2) always uses the registry value.
 

Can someone point me in the right direction to solving this?

Thanks! 

 

David Bartmess

Wall Street On Demand 

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to