2010-04-23 14:25:45 +02:00
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
2010-02-18 23:52:35 +01:00
<Product
Id="*"
UpgradeCode="49EB7A6A-1CEF-4A1E-9E89-B9A4993963E3"
Name="MySQL Server @MAJOR_VERSION@.@MINOR_VERSION@"
2010-11-20 15:47:50 +01:00
Version="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@"
2010-02-18 23:52:35 +01:00
Language="1033"
2010-04-30 13:30:32 +02:00
Manufacturer="@MANUFACTURER@">
2010-02-18 23:52:35 +01:00
<Package Id='*'
Keywords='Installer'
Description="MySQL Database Server"
2010-04-30 13:30:32 +02:00
Manufacturer='@MANUFACTURER@'
2010-02-18 23:52:35 +01:00
InstallerVersion='200'
Languages='1033'
Compressed='yes'
SummaryCodepage='1252'
Platform='@Platform@'/>
2010-02-10 20:23:24 +01:00
<Media Id='1' Cabinet='product.cab' EmbedCab='yes' />
2010-02-18 23:52:35 +01:00
<!-- Upgrade -->
<Upgrade Id="49EB7A6A-1CEF-4A1E-9E89-B9A4993963E3">
<UpgradeVersion
Minimum="@MAJOR_VERSION@.@MINOR_VERSION@.0"
IncludeMinimum="yes"
2010-11-20 15:47:50 +01:00
Maximum="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@"
2010-07-24 17:26:45 +02:00
Property="OLDERVERSIONBEINGUPGRADED"
MigrateFeatures="yes"
/>
2010-02-18 23:52:35 +01:00
<UpgradeVersion
2010-11-20 15:47:50 +01:00
Minimum="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@"
2010-02-18 23:52:35 +01:00
OnlyDetect="yes"
Property="NEWERVERSIONDETECTED" />
</Upgrade>
<Condition Message="A later version of [ProductName] is already installed. Setup will now exit.">
NOT NEWERVERSIONDETECTED OR Installed
</Condition>
<InstallExecuteSequence>
<RemoveExistingProducts After="InstallInitialize"/>
</InstallExecuteSequence>
2010-07-24 17:26:45 +02:00
<!-- Save/restore install location -->
<CustomAction Id="SaveTargetDir" Property="ARPINSTALLLOCATION" Value="[INSTALLDIR]" />
<InstallExecuteSequence>
<Custom Action="SaveTargetDir" After="InstallValidate">
NOT
Installed
</Custom>
</InstallExecuteSequence>
<InstallUISequence>
<!-- App search is what does FindInstallLocation, and it is dependent on FindRelatedProducts -->
<AppSearch After="FindRelatedProducts"/>
</InstallUISequence>
<!-- Find previous installation -->
<Property Id="INSTALLDIR">
<RegistrySearch Id="FindInstallLocation"
Root="HKLM"
Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED]"
Name="InstallLocation"
Type="raw" />
</Property>
<Property Id="OLDERVERSION">
<RegistrySearch Id="FindOlderVersion"
Root="HKLM"
Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED]"
Name="DisplayVersion"
Type="raw" />
</Property>
<Property Id="DATADIR">
<RegistrySearch Id="FindDataDir"
Root="HKLM"
Key="SOFTWARE\MySQL AB\[ProductName]"
Name="DataLocation"
Type="raw" />
</Property>
<Property Id="INSTALLDIR2">
<RegistrySearch Id="FindInstallLocation2"
Root="HKLM"
Key="SOFTWARE\MySQL AB\[ProductName]"
Name="Location"
Type="raw" />
</Property>
<CustomAction Id="SetInstallDir2" Property="INSTALLDIR" Value="[INSTALLDIR2]" />
<InstallUISequence>
<Custom Action="SetInstallDir2" After="AppSearch">INSTALLDIR2</Custom>
</InstallUISequence>
2010-02-18 23:52:35 +01:00
<!-- UI -->
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"></Property>
<UIRef Id="@CPACK_WIX_UI@" />
<UIRef Id="WixUI_ErrorProgressText" />
<WixVariable
Id="WixUIBannerBmp"
Value="@CMAKE_CURRENT_SOURCE_DIR@/AdminHeader.jpg" />
<WixVariable
Id="WixUIDialogBmp"
Value="@CMAKE_CURRENT_SOURCE_DIR@/AdminBackground.jpg" />
<Icon
Id="icon.ico"
SourceFile="@CMAKE_CURRENT_SOURCE_DIR@/MySQLServer.ico"/>
<Property
Id="ARPPRODUCTICON"
Value="icon.ico" />
2010-04-30 13:30:32 +02:00
<!-- License -->
<WixVariable
Id="WixUILicenseRtf"
2010-07-24 17:26:45 +02:00
Value="@COPYING_RTF@"/>
2010-04-30 13:30:32 +02:00
<!-- How to remove the service on uninstall -->
2010-07-24 17:26:45 +02:00
<Binary Id='wixca.dll' SourceFile='@WIXCA_LOCATION@' />
2010-04-30 13:30:32 +02:00
<CustomAction Id="UnregisterProperty" Property="UnregisterService" Value="[INSTALLDIR]" Return="check" />
<CustomAction Id="UnregisterPropertySilent" Property="UnregisterServiceSilently" Value="[INSTALLDIR]" Return="check" />
<CustomAction Id="UnregisterService"
BinaryKey="wixca.dll"
DllEntry="RemoveService"
Execute="deferred"
Impersonate="no"
Return="check" />
<CustomAction Id="UnregisterServiceSilently"
BinaryKey="wixca.dll"
DllEntry="RemoveServiceNoninteractive"
Execute="deferred"
Impersonate="no"
Return="check" />
<InstallExecuteSequence>
2010-11-24 21:30:27 +01:00
<Custom Action="UnregisterProperty" After="InstallInitialize">Installed And Not UPGRADINGPRODUCTCODE And REMOVE="ALL"</Custom>
<Custom Action="UnregisterPropertySilent" After="InstallInitialize">Installed And Not UPGRADINGPRODUCTCODE And REMOVE="ALL"</Custom>
<Custom Action="UnregisterService" After="UnregisterProperty">Installed And Not UPGRADINGPRODUCTCODE And REMOVE="ALL" And UILevel>4</Custom>
<Custom Action="UnregisterServiceSilently" After="UnregisterPropertySilent">Installed And Not UPGRADINGPRODUCTCODE And REMOVE="ALL" And UILevel<=4</Custom>
2010-04-30 13:30:32 +02:00
</InstallExecuteSequence>
2010-02-18 23:52:35 +01:00
<!-- Installation root-->
2010-02-10 20:23:24 +01:00
<Directory Id='TARGETDIR' Name='SourceDir'>
2010-02-16 16:06:57 +01:00
<Directory Id='@PlatformProgramFilesFolder@'>
2010-02-10 20:23:24 +01:00
<Directory Id='directory.MySQL' Name='MySQL'>
<Directory Id='INSTALLDIR' Name='MySQL Server @MAJOR_VERSION@.@MINOR_VERSION@'>
</Directory>
</Directory>
</Directory>
</Directory>
2010-02-18 23:52:35 +01:00
<!-- CPACK_WIX_FEATURES -->
@CPACK_WIX_FEATURES@
<!-- CPACK_WIX_DIRECTORIES -->
@CPACK_WIX_DIRECTORIES@
<!--CPACK_WIX_COMPONENTS-->
@CPACK_WIX_COMPONENTS@
<!--CPACK_WIX_COMPONENTS_GROUPS -->
@CPACK_WIX_COMPONENT_GROUPS@
2010-04-23 14:25:45 +02:00
<!--CPACK_WIX_INCLUDES -->
@CPACK_WIX_INCLUDES@
2010-02-10 20:23:24 +01:00
</Product>
2010-04-23 14:25:45 +02:00
2010-11-20 15:47:50 +01:00
</Wix>