<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
Value="UpgradeWarningDlg" Order="1">PREVIOUSVERSIONSINSTALLED</Publish>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
Value="LicenseAgreementDlg" Order="2">NOT
PREVIOUSVERSIONSINSTALLED</Publish>

Somewhere on this list someone once described the case where, if more than
one NewDialog event has a TRUE condition, it uses the highest-ordered one
and ignores all the others. You have to have all of your NewDialog (and
SpawnDialog, if I recall correctly) entries have mutually-exclusive
conditions for any given Dialog/Control combination. I think it's documented
on MSDN as well, but not very well or clearly.

-----Original Message-----
From: Foster, Richard - PAL [mailto:richard.fos...@peektraffic.com] 
Sent: Wednesday, November 24, 2010 9:27 AM
To: 'wix-users@lists.sourceforge.net'
Subject: [WiX-users] Showing a dialog warning users they are upgrading.

Greetings all,

I am trying to modify an installation so it warns users (by displaying an
additional dialog during the installation process) if the installation will
perform a major upgrade. For some reason, Windows Installer is not behaving
the way I expect, presumably because I've done something stupid somewhere.

In the main WXS file, there is an Upgrade element, like the one shown here:

<Upgrade Id="---deleted---">
  <UpgradeVersion Maximum="$(var.Version)"
Property="PREVIOUSVERSIONSINSTALLED" OnlyDetect="no" IncludeMaximum="no" />
</Upgrade>

I have created a dialog, and tried to bind it into the user interface
sequence as follows:

<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
Value="UpgradeWarningDlg" Order="1">PREVIOUSVERSIONSINSTALLED</Publish>
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
Value="LicenseAgreementDlg" Order="2">1</Publish>

I have confirmed, using the Windows Installer log file, that
PREVIOUSVERSIONSINSTALLED does get set when an older version is present.
Unfortunately the UI is still going directly to the LicenseAgreementDlg and
is never showing the UpgradeWarningDlg.

I imagine I'm doing something dumb... but so far I haven't found anything
helpful in the list archives etc. Can anyone suggest what the problem is?

Regards,
Richard


Richard J Foster B.Eng
--------------------------------
Software Engineer
Peek Traffic Corporation
Sustainable Solutions for Traffic Technologies - THINK PEEK
2906 Corporate Way
Palmetto, FL 34221
Phone: (941) 845-1223
Fax: (941) 365-0837
Email:
richard.fos...@peektraffic.com<mailto:richard.fos...@peektraffic.com?subject
=Signature%20Response>
website: www.peektraffic.com<http://www.peektraffic.com>


----------------------------------------------------------------------------
--
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to