You're talking about the launch condition (the one with a condition of NOT
NEWERVERSIONDETECTED), right? That isn't a type 19 custom action.

LaunchConditions by default are sequenced at 100. WelcomeDlg defaults to
being sequenced at 1298 (IIRC).

There are no type 19 custom actions in the snippets of code you supplied. A
type 19 CA would look like this:

<CustomAction ... Error='...' ... />

And would need to be scheduled in a sequence table.

Having said that, I don't know why a launch condition failure would show up
over the top of the welcome dialog.

-----Original Message-----
From: Dan Vasilov [mailto:d...@rms.ro] 
Sent: Friday, October 09, 2009 4:38 AM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Custom action type 19 displays message over the
"Welcome" dialog

This is the current code.


  <Product 
    Id="$(var.ProductCode)" 
    Name="$(var.ProductName)"
    Language="1033" 
    Version="$(var.ProductVersion)" 
    Manufacturer="$(var.Manufacturer)" 
    UpgradeCode="$(var.UpgradeCode)">
    
    <Package InstallerVersion="200" Compressed="no" />
    <Condition 
      Message="A newer version of [ProductName] is already installed.">NOT
NEWERVERSIONDETECTED</Condition>

        ...
    <UIRef Id="SetupMainUI" />

        
...
  <InstallExecuteSequence>
    <FindRelatedProducts Before="LaunchConditions" />
    <RemoveExistingProducts After="InstallValidate" />
  </InstallExecuteSequence>
  <InstallUISequence>
    <FindRelatedProducts Before="LaunchConditions" />

  </InstallUISequence>


        The UI is defined in a separate file and it looks like:

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
  <Fragment>
    <WixVariable Id="WixUIBannerBmp" Value="Images\ logo.jpg" />
    <WixVariable Id="WixUIDialogBmp" Value ="Images\splash.jpg"/>
    <UI Id="SetupMainUI">
      <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
      <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
      <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes"
/>

      <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />
      <Property Id="WixUI_Mode" Value="InstallDir" />

      <DialogRef Id="BrowseDlg" />
      <DialogRef Id="DiskCostDlg" />
      <DialogRef Id="ErrorDlg" />
      <DialogRef Id="FatalError" />
      <DialogRef Id="FilesInUse" />
      <DialogRef Id="MsiRMFilesInUse" />
      <DialogRef Id="PrepareDlg" />
      <DialogRef Id="ProgressDlg" />
      <DialogRef Id="ResumeDlg" />
      <DialogRef Id="UserExit" />

      <Publish Dialog="BrowseDlg" Control="OK" Event="DoAction"
Value="WixUIValidatePath" Order="3">1</Publish>
      <Publish Dialog="BrowseDlg" Control="OK" Event="SpawnDialog"
Value="InvalidDirDlg" Order="4">
        <![CDATA[WIXUI_INSTALLDIR_VALID<>"1"]]>
      </Publish>


      <Publish Dialog="ExitDialog" Control="Finish" Order="1"
Event="DoAction" Value="Launch">LAUNCHAPP</Publish>
      <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog"
Value="Return" Order="999">1</Publish>


      <Publish Dialog ="WelcomeDlg" Control="Next"
Property="POPULATEGROUPDATA" Value="1" Order="1">
        <!-- Set default value for this property; if the file data.bin is
missing, 
        set the property to 0 (use the default value).
        If the file exists, set the property to 1.
        The user will have the option to uncheck this option on the UI later
on.
        -->
        <![CDATA[DATABIN<>"0"]]>
      </Publish>
      <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
Value="InstallOptionsDlg" Order="999">1</Publish>



      <Publish Dialog="InstallOptionsDlg" Control="Next" Event="NewDialog"
Value="VerifyReadyDlg">
        <![CDATA[ NOT SHOWADVOPTIONS]]>
      </Publish>
      <Publish Dialog="InstallOptionsDlg" Control="Next" Event="NewDialog"
Value="AdvancedOptionsDlg">
        SHOWADVOPTIONS
      </Publish>

      <Publish Dialog="InstallOptionsDlg" Control="Back" Event="NewDialog"
Value="WelcomeDlg"/>

      <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog"
Value="InstallOptionsDlg" Order="1">
        <![CDATA[ NOT SHOWADVOPTIONS]]>
      </Publish>


      <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog"
Value="AdvancedOptionsDlg" Order="1">
        SHOWADVOPTIONS
      </Publish>

      <Publish Dialog ="AdvancedOptionsDlg" Control="Back" Event="NewDialog"
Value ="InstallOptionsDlg"/>
      <Publish Dialog ="AdvancedOptionsDlg" Control="Next" Event="NewDialog"
Value="VerifyReadyDlg" />


      <Publish Dialog="MaintenanceWelcomeDlg" Control="Next"
Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish>

      <Publish Dialog="MaintenanceTypeDlg" Control="RepairButton"
Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
      <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton"
Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
      <Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog"
Value="MaintenanceWelcomeDlg">1</Publish>





      <Property Id="ARPNOMODIFY" Value="1" />
    </UI>

    <UIRef Id="WixUI_Common" />
  </Fragment>
</Wix>



Shouldn't the condition be automatically checked before displaying any UI?

Thank you for taking your time to analyze this.

Dan


-----Original Message-----
From: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] 
Sent: Friday, October 09, 2009 2:23 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Custom action type 19 displays message over the
"Welcome" dialog

It seems that the Custom Actions are scheduled after the Welcome dialog or
somehow. How and where did you schedule them?


Best regards,
Sebastian Brand

Deployment consultant
E-Mail: sebast...@instyler.com

Instyler Setup - Creating WiX-based MSI installations, elegantly.
http://www.instyler.com



-----Original Message-----
From: Dan Vasilov [mailto:d...@rms.ro] 
Sent: Friday, October 09, 2009 11:04
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Custom action type 19 displays message over the
"Welcome" dialog

Hello,

 

 We have a Wix-based setup that must meet a set of pre-conditions. The
conditions are properly checked, however the error message is displayed over
the "Welcome" dialog. We've tried to edit the UISequence and show the
Welcome dialog only when the specified conditions are met, however the error
message is still displayed after the Welcome dialog is shown.

  Do you have a suggestion where to look for a solution?

 

Dan

----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


----------------------------------------------------------------------------
--
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) 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 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to