This is "by design".  Is this a MSI you authored, or some 3rd party MSI that 
you fear others may have a newer version installed which is incompatible with 
your bundle?  (Note, if the MSI had been installed by a newer version of your 
bundle, the older bundle should block with an error like what you are asking.)

-----Original Message-----
From: cleme...@ghostdraft.com [mailto:cleme...@ghostdraft.com] 
Sent: Wednesday, April 09, 2014 12:50 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Bundle install won't fail on higher version of msi

Hi,

I have created a bundle with 4 msis in the chain using the standard 
bootstrapper. The problem is that the install does not fail if a higher version 
of the msi's are already installed on the machine.

---
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"; 
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"; 
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>
<Bundle UpgradeCode="{E72CD748-EF14-488F-8474-22201C7DE8BC}" Name="MyInstall" 
Version="4.4.18927.0" Manufacturer="Acme">
  <util:RegistrySearchRef Id='Netfx35Version'/>
  <BootstrapperApplicationRef 
Id="WixStandardBootstrapperApplication.RtfLicense"/>
  <WixVariable Id="WixStdbaLogo" Value="About.png"/>
  <WixVariable Id="WixStdbaLicenseRtf" Value="Acknowledgements.rtf" />
  <WixVariable Id="WixStdbaThemeXml" Value="RtfTheme.xml"/>
  <WixVariable Id="WixStdbaThemeWxl" Value="RtfTheme.wxl"/>
  <Chain>
   <MsiPackage SourceFile="Apple v1.msi" DisplayName="Apple" Visible="yes" 
Permanent="no" Vital="yes"/>
   <MsiPackage SourceFile="Banana v1.msi" DisplayName="Banana" Visible="yes" 
Permanent="no" Vital="yes"/>
   <MsiPackage SourceFile="Car v1.msi" DisplayName="Car" Visible="yes" 
Permanent="no" Vital="yes"/>
   <MsiPackage SourceFile="Feather v1.msi" DisplayName="Feather" Visible="yes" 
Permanent="no" Vital="yes"/>
  </Chain>
</Bundle>
<Fragment>
  <util:RegistrySearch Id="Netfx35Version" Variable="Netfx35Version" 
Result="exists" Root="HKLM" Key="SOFTWARE\Microsoft\Net Framework 
Setup\NDP\v3.5" Value="Version"/>
  <bal:Condition Message="The .Net Framework 3.5 is required to run this 
software. Please (re)install .Net Framework 3.5.">Netfx35Version</bal:Condition>
</Fragment>
</Wix>
---

If I run the Apple v1.msi then it will show a message that  a higher version is 
installed and won't continue.
However the above installation does not fail if "Apple v2" is already 
installed. Is there a way to show a warning message and/or fail the 
installation?

Regards,
Clement
------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration Continuously Automate 
Build, Test & Deployment Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to