1<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" 2 xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> 3 <Product 4 Id="*" 5 UpgradeCode="@CPACK_WIX_UPGRADE_CODE@" 6 Name="@CPACK_WIX_PACKAGE_NAME@" 7 Version="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@.@TINY_VERSION@" 8 Language="1033" 9 Manufacturer="@MANUFACTURER@"> 10 11 <Package Id='*' 12 Keywords='Installer' 13 Description='MariaDB Server' 14 Manufacturer='@MANUFACTURER@' 15 InstallerVersion='301' 16 Languages='1033' 17 Compressed='yes' 18 SummaryCodepage='1252' 19 Platform='@Platform@'/> 20 21 <MediaTemplate EmbedCab="yes" MaximumUncompressedMediaSize="2" CompressionLevel="high"/> 22 23 <!-- Upgrade --> 24 <Upgrade Id="@CPACK_WIX_UPGRADE_CODE@"> 25 <?if "@PATCH_VERSION@" != "0"?> 26 <UpgradeVersion 27 Minimum="@MAJOR_VERSION@.@MINOR_VERSION@.0" 28 IncludeMinimum="yes" 29 Maximum="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@.@TINY_VERSION@" 30 IncludeMaximum="yes" 31 Property="OLDERVERSIONBEINGUPGRADED" 32 MigrateFeatures="yes" 33 /> 34 <?endif?> 35 <UpgradeVersion 36 Minimum="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@.@TINY_VERSION@" 37 Maximum="@MAJOR_VERSION@.@MINOR_VERSION@.999" 38 IncludeMinimum="no" 39 OnlyDetect="yes" 40 Property="NEWERVERSIONDETECTED" /> 41 </Upgrade> 42 <Condition Message="A more recent version of [ProductName] is already installed. Setup will now exit."> 43 NOT NEWERVERSIONDETECTED OR Installed 44 </Condition> 45 <InstallExecuteSequence> 46 <RemoveExistingProducts After="InstallFinalize"/> 47 </InstallExecuteSequence> 48 49 50 <InstallUISequence> 51 <AppSearch After="FindRelatedProducts"/> 52 </InstallUISequence> 53 54 <!-- UI --> 55 <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"></Property> 56 <UIRef Id="WixUI_ErrorProgressText" /> 57 <UIRef Id="@CPACK_WIX_UI@" /> 58 59 60 <!-- License --> 61 <WixVariable 62 Id="WixUILicenseRtf" 63 Value="@COPYING_RTF@"/> 64 65 <!-- Installation root--> 66 <Directory Id='TARGETDIR' Name='SourceDir'> 67 <Directory Id='@PlatformProgramFilesFolder@'> 68 <Directory Id='INSTALLDIR' Name='@CPACK_WIX_PACKAGE_BASE_NAME@ @MAJOR_VERSION@.@MINOR_VERSION@'> 69 </Directory> 70 </Directory> 71 </Directory> 72 73 <!-- CPACK_WIX_FEATURES --> 74 @CPACK_WIX_FEATURES@ 75 76 <!-- CPACK_WIX_DIRECTORIES --> 77 @CPACK_WIX_DIRECTORIES@ 78 79 <!--CPACK_WIX_COMPONENTS--> 80 @CPACK_WIX_COMPONENTS@ 81 82 <!--CPACK_WIX_COMPONENTS_GROUPS --> 83 @CPACK_WIX_COMPONENT_GROUPS@ 84 85 <!--CPACK_WIX_INCLUDES --> 86 @CPACK_WIX_INCLUDES@ 87 </Product> 88 89</Wix> 90