<SetProperty Id="DBTYPE" Value="2" After="AppSearch">DBVERS</SetProperty>

The condition means "if DBVERS has any value". An empty string is the same as
no value and is equivalent to a property that doesn't exist.

-----Original Message-----
From: Justin Hull [mailto:justin.h...@assetpoint.com] 
Sent: 09 October 2012 17:01
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Setting Property based on condition

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
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


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