Create a custom action like this:
<CustomAction Id="setDBTYPE" Property="DBTYPE" Value="2" 
Execute="firstSequence" />

Then schedule a custom action like this:
<Custom Action="setDBTYPE" After="AppSearch">DBVERS</Custom>

Cheers,

Rob


On 09/10/2012 17:01, Justin Hull wrote:
> We have a situation where the original install uses a property named 'DBTYPE' 
> to determine optional nstall of files.  On the base install, some properties 
> are written to the registry, but DBTYPE is not.
>
> In the patch this is having a negative effect because the DBTYPE is defaulted 
> to '1' and when it was set to '2' in the base install, the patch installs the 
> wrong files.
>
> To correct this until we can perform a new full base version we are looking 
> to test the value of another property to set DBTYPE
>
>          <Property Id="DBVERS">
>              <RegistrySearch Id="GetRegDbVers" Root="HKLM" 
> Key="SOFTWARE\AssetPoint\[ProductName]" Type="raw" Name="DBVers" />
>          </Property>
>          <SetProperty Id="DBTYPE" After="AppSearch" Value="????">
>
> In the example, when DBVERS has a value (the value does not matter) we need 
> to set DBTYPE to '2'.  I have looked for examples, but cannot find a direct 
> method.  I am not certain how a custom action would work here.  Is there are 
> way to say
>
> IF DBVERS <> "" THEN SET DBTYPE="2"
>
>
> Justin Hull
> Sr. Developer
>
>
> Maximizing Asset Performance
> (864) 679-3513  Office
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
>



------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to