Hey there,

I would like the UI to display a slightly different message to the user 
when we are upgrading (or downgrading) than the standard welcome dialog 
that is displayed on install.

To achieve this, I am trying to conditionally populate a property with 
the text we would like to display, which differs depending on whether we 
are installing or upgrading:

    <!-- set welcome message depending on if we are installing or 
upgrading -->
    <CustomAction Id="IsInstalling" Property="RESOLVER_WELCOME_TEXT" 
Value="installing text" />
    <CustomAction Id="IsUpgrading" Property="RESOLVER_WELCOME_TEXT" 
Value="upgrading text" />
    <InstallExecuteSequence>
      <Custom Action="IsInstalling" After="FindRelatedProducts">NOT 
OLDERVERSIONDETECTED</Custom>
      <Custom Action="IsUpgrading" 
After="IsInstalling">OLDERVERSIONDETECTED</Custom>
    </InstallExecuteSequence>

and then display the value of this property in my custom Welcome Dialog, 
by defining its description text control with:

                <Control Id="Description" Type="Text"
                     X="135" Y="80"
                     Width="220" Height="60"
                     Transparent="yes"
                     NoPrefix="yes"
                     Text="Hello 
[RESOLVER_WELCOME_TEXT][WIXUI_INSTALLDIR]" />

When I compile this, the welcome dialog does display the text "Hello 
C:\Program Files\Resolver One". So the custom dialog is clearly being 
displayed, and the property WIXUI_INSTALLDIR is being dereferenced. 
Presumably my custom property (RESOLVER_WELCOME_TEXT) is either never 
being set, or is set sometime after this welcome dialog is displayed.

We tried displaying this property on the ExitDialog too, but it appeared 
blank there as well - so it looks like our property is never being set.

We tried replacing the condition in our custom action (NOT 
OLDERVERSIONDETECTED) with 1, but this didn't change anything.

We have a second InstallExecuteSequence later in our main .wxs file. We 
tried merging the two, in case the second definition replaced the first, 
but to no avail.

Any help is much appreciated. Are we even going about this the right way?

Thanks,

    Jonathan

-- 
Jonathan Hartley      Made of meat.      http://tartley.com
tart...@tartley.com   +44 7737 062 225   twitter/skype: tartley



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to