I'm trying to add different text to an installer when in an upgrade scenario.  
I'm setting 3 properties based on the version detected:

    <Property Id="OLDERVERSIONFOUND" Secure="yes" />
    <Property Id="NEWERVERSIONFOUND" Secure="yes" />
    <Property Id="SAMEVERSIONFOUND" Secure="yes" />

My approach was to copy the welcome dialog and try to provide a different 
description if an upgrade is detected.  I'm trying to do something like this:

        <Control Id="Description" Type="Text" X="135" Y="80" Width="220" 
Height="60" Transparent="yes" NoPrefix="yes" 
Text="!(loc.WelcomeDlgDescription)" >
          <Condition Action="show">no versions found</Condition>
        </Control>
        <Control Id="UpgradeDescription" Type="Text" X="135" Y="80" Width="220" 
Height="60" Transparent="yes" NoPrefix="yes" 
Text="!(loc.WelcomeDlgUpgradeDescription)" >
          <Condition Action="show">same or older version found</Condition>
        </Control>

I have tried many different things here, but I'm having trouble with the logic 
in trying to detect when to show and hide the controls.  In the case of a fresh 
install none of the properties will be defined.  In the case of an upgrade 
OLDERVERSIONFOUND or SAMEVERSIONFOUND could be defined.

I'm wondering if anyone has any suggestions on how to approach this or if there 
is a better way?

Thanks,
Rob.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to