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

Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-----Original Message-----
From: Foster, Richard - PAL [mailto:richard.fos...@peektraffic.com] 
Sent: 24 November 2010 17:27
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?sub
ject=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