1
<?xml version="1.0" encoding="utf-8"?>
2
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
5
Check, if upgrade wizard was built
6
It currently requires MFC, which is not in SDK
7
neither in express edítions of VS.
9
<?ifndef HaveUpgradeWizard ?>
10
<?define HaveUpgradeWizard="1"?>
13
<!-- If Innodb is compiled in, enable "optimize for transactions" checkbox -->
14
<?ifndef HaveInnodb ?>
15
<?define HaveInnodb="0"?>
18
<Property Id="PortTemplate" Value="#####" />
19
<?if $(var.HaveInnodb) = "1" ?>
20
<Property Id="BufferPoolSizeTemplate" Value="#######" />
23
Installation parameters that can be passed via msiexec command line
24
For "booleans" (like skip networking), just providing any value means property set to "yes".
26
<!-- instalation directory (default under program files)-->
27
<!--- (defined elsewhere) <Property Id="INSTALLDIR" Secure="yes" /> -->
29
<!-- Database data directory (default under INSTALLDIR\data) -->
30
<!--- (defined elsewhere) <Property Id="DATADIR" Secure="yes"/> -->
32
<!-- Service name of database instanced (default MySQL in GUI, nothing with command line) -->
33
<!-- (defined elsewhere) <Property Id="SERVICENAME" Secure="yes" /> -->
35
<!-- Root password -->
36
<Property Id="PASSWORD" Hidden="yes" Secure="yes" />
37
<Property Id="ESCAPEDPASSWORD" Hidden="yes" Secure="yes" />
38
<!-- Database port -->
39
<Property Id="PORT" Value="3306" Secure="yes"/>
40
<!-- Whether to allow remote access for root user -->
41
<Property Id="ALLOWREMOTEROOTACCESS" Secure="yes" />
42
<!-- Skip networking. This will switch configuration to use named pipe-->
43
<Property Id="SKIPNETWORKING" Secure="yes"/>
44
<!-- Whether to keep default (unauthenticated) user. Default is no-->
45
<Property Id="DEFAULTUSER" Secure="yes"/>
46
<!-- Set server character set to UTF8 -->
47
<Property Id="UTF8" Secure="yes"/>
48
<!-- Whether to data on uninstall (default yes, after asking user consent) -->
49
<Property Id="CLEANUPDATA" Secure="yes" Value="1"/>
50
<!-- Force per machine installation -->
51
<Property Id="ALLUSERS" Secure="yes" Value="1"/>
52
<!-- Disable advertised shortcuts weirdness -->
53
<Property Id="DISABLEADVTSHORTCUTS" Secure="yes" Value="1"/>
55
<!-- Activate feedback plugin-->
56
<Property Id="FEEDBACK" Secure="yes"/>
58
<?if $(var.HaveInnodb) = "1" ?>
59
<!-- Quick configuration : set default storage engine to innodb, use strict sql_mode -->
60
<Property Id="STDCONFIG" Secure="yes" Value="1"/>
62
<!-- Innodb Buffer pool size in MB-->
63
<Property Id="BUFFERPOOLSIZE" Secure="yes"/>
66
<CustomAction Id="LaunchUrl" BinaryKey="WixCA" DllEntry="WixShellExec" Execute="immediate" Return="check" Impersonate="yes" />
70
User interface dialogs
72
<WixVariable Id='WixUIBannerBmp' Value='@CMAKE_CURRENT_SOURCE_DIR@\WixUIBannerBmp.jpg' />
73
<WixVariable Id='WixUIDialogBmp' Value='@CMAKE_CURRENT_SOURCE_DIR@\WixUIDialogBmp.jpg' />
76
<!-- Dialog on uninstall of the database -->
77
<Dialog Id="ConfirmDataCleanupDlg" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="yes">
79
<!--<Control Id="CleanupDataCheckBox" Type="CheckBox" X="20" Y="100" Height="30" Property="CLEANUPDATA" Width="300" CheckBoxValue="1"
80
Text="{\Font1}Remove default database directory 
'[DATADIR]'"/>
82
<Control Id="RemoveDatadirButton" Type="PushButton" X="40" Y="65" Width="80" Height="18"
84
<Publish Property="CLEANUPDATA" Value="1">1</Publish>
85
<Publish Event="NewDialog" Value="VerifyReadyDlg">WixUI_InstallMode</Publish>
86
<Publish Event="EndDialog" Value="Return">NOT WixUI_InstallMode</Publish>
89
<Control Id="RemoveDatadirText" Type="Text" X="60" Y="85" Width="280" Height="20">
90
<Text>Remove default database directory [DATADIR]. Ensures proper cleanup on uninstall.</Text>
93
<Control Id="KeepDatadirButton" Type="PushButton" X="40" Y="118" Width="80" Height="18"
95
<Publish Property="CLEANUPDATA">1</Publish>
96
<Publish Event="NewDialog" Value="VerifyReadyDlg">WixUI_InstallMode</Publish>
97
<Publish Event="EndDialog" Value="Return">NOT WixUI_InstallMode</Publish>
99
<Control Id="KeepDataDirText" Type="Text" X="60" Y="138" Width="280" Height="70" >
100
<Text>Do not remove [DATADIR]. Choose this option if you intend to use data in the future</Text>
104
<!-- Navigation buttons-->
105
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&Back">
106
<Publish Event="NewDialog" Value="CustomizeDlg">WixUI_InstallMode="Change"</Publish>
107
<Condition Action="disable">NOT WixUI_InstallMode</Condition>
109
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Disabled="yes" Text="&Next">
110
<Publish Event="NewDialog" Value="VerifyReadyDlg">WixUI_InstallMode</Publish>
111
<Publish Event="EndDialog" Value="Return">NOT WixUI_InstallMode</Publish>
113
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Cancel">
114
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
116
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
117
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
118
<Text>Remove default [ProductName] database</Text>
120
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
121
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
122
<Text>{\WixUI_Font_Title}Default instance properties</Text>
124
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
127
<!-- Dialog new or upgrade instance -->
129
<Property Id="CreateOrUpgradeChoice" Value="Create"/>
131
<Dialog Id="NewOrUpgradeInstanceDlg" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="yes">
132
<Control Id="Text" Type="Text" X="40" Y="65" Width="270" Height="30">
133
<Text>Setup found existing database instances that can be upgraded to [ProductName].You can create a new instance and/or upgrade existing one.
137
<Control Id="CreateOrUpgradeButton"
138
Type="RadioButtonGroup" X="40" Y="100" Width="300" Height="70"
139
Property="CreateOrUpgradeChoice" Text="Specify what to do">
140
<RadioButtonGroup Property="CreateOrUpgradeChoice">
141
<RadioButton Value="Create" X="0" Y="0" Width="300" Height="25"
142
Text="{\Font1}Create new database instance."/>
143
<RadioButton Value="Upgrade" X="0" Y="30" Width="300" Height="25"
144
Text="{\Font1}Do not create a new database. Optionally upgrade existing instances." />
148
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&Back">
149
<Publish Event="NewDialog" Value="LicenseAgreementDlg">1</Publish>
151
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Text="&Next">
152
<Publish Event="Remove" Value="DBInstance">CreateOrUpgradeChoice = "Upgrade" </Publish>
153
<Publish Event="AddLocal" Value="DBInstance">CreateOrUpgradeChoice = "Create"</Publish>
154
<Publish Property="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="[NonExistentProperty]">CreateOrUpgradeChoice = "Create"</Publish>
155
<Publish Property="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="[NonExistentProperty]">CreateOrUpgradeChoice = "Create"</Publish>
156
<Publish Property="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1">CreateOrUpgradeChoice = "Upgrade"</Publish>
157
<Publish Event="NewDialog" Value="CustomizeDlg">1</Publish>
159
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Cancel">
160
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
162
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
163
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
164
<Text>Create or upgrade database instance</Text>
166
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
167
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
168
<Text>{\WixUI_Font_Title}[ProductName] setup</Text>
170
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
173
<!-- Feedback dialog -->
174
<Dialog Id="Feedback" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="yes">
176
<Control Id="CheckBoxFeedback" Type="CheckBox" X="8" Y="61" Width="360" Height="12" Property="FEEDBACK" CheckBoxValue="1" TabSkip="no">
177
<Text>{\Font1}Enable the Feedback plugin and submit anonymous usage information</Text>
180
<Control Id="Text" Type="Text" X="23" Y="82" Width="290" Height="55">
181
<Text>Monty Program has created a Feedback plugin for MariaDB which, if enabled, collects basic anonymous statistical information. This information is used by the developers to improve MariaDB. Enabling this plugin is an easy way to help with MariaDB development. Collected statistics, and more information on the plugin, can be viewed at http://mariadb.org/feedback_plugin </Text>
184
<Control Id="MoreInfo" Type="PushButton" X="23" Y="140" Width="56" Height="17" Text="More Info" ToolTip="http://mariadb.org/feedback_plugin" >
185
<Publish Property="WixShellExecTarget" Value="http://mariadb.org/feedback_plugin" Order="1">1</Publish>
186
<Publish Event="DoAction" Value="LaunchUrl" Order="2">1</Publish>
190
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&Back">
191
<Publish Event="NewDialog" Value="ServicePortDlg">1</Publish>
193
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Text="&Next">
194
<Publish Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
196
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Cancel">
197
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
199
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
200
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
201
<Text>Submit usage information</Text>
203
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
204
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
205
<Text>{\WixUI_Font_Title}[ProductName] setup</Text>
207
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
210
<!-- Error popup dialog -->
211
<Dialog Id="WarningDlg" Width="320" Height="85" Title="[ProductName] Setup" NoMinimize="yes">
212
<Control Id="Icon" Type="Icon" X="15" Y="15" Width="24" Height="24"
213
ToolTip="Information icon" FixedSize="yes" IconSize="32" Text="WixUI_Ico_Info" />
214
<Control Id="Ok" Type="PushButton" X="132" Y="57" Width="56" Height="17"
215
Default="yes" Cancel="yes" Text="OK">
216
<Publish Property="WarningText">1</Publish>
217
<Publish Event="EndDialog" Value="Return">1</Publish>
219
<Control Id="Text" Type="Text" X="48" Y="15" Width="260" Height="30">
220
<Text>[WarningText]</Text>
225
<Property Id="ModifyRootPassword" Value="1"/>
226
<TextStyle Id="Font1" FaceName="Tahoma" Size="8" Red="0" Green="0" Blue="0" Bold="yes" />
228
<!-- Root password plus default user dialog -->
229
<Dialog Id="UserSettingsDlg" X="50" Y="50" Width="370" Height="270" Title="User settings">
230
<Control Id="EditRootPassword" Type="Edit" X="104" Y="82" Width="91" Height="15" Property="PASSWORD" Password="yes" TabSkip="no">
232
<Condition Action="enable">ModifyRootPassword</Condition>
233
<Condition Action="disable">NOT ModifyRootPassword</Condition>
235
<Control Id="EditRootPasswordConfirm" Type="Edit" X="104" Y="103" Width="91" Height="15" Property="RootPasswordConfirm" Password="yes" TabSkip="no">
237
<Condition Action="enable">ModifyRootPassword</Condition>
238
<Condition Action="disable">NOT ModifyRootPassword</Condition>
241
<Control Id="CheckBoxModifyRootPassword" Type="CheckBox" X="8" Y="62" Width="222" Height="18" Property="ModifyRootPassword" CheckBoxValue="1" TabSkip="no">
242
<Text>{\Font1}Modify password for database user 'root'</Text>
243
<Publish Property="PASSWORD" >NOT ModifyRootPassword</Publish>
244
<Publish Property="RootPasswordConfirm">NOT ModifyRootPassword</Publish>
245
<Publish Property="ALLOWREMOTEROOTACCESS">NOT ModifyRootPassword</Publish>
246
<Publish Property="ALLOWREMOTEROOTACCESS" Value="1">ModifyRootPassword</Publish>
249
<Control Id="Text5" Type="Text" X="23" Y="82" Width="77" Height="14" TabSkip="yes">
250
<Text>New root password:</Text>
252
<Control Id="Text6" Type="Text" X="201" Y="85" Width="100" Height="17" TabSkip="yes">
253
<Text>Enter new root password</Text>
255
<Control Id="Text8" Type="Text" X="23" Y="105" Width="75" Height="17" TabSkip="yes">
256
<Text>Confirm:</Text>
259
<Control Id="Text10" Type="Text" X="201" Y="104" Width="100" Height="17" TabSkip="yes">
260
<Text>Retype the password</Text>
262
<Control Id="CheckBoxALLOWREMOTEROOTACCESS" Type="CheckBox" X="23" Y="122" Width="196" Height="18" Property="ALLOWREMOTEROOTACCESS"
263
CheckBoxValue="--allow-remote-root-access" TabSkip="no">
264
<Text>{\Font1}Enable access from remote machines for 'root' user</Text>
265
<Condition Action="enable">ModifyRootPassword</Condition>
266
<Condition Action="disable">NOT ModifyRootPassword</Condition>
269
<Control Id="CheckBoxCreateDefaultUser" Type="CheckBox" X="8" Y="154" Width="200" Height="18" Property="DEFAULTUSER"
270
CheckBoxValue="--default-user" TabSkip="no">
271
<Text>{\Font1}Create An Anonymous Account</Text>
273
<Control Id="Text14" Type="Text" X="21" Y="174" Width="268" Height="16" TabSkip="yes">
274
<Text>This option will create an anonymous account on this server. </Text>
276
<Control Id="Text13" Type="Text" X="21" Y="190" Width="254" Height="24" TabSkip="yes">
277
<Text>Please note: this setting can lead to insecure systems.</Text>
280
<Control Id="CheckBoxUTF8" Type="CheckBox" X="8" Y="215" Width="250" Height="18" Property="UTF8" CheckBoxValue="1" TabSkip="no">
281
<Text>{\Font1}Use UTF8 as default server's character set</Text>
284
<!-- Navigation buttons-->
285
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&Back">
286
<Publish Event="NewDialog" Value="CustomizeDlg">1</Publish>
288
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="&Next">
289
<Publish Property="WarningText" Value="Passwords do not match."><![CDATA[PASSWORD <> RootPasswordConfirm]]></Publish>
290
<Publish Event="SpawnDialog" Value="WarningDlg"><![CDATA[WarningText <>""]]></Publish>
291
<Publish Property="SERVICENAME" Value="MySQL">NOT SERVICENAME AND NOT WarningText</Publish>
292
<Publish Event="NewDialog" Value="ServicePortDlg"><![CDATA[WarningText=""]]></Publish>
293
<Condition Action="enable"><![CDATA[NOT ModifyRootPassword OR PASSWORD]]> </Condition>
294
<Condition Action="disable"><![CDATA[ModifyRootPassword AND (NOT PASSWORD)]]> </Condition>
296
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Cancel">
297
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
299
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
300
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
301
<Text> [ProductName] database configuration</Text>
303
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
304
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
305
<Text>{\WixUI_Font_Title}Default instance properties</Text>
307
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
310
<Property Id="InstallService" Value="1"/>
311
<Property Id="EnableNetworking" Value="1"/>
313
<!-- Service and port configuration -->
314
<Dialog Id="ServicePortDlg" Width="370" Height="270" Title="Database settings">
315
<Control Id="InstallAsService" Type="CheckBox" X="9" Y="61" Width="222" Height="19" Property="InstallService" CheckBoxValue="1" TabSkip="no">
316
<Text>{\Font1}Install as service</Text>
318
<Control Id="EditServiceName" Type="Edit" X="104" Y="82" Width="91" Height="15" Property="SERVICENAME" TabSkip="no">
320
<Condition Action="enable">InstallService</Condition>
321
<Condition Action="disable">Not InstallService</Condition>
323
<Control Id="Text5" Type="Text" X="25" Y="82" Width="77" Height="14" TabSkip="yes">
324
<Text>Service Name:</Text>
326
<Control Id="CheckBoxEnableNetworking" Type="CheckBox" Height="18" Width="102" X="9" Y="117" Property="EnableNetworking" CheckBoxValue="1">
327
<Text>{\Font1}Enable networking</Text>
328
<!--<Publish Property="PORT">NOT EnableNetworking</Publish>-->
329
<Publish Property="SKIPNETWORKING" Value="--skip-networking">NOT EnableNetworking</Publish>
330
<Publish Property="SKIPNETWORKING">EnableNetworking</Publish>
332
<Control Id="LabelTCPPort" Type="Text" Height="17" Width="75" X="25" Y="142" Text="TCP port:" />
333
<Control Id="Port" Type="MaskedEdit" X="104" Y="140" Width="28" Height="15" Property="PORT" Sunken="yes" Text="[PortTemplate]">
334
<Condition Action="enable" >EnableNetworking</Condition>
335
<Condition Action="disable">Not EnableNetworking</Condition>
338
<?if $(var.HaveInnodb) = "1" ?>
339
<Control Id="CheckBoxStandardConfig" Type="CheckBox" Height="18" Width="220" X="9" Y="171" Property="STDCONFIG" CheckBoxValue="1">
340
<Text>{\Font1}Optimize for transactions</Text>
343
<Control Id="StandardConfigExplain" Type="Text" X="25" Y="190" Width="270" Height="14" TabSkip="yes">
344
<Text>(Uses transactional storage engine and "strict" SQL mode)</Text>
345
<Condition Action="enable" >STDCONFIG</Condition>
346
<Condition Action="disable">Not STDCONFIG</Condition>
348
<Control Id="LabelInnodbBufferpool" Type="Text" Height="17" Width="77" X="25" Y="210" Text="Buffer pool size:" >
349
<Condition Action="enable" >STDCONFIG</Condition>
350
<Condition Action="disable">Not STDCONFIG</Condition>
352
<Control Id="BPSize" Type="MaskedEdit" X="104" Y="208" Width="40" Height="15" Property="BUFFERPOOLSIZE" Sunken="yes" Text="[BufferPoolSizeTemplate]">
353
<Condition Action="enable" >STDCONFIG</Condition>
354
<Condition Action="disable">Not STDCONFIG</Condition>
356
<Control Id="LabelMB" Type="Text" Height="17" Width="15" X="150" Y="210" Text="MB" >
357
<Condition Action="enable" >STDCONFIG</Condition>
358
<Condition Action="disable">Not STDCONFIG</Condition>
362
<!-- Navigation buttons-->
363
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&Back">
364
<Publish Event="NewDialog" Value="UserSettingsDlg">1</Publish>
366
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="no" Text="&Next">
367
<Publish Property="SERVICENAME">NOT InstallService</Publish>
368
<Publish Property="WarningText" Value="Please enter valid port or uncheck 'Enable Networking' checkbox">
369
<![CDATA[EnableNetworking AND NOT PORT AND NOT WarningText]]>
371
<Publish Property="WarningText" Value="Please enter valid service name port or uncheck 'Install Service' checkbox">
372
<![CDATA[InstallService AND NOT SERVICENAME AND NOT WarningText]]>
374
<Publish Event="DoAction" Value="CheckDatabaseProperties">NOT WarningText</Publish>
375
<Publish Event="SpawnDialog" Value="WarningDlg">WarningText</Publish>
376
<Publish Event="NewDialog" Value="Feedback">Not WarningText</Publish>
378
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="no" Text="Cancel">
379
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
381
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
382
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
383
<Text>[ProductName] database configuration</Text>
385
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="2" />
386
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
387
<Text>{\WixUI_Font_Title}Default instance properties</Text>
389
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="2" />
393
<Property Id="CRLF" Value="
" />
394
<CustomAction Id="CheckDataDirectoryEmpty" BinaryKey="wixca.dll" DllEntry="CheckDataDirectoryEmpty" Execute="immediate" Impersonate="yes"/>
395
<!-- What to do when navigation buttons are clicked -->
396
<UI Id="MyWixUI_Mondo">
397
<UIRef Id="WixUI_FeatureTree" />
398
<UIRef Id="WixUI_ErrorProgressText" />
399
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="999">
400
OLDERVERSIONBEINGUPGRADED
402
<Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="NewOrUpgradeInstanceDlg" Order="999">
403
NOT Installed AND UpgradableServiceFound
406
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="Feedback" Order="3" ><![CDATA[&DBInstance=3 AND NOT !DBInstance=3]]></Publish>
407
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="3"> <![CDATA[OLDERVERSIONBEINGUPGRADED <>""]]></Publish>
408
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="ConfirmDataCleanupDlg" Order="1" ><![CDATA[(&DBInstance=2) AND (!DBInstance=3)]]></Publish>
411
<Publish Dialog="CustomizeDlg" Control="Back" Event="NewDialog" Value="NewOrUpgradeInstanceDlg" Order="999">
412
NOT Installed AND UpgradableServiceFound
414
<Publish Dialog="CustomizeDlg" Control="Next" Event="DoAction" Value="CheckDataDirectoryEmpty" Order="1"><![CDATA[&DBInstance=3 AND NOT !DBInstance=3]]></Publish>
415
<Publish Dialog="CustomizeDlg" Property="DATADIRNOTEMPTY" Control="Next" Order="1"><![CDATA[NOT(&DBInstance=3 AND NOT !DBInstance=3)]]></Publish>
416
<Publish Dialog="CustomizeDlg" Control="Next" Property="WarningText" Order="2"
417
Value="Selected data directory [DATADIR] is not empty. Either clean it, or choose another location for 'Database Instance' feature.">
420
<Publish Dialog="CustomizeDlg" Control="Next" Event="SpawnDialog" Value="WarningDlg" Order="3">WarningText</Publish>
421
<Publish Dialog="CustomizeDlg" Control="Next" Event="NewDialog" Value="ConfirmDataCleanupDlg" Order="4">
422
<![CDATA[(&DBInstance=2) AND (!DBInstance=3)]]>
424
<Publish Dialog="CustomizeDlg" Control="Next" Event="NewDialog" Value="UserSettingsDlg" Order="5">
425
<![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND NOT WarningText]]>
428
<Publish Dialog="ConfirmDataCleanupDlg" Control="Back" Event="NewDialog" Value="CustomizeDlg">WixUI_InstallMode = "Change"</Publish>
429
<Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="ConfirmDataCleanupDlg" Order="999">
430
!DBInstance=3 AND (CLEANUPDATA Or USECONFIRMDATACLEANUPDLG)
432
<Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Property="USECONFIRMDATACLEANUPDLG" Value="1" Order="999">
433
!DBInstance=3 AND CLEANUPDATA
435
<Publish Dialog="ConfirmDataCleanupDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg">WixUI_InstallMode = "Remove"</Publish>
438
<!-- End of UI section -->
440
<!-- Extra folders we need (DATADIR and shortcut folder) -->
441
<DirectoryRef Id='INSTALLDIR'>
442
<Directory Id="DATADIR" Name="data">
444
<Directory Id="ProgramMenuFolder">
445
<Directory Id="ShortcutFolder" Name="@CPACK_WIX_PACKAGE_NAME@">
451
<!-- Extra feature (database instance). This could be split to several subfeatures if desired (e.g firewall exception)-->
452
<Feature Id='DBInstance'
453
Title='Database instance'
455
'Install database instance. Only new database can be installed with this feature.'
456
ConfigurableDirectory='DATADIR'
460
<!-- Data directory with some reasonable security settings -->
461
<Component Id="C.datadir" Guid="*" Directory="DATADIR">
462
<RegistryValue Root='HKLM'
463
Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
464
Name='DATADIR' Value='[DATADIR]' Type='string' KeyPath='yes'/>
466
<util:PermissionEx User="[LogonUser]" GenericAll="yes" />
467
<util:PermissionEx User="NetworkService" GenericAll="yes" />
471
<!-- Database service conditioned on SERVICENAME property-->
472
<Component Id="C.service" Guid="*" Directory="DATADIR">
473
<Condition>SERVICENAME</Condition>
474
<RegistryValue Root='HKLM'
475
Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
476
Name='SERVICENAME' Value='[SERVICENAME]' Type='string' KeyPath='yes'/>
477
<ServiceControl Id='DBInstanceServiceStop' Name='[SERVICENAME]' Stop='both' Remove='uninstall' Wait='yes'/>
478
<ServiceControl Id='DBInstanceServiceStart' Name='[SERVICENAME]' Start='install' Wait='yes'/>
480
<?if $(var.HaveInnodb) = "1" ?>
481
<Component Id="C.myiniconfig" Guid="*" Directory="DATADIR">
482
<Condition>STDCONFIG</Condition>
483
<RegistryValue Root='HKLM'
484
Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
485
Name='STDCONFIG' Value='1' Type='string' KeyPath='yes'/>
492
Value=""STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"" />
498
Key="default_storage_engine"
505
Key="innodb_buffer_pool_size"
506
Value="[BUFFERPOOLSIZE]M" />
512
Key="innodb_log_file_size"
513
Value="[LOGFILESIZE]M" />
517
<Component Id="C.feedback" Guid="*" Directory="DATADIR">
518
<Condition>FEEDBACK</Condition>
519
<RegistryValue Root='HKLM'
520
Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
521
Name='FEEDBACK' Value='1' Type='string' KeyPath='yes'/>
531
<Component Id="C.utf8" Guid="*" Directory="DATADIR">
532
<Condition>UTF8</Condition>
533
<RegistryValue Root='HKLM'
534
Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
535
Name='UTF8' Value='1' Type='string' KeyPath='yes'/>
541
Key="character-set-server"
545
<!--- Grant service account permission to the database folder (Windows 7 and later) -->
546
<Component Id="C.serviceaccount.permission" Guid="*" Directory='DATADIR' Transitive='yes'>
547
<Condition><![CDATA[SERVICENAME AND (VersionNT > 600)]]></Condition>
548
<RegistryValue Root='HKLM'
549
Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
550
Name='servicepermission' Value='1' Type='string' KeyPath='yes'/>
552
<util:PermissionEx User="NT SERVICE\[SERVICENAME]" GenericAll="yes" />
556
<!-- Shortcuts in program menu (mysql client etc) -->
557
<Component Id="c.shortcuts" Guid="*" Directory="ShortcutFolder">
558
<!-- shortcut to my.ini-->
559
<RegistryValue Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall" Name="shortcuts" Value="1" Type="string" KeyPath="yes" />
560
<RemoveFolder Id="RemoveShorcutFolder" On="uninstall" />
561
<Shortcut Id="shortcut.my.ini"
562
Name="my.ini (@CPACK_WIX_PACKAGE_NAME@)"
563
Target="[System64Folder]notepad.exe"
564
Arguments=""[DATADIR]my.ini""
565
Directory="ShortcutFolder"
566
Description="Edit database configuration" />
567
<Shortcut Id="shortcut.errorlog"
568
Name="Error log (@CPACK_WIX_PACKAGE_NAME@)"
569
Target="[System64Folder]notepad.exe"
570
Arguments=""[DATADIR][ComputerName].err""
571
Directory="ShortcutFolder"
572
Description="View Database Error log" />
573
<Shortcut Id="shortcut.dbfolder" Name="Database directory (@CPACK_WIX_PACKAGE_NAME@)"
574
Target="[DATADIR]" />
577
<!-- add reference so mysql client won't get uninstalled and we have a shortcut pointing to nowhere-->
578
<ComponentRef Id="C.bin.mysql.exe"/>
580
<Component Id="c.shortcuts.commandline" Guid="*" Directory="ShortcutFolder">
582
Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall"
583
Name="shortcuts.commandline"
584
Value="1" Type="string" KeyPath="yes" />
585
<!-- shortcut to client-->
586
<Shortcut Id="shortcut.mysql.exe"
587
Name="MySQL Client (@CPACK_WIX_PACKAGE_NAME@)"
588
Target="[System64Folder]cmd.exe"
589
Arguments="/k " "[D.bin]mysql.exe" "--defaults-file=[DATADIR]my.ini" -uroot -p""
590
Directory="ShortcutFolder"
591
WorkingDirectory="D.bin"
592
Description="Starts mysql.exe for root user" />
594
<Component Id="c.shortcuts.commandprompt.db" Guid="*" Directory="ShortcutFolder" Transitive="yes">
595
<Condition>SERVICENAME</Condition>
597
Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall"
598
Name="shortcuts.commandprompt.db"
599
Value="1" Type="string" KeyPath="yes" />
600
<!-- just command prompt in the bin directory (so all utilities can be called) -->
601
<Shortcut Id="shortcut.commandprompt.exe.db"
602
Name="Command Prompt (@CPACK_WIX_PACKAGE_NAME@)"
603
Target="[System64Folder]cmd.exe"
604
Directory="ShortcutFolder"
605
Arguments="/k "set MYSQL_HOME=[DATADIR]&& set PATH=[D.bin];%PATH%;&&echo Setting environment for [ProductName] ""
606
Description="Opens command line in the installation bin directory" />
612
<Feature Id="SharedClientServerComponents"
613
Title='Utilities used by both server and client.'
615
'Client utilities that are also used with server.Required for upgrade.'
616
ConfigurableDirectory='INSTALLDIR'
620
<ComponentRef Id='C.bin.mysql.exe'/>
621
<ComponentRef Id='C.bin.mysqladmin.exe'/>
622
<ComponentRef Id='C.bin.mysql_upgrade.exe'/>
623
<ComponentRef Id='C.bin.mysqlcheck.exe'/>
624
<Component Id="c.shortcuts.commandprompt.nodb" Guid="*" Directory="ShortcutFolder" Transitive="yes">
625
<Condition>NOT SERVICENAME</Condition>
627
Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall"
628
Name="shortcuts.commandprompt.nodb"
629
Value="1" Type="string" KeyPath="yes" />
630
<!-- just command prompt in the bin directory (so all utilities can be called) -->
631
<Shortcut Id="shortcut.commandprompt.exe.nodb"
632
Name="Command Prompt (@CPACK_WIX_PACKAGE_NAME@)"
633
Target="[System64Folder]cmd.exe"
634
Directory="ShortcutFolder"
635
Arguments="/k "set PATH=[D.bin];%PATH%;&&echo Setting environment for [ProductName] ""
636
Description="Opens command line in the installation bin directory" />
638
<?if $(var.HaveUpgradeWizard) != "0" ?>
639
<ComponentRef Id='C.bin.mysql_upgrade_wizard.exe'/>
641
<Component Id="c.shortcuts.upgrade_wizard" Guid="*" Directory="ShortcutFolder" Transitive="yes">
643
Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall"
644
Name="shortcuts.upgrade_wizard"
645
Value="1" Type="string" KeyPath="yes" />
646
<Shortcut Id="shortcut.upgrade_wizard"
647
Name="Upgrade Wizard (@CPACK_WIX_PACKAGE_NAME@)"
648
Target="[INSTALLDIR]bin\mysql_upgrade_wizard.exe"
649
Directory="ShortcutFolder"
650
Description="Upgrades older instances of MariaDB/MySQL services to version @MAJOR_VERSION@.@MINOR_VERSION@"
657
<!-- Optional 3rd party tools -->
658
<DirectoryRef Id='TARGETDIR'>
659
<Directory Id='CommonFilesFolder'>
660
<Directory Id='MariaDBShared' Name='MariaDBShared'/>
662
<Directory Id='DesktopFolder'/>
666
<?if "@WITH_THIRD_PARTY@" != "" ?>
668
<!-- Include definition of 3party components -->
669
<?foreach tool in @WITH_THIRD_PARTY@ ?>
670
<?include "${CMAKE_CURRENT_BINARY_DIR}\$(var.tool).wxi" ?>
673
<Feature Id="ThirdPartyTools"
674
Title='Third party tools'
675
Description= 'Third party tools'
679
@THIRD_PARTY_FEATURE_CONDITION@
680
<!-- Include definition of 3rd party features -->
681
<?foreach tool in @WITH_THIRD_PARTY@ ?>
682
<?include "${CMAKE_CURRENT_BINARY_DIR}\$(var.tool)_feature.wxi" ?>
689
<!-- Custom action, call mysql_install_db -->
690
<SetProperty Sequence='execute' Before='CreateDatabaseCommand' Id="SKIPNETWORKING" Value="--skip-networking" >SKIPNETWORKING</SetProperty>
691
<SetProperty Sequence='execute' Before='CreateDatabaseCommand' Id="ALLOWREMOTEROOTACCESS" Value="--allow-remote-root-access">ALLOWREMOTEROOTACCESS</SetProperty>
692
<SetProperty Sequence='execute' Before='CreateDatabaseCommand' Id="DEFAULTUSER" Value="--default-user">DEFAULTUSER</SetProperty>
693
<CustomAction Id='CheckDatabaseProperties' BinaryKey='wixca.dll' DllEntry='CheckDatabaseProperties' />
694
<CustomAction Id='PresetDatabaseProperties' BinaryKey='wixca.dll' DllEntry='PresetDatabaseProperties' />
695
<CustomAction Id="CreateDatabaseCommand" Property="CreateDatabase"
697
""[#F.bin.mysql_install_db.exe]" "--service=[SERVICENAME]" --port=[PORT] "--password=[ESCAPEDPASSWORD]" "--datadir=[DATADIR]\" [SKIPNETWORKING] [ALLOWREMOTEROOTACCESS] [DEFAULTUSER] --verbose-bootstrap"
701
<CustomAction Id="CreateDatabaseRollbackCommand" Property="CreateDatabaseRollback"
702
Value="[SERVICENAME]\[DATADIR]"
703
Execute="immediate"/>
704
<CustomAction Id="CreateDatabase" BinaryKey="WixCA" DllEntry="CAQuietExec"
705
Execute="deferred" Return="check" Impersonate="no" />
706
<CustomAction Id="CreateDatabaseRollback" BinaryKey="wixca.dll" DllEntry="CreateDatabaseRollback"
707
Execute="rollback" Return="check" Impersonate="no"/>
709
<ProgressText Action="CreateDatabase">Running mysql_install_db.exe</ProgressText>
712
<!-- Error injection script activated by TEST_FAIL=1 passed to msiexec (to see how good custom action rollback works) -->
713
<Property Id="FailureProgram">
720
<CustomAction Id="FakeFailure"
722
Property="FailureProgram"
723
Execute="deferred" />
725
<CustomAction Id='ErrorDataDirNotEmpty'
726
Error='Chosen data directory [DATADIR] is not empty. It must be empty prior to installation.'/>
727
<InstallExecuteSequence>
728
<Custom Action="CheckDataDirectoryEmpty" After="CostFinalize">
729
<![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
731
<Custom Action="ErrorDataDirNotEmpty" After="CheckDataDirectoryEmpty" >DATADIRNOTEMPTY</Custom>
732
<Custom Action="CheckDatabaseProperties" Before="CreateDatabaseCommand">SERVICENAME</Custom>
733
<Custom Action="CreateDatabaseCommand" After="CostFinalize" >
734
<![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
736
<Custom Action="CreateDatabase" After="InstallFiles">
737
<![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
739
<Custom Action="CreateDatabaseRollbackCommand" After="CostFinalize">
740
<![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
742
<Custom Action="CreateDatabaseRollback" Before="CreateDatabase">
743
<![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
745
<Custom Action='FakeFailure' Before='InstallFinalize'>
746
<![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED="" AND TESTFAIL]]>
748
</InstallExecuteSequence>
751
<!-- Custom action to remove data on uninstall -->
752
<Binary Id='wixca.dll' SourceFile='@WIXCA_LOCATION@' />
753
<CustomAction Id="RemoveDataDirectory.SetProperty" Return="check"
754
Property="RemoveDataDirectory" Value="[DATADIR]" />
755
<CustomAction Id="RemoveDataDirectory" BinaryKey="wixca.dll"
756
DllEntry="RemoveDataDirectory"
760
<InstallExecuteSequence>
761
<Custom Action="RemoveDataDirectory.SetProperty" After="CreateDatabaseCommand" >
762
<![CDATA[($C.datadir=2) AND (CLEANUPDATA) AND NOT UPGRADINGPRODUCTCODE]]>
764
<Custom Action="RemoveDataDirectory" Before="RemoveFiles">
765
<![CDATA[($C.datadir=2) AND (CLEANUPDATA) AND NOT UPGRADINGPRODUCTCODE]]>
767
</InstallExecuteSequence>
769
<InstallExecuteSequence>
770
<StopServices>SERVICENAME</StopServices>
771
<DeleteServices>SERVICENAME</DeleteServices>
772
</InstallExecuteSequence>
773
<CustomAction Id="CheckDBInUse" Return="ignore"
774
BinaryKey="wixca.dll" DllEntry="CheckDBInUse" Execute="firstSequence"/>
775
<InstallExecuteSequence>
776
<Custom Action="CheckDBInUse" Before="LaunchConditions">Installed</Custom>
777
<Custom Action="PresetDatabaseProperties" After="CheckDBInUse"></Custom>
778
</InstallExecuteSequence>
780
<Custom Action="CheckDBInUse" Before="LaunchConditions">Installed</Custom>
781
<Custom Action="PresetDatabaseProperties" After="CheckDBInUse"></Custom>
784
<!-- Store some properties persistently in registry, mainly for upgrades -->
786
<Feature Id='StoreInstallLocation' Level='1' Absent='disallow' Display='hidden'>
787
<Component Directory='INSTALLDIR' Guid='*' Id='C.storeinstalllocation'>
788
<RegistryValue Root='HKLM' Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
789
Name='INSTALLDIR' Value='[INSTALLDIR]' Type='string' KeyPath='yes'/>
793
<?foreach STOREDVAR in SERVICENAME;DATADIR;INSTALLDIR?>
795
<Property Id='$(var.STOREDVAR)' Secure='yes'>
796
<RegistrySearch Id='$(var.STOREDVAR)Property' Root='HKLM'
797
Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
798
Name='$(var.STOREDVAR)' Type='raw' />
800
<CustomAction Id='SaveCmdLineValue_$(var.STOREDVAR)' Property='CMDLINE_$(var.STOREDVAR)'
801
Value='[$(var.STOREDVAR)]' Execute='firstSequence' />
802
<CustomAction Id='SetFromCmdLineValue_$(var.STOREDVAR)' Property='$(var.STOREDVAR)'
803
Value='[CMDLINE_$(var.STOREDVAR)]' Execute='firstSequence' />
805
<Custom Action='SaveCmdLineValue_$(var.STOREDVAR)' Before='AppSearch' />
806
<Custom Action='SetFromCmdLineValue_$(var.STOREDVAR)' After='AppSearch'>CMDLINE_$(var.STOREDVAR)</Custom>
808
<InstallExecuteSequence>
809
<Custom Action='SaveCmdLineValue_$(var.STOREDVAR)' Before='AppSearch' />
810
<Custom Action='SetFromCmdLineValue_$(var.STOREDVAR)' After='AppSearch'>CMDLINE_$(var.STOREDVAR)</Custom>
811
</InstallExecuteSequence>
816
Optionally, start upgrade wizard on exit.
821
<?if $(var.HaveUpgradeWizard) != "0" ?>
823
<Publish Dialog="ExitDialog"
826
Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
829
Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT"
830
Value="Launch wizard to upgrade existing MariaDB or MySQL services." />
831
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="0"/>
832
<Property Id="WixShellExecTarget" Value="[#F.bin.mysql_upgrade_wizard.exe]" />
833
<CustomAction Id="LaunchApplication"
835
DllEntry="WixShellExec"
838
Id="CheckServiceUpgrades" Return="ignore" BinaryKey="wixca.dll"
839
DllEntry="CheckServiceUpgrades"
840
Execute="immediate" />
842
<Custom Action="CheckServiceUpgrades" After="CostFinalize">
843
$C.bin.mysql_upgrade_wizard.exe = 3 AND NOT Installed AND NOT OLDERVERSIONBEINGUPGRADED
846
<SetProperty Before="ExecuteAction" Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT"
847
Sequence="ui" Value="[NonExistentProperty]">
848
<![CDATA[($C.bin.mysql_upgrade_wizard.exe <> 3) AND NOT Installed OR OLDERVERSIONBEINGUPGRADED]]>
850
<SetProperty Before="ExecuteAction" Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX"
851
Sequence="ui" Value="[NonExistentProperty]">
852
<![CDATA[($C.bin.mysql_upgrade_wizard.exe <> 3) AND NOT Installed OR OLDERVERSIONBEINGUPGRADED]]>
855
<?endif ?> <!-- HaveUpgradeWizard -->
858
Author the registry entries for "add or remove programs"
859
We choose to define ARPSYSTEMCOMPONENT to 1 because we want to show
860
"do you want to remove data directory" on uninstall
862
<Property Id="ARPSYSTEMCOMPONENT" Value="1" Secure="yes" />
863
<Property Id="ARPINSTALLLOCATION" Secure="yes"/>
864
<SetProperty Id="ARPINSTALLLOCATION" Value="[INSTALLDIR]" After="InstallValidate" Sequence="execute"/>
865
<Feature Id='ARPRegistryEntries'
866
Title='Add or remove program entries'
867
Description='Add or remove program entries'
869
Absent='disallow' Display='hidden'
871
<Component Id="C.arp_entries" Guid="*" Directory="INSTALLDIR">
872
<RemoveFolder Id="RemoveINSTALLDIR" On="uninstall"/>
873
<RegistryValue Root='HKLM'
874
Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
875
Name='DisplayName' Value='[ProductName]' Type='string' KeyPath='yes'/>
876
<RegistryValue Root='HKLM'
877
Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
878
Name='Publisher' Value='@MANUFACTURER@' Type='string'/>
879
<RegistryValue Root='HKLM'
880
Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
881
Name='DisplayVersion' Value='[ProductVersion]' Type='string'/>
882
<RegistryValue Root='HKLM'
883
Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
884
Name='InstallLocation' Value='[INSTALLDIR]' Type='string'/>
885
<RegistryValue Root='HKLM'
886
Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
887
Name='UninstallString' Value='msiexec.exe /I [ProductCode]' Type='string'/>
888
<RegistryValue Root='HKLM'
889
Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
890
Name='MajorVersion' Value='@MAJOR_VERSION@' Type='string'/>
891
<RegistryValue Root='HKLM'
892
Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
893
Name='MinorVersion' Value='@MINOR_VERSION@' Type='string'/>
897
<!-- Extra condition to block the installer if NSIS based installation is detected-->
898
<Property Id="NSISINSTALLKEY">
899
<RegistrySearch Id='NSISKey' Type='raw'
900
Root='HKLM' Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\MariaDB' Name='DisplayName' />
904
'Previous version of MariaDB was found, that used incompatible installer.
Please remove "[NSISINSTALLKEY]" before you proceed with this installation.'
906
<![CDATA[ NOT(NSISINSTALLKEY << "MariaDB @MAJOR_VERSION@.@MINOR_VERSION@.") OR Installed]]>
909
'Setting the ALLUSERS property is not allowed because [ProductName] is a per-machine application. Setup will now exit.'>
910
<![CDATA[ALLUSERS = "1"]]>
1
<?xml version="1.0" encoding="utf-8"?>
2
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
5
Check, if upgrade wizard was built
6
It currently requires MFC, which is not in SDK
7
neither in express edítions of VS.
9
<?ifndef HaveUpgradeWizard ?>
10
<?define HaveUpgradeWizard="1"?>
13
<!-- If Innodb is compiled in, enable "optimize for transactions" checkbox -->
14
<?ifndef HaveInnodb ?>
15
<?define HaveInnodb="0"?>
18
<Property Id="PortTemplate" Value="#####" />
19
<?if $(var.HaveInnodb) = "1" ?>
20
<Property Id="BufferPoolSizeTemplate" Value="#######" />
23
Installation parameters that can be passed via msiexec command line
24
For "booleans" (like skip networking), just providing any value means property set to "yes".
26
<!-- instalation directory (default under program files)-->
27
<!--- (defined elsewhere) <Property Id="INSTALLDIR" Secure="yes" /> -->
29
<!-- Database data directory (default under INSTALLDIR\data) -->
30
<!--- (defined elsewhere) <Property Id="DATADIR" Secure="yes"/> -->
32
<!-- Service name of database instanced (default MySQL in GUI, nothing with command line) -->
33
<!-- (defined elsewhere) <Property Id="SERVICENAME" Secure="yes" /> -->
35
<!-- Root password -->
36
<Property Id="PASSWORD" Hidden="yes" Secure="yes" />
37
<Property Id="ESCAPEDPASSWORD" Hidden="yes" Secure="yes" />
38
<!-- Database port -->
39
<Property Id="PORT" Value="3306" Secure="yes"/>
40
<!-- Whether to allow remote access for root user -->
41
<Property Id="ALLOWREMOTEROOTACCESS" Secure="yes" />
42
<!-- Skip networking. This will switch configuration to use named pipe-->
43
<Property Id="SKIPNETWORKING" Secure="yes"/>
44
<!-- Whether to keep default (unauthenticated) user. Default is no-->
45
<Property Id="DEFAULTUSER" Secure="yes"/>
46
<!-- Set server character set to UTF8 -->
47
<Property Id="UTF8" Secure="yes"/>
48
<!-- Whether to data on uninstall (default yes, after asking user consent) -->
49
<Property Id="CLEANUPDATA" Secure="yes" Value="1"/>
50
<!-- Force per machine installation -->
51
<Property Id="ALLUSERS" Secure="yes" Value="1"/>
52
<!-- Disable advertised shortcuts weirdness -->
53
<Property Id="DISABLEADVTSHORTCUTS" Secure="yes" Value="1"/>
55
<!-- Activate feedback plugin-->
56
<Property Id="FEEDBACK" Secure="yes"/>
58
<?if $(var.HaveInnodb) = "1" ?>
59
<!-- Quick configuration : set default storage engine to innodb, use strict sql_mode -->
60
<Property Id="STDCONFIG" Secure="yes" Value="1"/>
62
<!-- Innodb Buffer pool size in MB-->
63
<Property Id="BUFFERPOOLSIZE" Secure="yes"/>
66
<CustomAction Id="LaunchUrl" BinaryKey="WixCA" DllEntry="WixShellExec" Execute="immediate" Return="check" Impersonate="yes" />
70
User interface dialogs
72
<WixVariable Id='WixUIBannerBmp' Value='@CMAKE_CURRENT_SOURCE_DIR@\WixUIBannerBmp.jpg' />
73
<WixVariable Id='WixUIDialogBmp' Value='@CMAKE_CURRENT_SOURCE_DIR@\WixUIDialogBmp.jpg' />
76
<!-- Dialog on uninstall of the database -->
77
<Dialog Id="ConfirmDataCleanupDlg" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="yes">
79
<!--<Control Id="CleanupDataCheckBox" Type="CheckBox" X="20" Y="100" Height="30" Property="CLEANUPDATA" Width="300" CheckBoxValue="1"
80
Text="{\Font1}Remove default database directory 
'[DATADIR]'"/>
82
<Control Id="RemoveDatadirButton" Type="PushButton" X="40" Y="65" Width="80" Height="18"
84
<Publish Property="CLEANUPDATA" Value="1">1</Publish>
85
<Publish Event="NewDialog" Value="VerifyReadyDlg">WixUI_InstallMode</Publish>
86
<Publish Event="EndDialog" Value="Return">NOT WixUI_InstallMode</Publish>
89
<Control Id="RemoveDatadirText" Type="Text" X="60" Y="85" Width="280" Height="20">
90
<Text>Remove default database directory [DATADIR]. Ensures proper cleanup on uninstall.</Text>
93
<Control Id="KeepDatadirButton" Type="PushButton" X="40" Y="118" Width="80" Height="18"
95
<Publish Property="CLEANUPDATA">1</Publish>
96
<Publish Event="NewDialog" Value="VerifyReadyDlg">WixUI_InstallMode</Publish>
97
<Publish Event="EndDialog" Value="Return">NOT WixUI_InstallMode</Publish>
99
<Control Id="KeepDataDirText" Type="Text" X="60" Y="138" Width="280" Height="70" >
100
<Text>Do not remove [DATADIR]. Choose this option if you intend to use data in the future</Text>
104
<!-- Navigation buttons-->
105
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&Back">
106
<Publish Event="NewDialog" Value="CustomizeDlg">WixUI_InstallMode="Change"</Publish>
107
<Condition Action="disable">NOT WixUI_InstallMode</Condition>
109
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Disabled="yes" Text="&Next">
110
<Publish Event="NewDialog" Value="VerifyReadyDlg">WixUI_InstallMode</Publish>
111
<Publish Event="EndDialog" Value="Return">NOT WixUI_InstallMode</Publish>
113
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Cancel">
114
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
116
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
117
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
118
<Text>Remove default [ProductName] database</Text>
120
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
121
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
122
<Text>{\WixUI_Font_Title}Default instance properties</Text>
124
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
127
<!-- Dialog new or upgrade instance -->
129
<Property Id="CreateOrUpgradeChoice" Value="Create"/>
131
<Dialog Id="NewOrUpgradeInstanceDlg" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="yes">
132
<Control Id="Text" Type="Text" X="40" Y="65" Width="270" Height="30">
133
<Text>Setup found existing database instances that can be upgraded to [ProductName].You can create a new instance and/or upgrade existing one.
137
<Control Id="CreateOrUpgradeButton"
138
Type="RadioButtonGroup" X="40" Y="100" Width="300" Height="70"
139
Property="CreateOrUpgradeChoice" Text="Specify what to do">
140
<RadioButtonGroup Property="CreateOrUpgradeChoice">
141
<RadioButton Value="Create" X="0" Y="0" Width="300" Height="25"
142
Text="{\Font1}Create new database instance."/>
143
<RadioButton Value="Upgrade" X="0" Y="30" Width="300" Height="25"
144
Text="{\Font1}Do not create a new database. Optionally upgrade existing instances." />
148
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&Back">
149
<Publish Event="NewDialog" Value="LicenseAgreementDlg">1</Publish>
151
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Text="&Next">
152
<Publish Event="Remove" Value="DBInstance">CreateOrUpgradeChoice = "Upgrade" </Publish>
153
<Publish Event="AddLocal" Value="DBInstance">CreateOrUpgradeChoice = "Create"</Publish>
154
<Publish Property="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="[NonExistentProperty]">CreateOrUpgradeChoice = "Create"</Publish>
155
<Publish Property="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="[NonExistentProperty]">CreateOrUpgradeChoice = "Create"</Publish>
156
<Publish Property="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1">CreateOrUpgradeChoice = "Upgrade"</Publish>
157
<Publish Event="NewDialog" Value="CustomizeDlg">1</Publish>
159
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Cancel">
160
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
162
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
163
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
164
<Text>Create or upgrade database instance</Text>
166
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
167
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
168
<Text>{\WixUI_Font_Title}[ProductName] setup</Text>
170
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
173
<!-- Feedback dialog -->
174
<Dialog Id="Feedback" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="yes">
176
<Control Id="CheckBoxFeedback" Type="CheckBox" X="8" Y="61" Width="360" Height="12" Property="FEEDBACK" CheckBoxValue="1" TabSkip="no">
177
<Text>{\Font1}Enable the Feedback plugin and submit anonymous usage information</Text>
180
<Control Id="Text" Type="Text" X="23" Y="82" Width="290" Height="55">
181
<Text>Monty Program has created a Feedback plugin for MariaDB which, if enabled, collects basic anonymous statistical information. This information is used by the developers to improve MariaDB. Enabling this plugin is an easy way to help with MariaDB development. Collected statistics, and more information on the plugin, can be viewed at http://mariadb.org/feedback_plugin </Text>
184
<Control Id="MoreInfo" Type="PushButton" X="23" Y="140" Width="56" Height="17" Text="More Info" ToolTip="http://mariadb.org/feedback_plugin" >
185
<Publish Property="WixShellExecTarget" Value="http://mariadb.org/feedback_plugin" Order="1">1</Publish>
186
<Publish Event="DoAction" Value="LaunchUrl" Order="2">1</Publish>
190
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&Back">
191
<Publish Event="NewDialog" Value="ServicePortDlg">1</Publish>
193
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Text="&Next">
194
<Publish Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
196
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Cancel">
197
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
199
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
200
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
201
<Text>Submit usage information</Text>
203
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
204
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
205
<Text>{\WixUI_Font_Title}[ProductName] setup</Text>
207
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
210
<!-- Error popup dialog -->
211
<Dialog Id="WarningDlg" Width="320" Height="85" Title="[ProductName] Setup" NoMinimize="yes">
212
<Control Id="Icon" Type="Icon" X="15" Y="15" Width="24" Height="24"
213
ToolTip="Information icon" FixedSize="yes" IconSize="32" Text="WixUI_Ico_Info" />
214
<Control Id="Ok" Type="PushButton" X="132" Y="57" Width="56" Height="17"
215
Default="yes" Cancel="yes" Text="OK">
216
<Publish Property="WarningText">1</Publish>
217
<Publish Event="EndDialog" Value="Return">1</Publish>
219
<Control Id="Text" Type="Text" X="48" Y="15" Width="260" Height="30">
220
<Text>[WarningText]</Text>
225
<Property Id="ModifyRootPassword" Value="1"/>
226
<TextStyle Id="Font1" FaceName="Tahoma" Size="8" Red="0" Green="0" Blue="0" Bold="yes" />
228
<!-- Root password plus default user dialog -->
229
<Dialog Id="UserSettingsDlg" X="50" Y="50" Width="370" Height="270" Title="User settings">
230
<Control Id="EditRootPassword" Type="Edit" X="104" Y="82" Width="91" Height="15" Property="PASSWORD" Password="yes" TabSkip="no">
232
<Condition Action="enable">ModifyRootPassword</Condition>
233
<Condition Action="disable">NOT ModifyRootPassword</Condition>
235
<Control Id="EditRootPasswordConfirm" Type="Edit" X="104" Y="103" Width="91" Height="15" Property="RootPasswordConfirm" Password="yes" TabSkip="no">
237
<Condition Action="enable">ModifyRootPassword</Condition>
238
<Condition Action="disable">NOT ModifyRootPassword</Condition>
241
<Control Id="CheckBoxModifyRootPassword" Type="CheckBox" X="8" Y="62" Width="222" Height="18" Property="ModifyRootPassword" CheckBoxValue="1" TabSkip="no">
242
<Text>{\Font1}Modify password for database user 'root'</Text>
243
<Publish Property="PASSWORD" >NOT ModifyRootPassword</Publish>
244
<Publish Property="RootPasswordConfirm">NOT ModifyRootPassword</Publish>
245
<Publish Property="ALLOWREMOTEROOTACCESS">NOT ModifyRootPassword</Publish>
246
<Publish Property="ALLOWREMOTEROOTACCESS" Value="1">ModifyRootPassword</Publish>
249
<Control Id="Text5" Type="Text" X="23" Y="82" Width="77" Height="14" TabSkip="yes">
250
<Text>New root password:</Text>
252
<Control Id="Text6" Type="Text" X="201" Y="85" Width="100" Height="17" TabSkip="yes">
253
<Text>Enter new root password</Text>
255
<Control Id="Text8" Type="Text" X="23" Y="105" Width="75" Height="17" TabSkip="yes">
256
<Text>Confirm:</Text>
259
<Control Id="Text10" Type="Text" X="201" Y="104" Width="100" Height="17" TabSkip="yes">
260
<Text>Retype the password</Text>
262
<Control Id="CheckBoxALLOWREMOTEROOTACCESS" Type="CheckBox" X="23" Y="122" Width="196" Height="18" Property="ALLOWREMOTEROOTACCESS"
263
CheckBoxValue="--allow-remote-root-access" TabSkip="no">
264
<Text>{\Font1}Enable access from remote machines for 'root' user</Text>
265
<Condition Action="enable">ModifyRootPassword</Condition>
266
<Condition Action="disable">NOT ModifyRootPassword</Condition>
269
<Control Id="CheckBoxCreateDefaultUser" Type="CheckBox" X="8" Y="154" Width="200" Height="18" Property="DEFAULTUSER"
270
CheckBoxValue="--default-user" TabSkip="no">
271
<Text>{\Font1}Create An Anonymous Account</Text>
273
<Control Id="Text14" Type="Text" X="21" Y="174" Width="268" Height="16" TabSkip="yes">
274
<Text>This option will create an anonymous account on this server. </Text>
276
<Control Id="Text13" Type="Text" X="21" Y="190" Width="254" Height="24" TabSkip="yes">
277
<Text>Please note: this setting can lead to insecure systems.</Text>
280
<Control Id="CheckBoxUTF8" Type="CheckBox" X="8" Y="215" Width="250" Height="18" Property="UTF8" CheckBoxValue="1" TabSkip="no">
281
<Text>{\Font1}Use UTF8 as default server's character set</Text>
284
<!-- Navigation buttons-->
285
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&Back">
286
<Publish Event="NewDialog" Value="CustomizeDlg">1</Publish>
288
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="&Next">
289
<Publish Property="WarningText" Value="Passwords do not match."><![CDATA[PASSWORD <> RootPasswordConfirm]]></Publish>
290
<Publish Event="SpawnDialog" Value="WarningDlg"><![CDATA[WarningText <>""]]></Publish>
291
<Publish Property="SERVICENAME" Value="MySQL">NOT SERVICENAME AND NOT WarningText</Publish>
292
<Publish Event="NewDialog" Value="ServicePortDlg"><![CDATA[WarningText=""]]></Publish>
293
<Condition Action="enable"><![CDATA[NOT ModifyRootPassword OR PASSWORD]]> </Condition>
294
<Condition Action="disable"><![CDATA[ModifyRootPassword AND (NOT PASSWORD)]]> </Condition>
296
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Cancel">
297
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
299
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
300
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
301
<Text> [ProductName] database configuration</Text>
303
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
304
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
305
<Text>{\WixUI_Font_Title}Default instance properties</Text>
307
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
310
<Property Id="InstallService" Value="1"/>
311
<Property Id="EnableNetworking" Value="1"/>
313
<!-- Service and port configuration -->
314
<Dialog Id="ServicePortDlg" Width="370" Height="270" Title="Database settings">
315
<Control Id="InstallAsService" Type="CheckBox" X="9" Y="61" Width="222" Height="19" Property="InstallService" CheckBoxValue="1" TabSkip="no">
316
<Text>{\Font1}Install as service</Text>
318
<Control Id="EditServiceName" Type="Edit" X="104" Y="82" Width="91" Height="15" Property="SERVICENAME" TabSkip="no">
320
<Condition Action="enable">InstallService</Condition>
321
<Condition Action="disable">Not InstallService</Condition>
323
<Control Id="Text5" Type="Text" X="25" Y="82" Width="77" Height="14" TabSkip="yes">
324
<Text>Service Name:</Text>
326
<Control Id="CheckBoxEnableNetworking" Type="CheckBox" Height="18" Width="102" X="9" Y="117" Property="EnableNetworking" CheckBoxValue="1">
327
<Text>{\Font1}Enable networking</Text>
328
<!--<Publish Property="PORT">NOT EnableNetworking</Publish>-->
329
<Publish Property="SKIPNETWORKING" Value="--skip-networking">NOT EnableNetworking</Publish>
330
<Publish Property="SKIPNETWORKING">EnableNetworking</Publish>
332
<Control Id="LabelTCPPort" Type="Text" Height="17" Width="75" X="25" Y="142" Text="TCP port:" />
333
<Control Id="Port" Type="MaskedEdit" X="104" Y="140" Width="28" Height="15" Property="PORT" Sunken="yes" Text="[PortTemplate]">
334
<Condition Action="enable" >EnableNetworking</Condition>
335
<Condition Action="disable">Not EnableNetworking</Condition>
338
<?if $(var.HaveInnodb) = "1" ?>
339
<Control Id="CheckBoxStandardConfig" Type="CheckBox" Height="18" Width="220" X="9" Y="171" Property="STDCONFIG" CheckBoxValue="1">
340
<Text>{\Font1}Optimize for transactions</Text>
343
<Control Id="StandardConfigExplain" Type="Text" X="25" Y="190" Width="270" Height="14" TabSkip="yes">
344
<Text>(Uses transactional storage engine and "strict" SQL mode)</Text>
345
<Condition Action="enable" >STDCONFIG</Condition>
346
<Condition Action="disable">Not STDCONFIG</Condition>
348
<Control Id="LabelInnodbBufferpool" Type="Text" Height="17" Width="77" X="25" Y="210" Text="Buffer pool size:" >
349
<Condition Action="enable" >STDCONFIG</Condition>
350
<Condition Action="disable">Not STDCONFIG</Condition>
352
<Control Id="BPSize" Type="MaskedEdit" X="104" Y="208" Width="40" Height="15" Property="BUFFERPOOLSIZE" Sunken="yes" Text="[BufferPoolSizeTemplate]">
353
<Condition Action="enable" >STDCONFIG</Condition>
354
<Condition Action="disable">Not STDCONFIG</Condition>
356
<Control Id="LabelMB" Type="Text" Height="17" Width="15" X="150" Y="210" Text="MB" >
357
<Condition Action="enable" >STDCONFIG</Condition>
358
<Condition Action="disable">Not STDCONFIG</Condition>
362
<!-- Navigation buttons-->
363
<Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&Back">
364
<Publish Event="NewDialog" Value="UserSettingsDlg">1</Publish>
366
<Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="no" Text="&Next">
367
<Publish Property="SERVICENAME">NOT InstallService</Publish>
368
<Publish Property="WarningText" Value="Please enter valid port or uncheck 'Enable Networking' checkbox">
369
<![CDATA[EnableNetworking AND NOT PORT AND NOT WarningText]]>
371
<Publish Property="WarningText" Value="Please enter valid service name port or uncheck 'Install Service' checkbox">
372
<![CDATA[InstallService AND NOT SERVICENAME AND NOT WarningText]]>
374
<Publish Event="DoAction" Value="CheckDatabaseProperties">NOT WarningText</Publish>
375
<Publish Event="SpawnDialog" Value="WarningDlg">WarningText</Publish>
376
<Publish Event="NewDialog" Value="Feedback">Not WarningText</Publish>
378
<Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="no" Text="Cancel">
379
<Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
381
<Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
382
<Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
383
<Text>[ProductName] database configuration</Text>
385
<Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="2" />
386
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
387
<Text>{\WixUI_Font_Title}Default instance properties</Text>
389
<Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="2" />
393
<Property Id="CRLF" Value="
" />
394
<CustomAction Id="CheckDataDirectoryEmpty" BinaryKey="wixca.dll" DllEntry="CheckDataDirectoryEmpty" Execute="immediate" Impersonate="yes"/>
395
<!-- What to do when navigation buttons are clicked -->
396
<UI Id="MyWixUI_Mondo">
397
<UIRef Id="WixUI_FeatureTree" />
398
<UIRef Id="WixUI_ErrorProgressText" />
399
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="999">
400
OLDERVERSIONBEINGUPGRADED
402
<Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="NewOrUpgradeInstanceDlg" Order="999">
403
NOT Installed AND UpgradableServiceFound
406
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="Feedback" Order="3" ><![CDATA[&DBInstance=3 AND NOT !DBInstance=3]]></Publish>
407
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="3"> <![CDATA[OLDERVERSIONBEINGUPGRADED <>""]]></Publish>
408
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="ConfirmDataCleanupDlg" Order="1" ><![CDATA[(&DBInstance=2) AND (!DBInstance=3)]]></Publish>
411
<Publish Dialog="CustomizeDlg" Control="Back" Event="NewDialog" Value="NewOrUpgradeInstanceDlg" Order="999">
412
NOT Installed AND UpgradableServiceFound
414
<Publish Dialog="CustomizeDlg" Control="Next" Event="DoAction" Value="CheckDataDirectoryEmpty" Order="1"><![CDATA[&DBInstance=3 AND NOT !DBInstance=3]]></Publish>
415
<Publish Dialog="CustomizeDlg" Property="DATADIRNOTEMPTY" Control="Next" Order="1"><![CDATA[NOT(&DBInstance=3 AND NOT !DBInstance=3)]]></Publish>
416
<Publish Dialog="CustomizeDlg" Control="Next" Property="WarningText" Order="2"
417
Value="Selected data directory [DATADIR] is not empty. Either clean it, or choose another location for 'Database Instance' feature.">
420
<Publish Dialog="CustomizeDlg" Control="Next" Event="SpawnDialog" Value="WarningDlg" Order="3">WarningText</Publish>
421
<Publish Dialog="CustomizeDlg" Control="Next" Event="NewDialog" Value="ConfirmDataCleanupDlg" Order="4">
422
<![CDATA[(&DBInstance=2) AND (!DBInstance=3)]]>
424
<Publish Dialog="CustomizeDlg" Control="Next" Event="NewDialog" Value="UserSettingsDlg" Order="5">
425
<![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND NOT WarningText]]>
428
<Publish Dialog="ConfirmDataCleanupDlg" Control="Back" Event="NewDialog" Value="CustomizeDlg">WixUI_InstallMode = "Change"</Publish>
429
<Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="ConfirmDataCleanupDlg" Order="999">
430
!DBInstance=3 AND (CLEANUPDATA Or USECONFIRMDATACLEANUPDLG)
432
<Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Property="USECONFIRMDATACLEANUPDLG" Value="1" Order="999">
433
!DBInstance=3 AND CLEANUPDATA
435
<Publish Dialog="ConfirmDataCleanupDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg">WixUI_InstallMode = "Remove"</Publish>
438
<!-- End of UI section -->
440
<!-- Extra folders we need (DATADIR and shortcut folder) -->
441
<DirectoryRef Id='INSTALLDIR'>
442
<Directory Id="DATADIR" Name="data">
444
<Directory Id="ProgramMenuFolder">
445
<Directory Id="ShortcutFolder" Name="@CPACK_WIX_PACKAGE_NAME@">
451
<!-- Extra feature (database instance). This could be split to several subfeatures if desired (e.g firewall exception)-->
452
<Feature Id='DBInstance'
453
Title='Database instance'
455
'Install database instance. Only new database can be installed with this feature.'
456
ConfigurableDirectory='DATADIR'
460
<!-- Data directory with some reasonable security settings -->
461
<Component Id="C.datadir" Guid="*" Directory="DATADIR">
462
<RegistryValue Root='HKLM'
463
Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
464
Name='DATADIR' Value='[DATADIR]' Type='string' KeyPath='yes'/>
466
<util:PermissionEx User="[LogonUser]" GenericAll="yes" />
467
<util:PermissionEx User="NetworkService" GenericAll="yes" />
471
<!-- Database service conditioned on SERVICENAME property-->
472
<Component Id="C.service" Guid="*" Directory="DATADIR">
473
<Condition>SERVICENAME</Condition>
474
<RegistryValue Root='HKLM'
475
Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
476
Name='SERVICENAME' Value='[SERVICENAME]' Type='string' KeyPath='yes'/>
477
<ServiceControl Id='DBInstanceServiceStop' Name='[SERVICENAME]' Stop='both' Remove='uninstall' Wait='yes'/>
478
<ServiceControl Id='DBInstanceServiceStart' Name='[SERVICENAME]' Start='install' Wait='yes'/>
480
<?if $(var.HaveInnodb) = "1" ?>
481
<Component Id="C.myiniconfig" Guid="*" Directory="DATADIR">
482
<Condition>STDCONFIG</Condition>
483
<RegistryValue Root='HKLM'
484
Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
485
Name='STDCONFIG' Value='1' Type='string' KeyPath='yes'/>
492
Value=""STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"" />
498
Key="default_storage_engine"
505
Key="innodb_buffer_pool_size"
506
Value="[BUFFERPOOLSIZE]M" />
512
Key="innodb_log_file_size"
513
Value="[LOGFILESIZE]M" />
517
<Component Id="C.feedback" Guid="*" Directory="DATADIR">
518
<Condition>FEEDBACK</Condition>
519
<RegistryValue Root='HKLM'
520
Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
521
Name='FEEDBACK' Value='1' Type='string' KeyPath='yes'/>
531
<Component Id="C.utf8" Guid="*" Directory="DATADIR">
532
<Condition>UTF8</Condition>
533
<RegistryValue Root='HKLM'
534
Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
535
Name='UTF8' Value='1' Type='string' KeyPath='yes'/>
541
Key="character-set-server"
545
<!--- Grant service account permission to the database folder (Windows 7 and later) -->
546
<Component Id="C.serviceaccount.permission" Guid="*" Directory='DATADIR' Transitive='yes'>
547
<Condition><![CDATA[SERVICENAME AND (VersionNT > 600)]]></Condition>
548
<RegistryValue Root='HKLM'
549
Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
550
Name='servicepermission' Value='1' Type='string' KeyPath='yes'/>
552
<util:PermissionEx User="NT SERVICE\[SERVICENAME]" GenericAll="yes" />
556
<!-- Shortcuts in program menu (mysql client etc) -->
557
<Component Id="c.shortcuts" Guid="*" Directory="ShortcutFolder">
558
<!-- shortcut to my.ini-->
559
<RegistryValue Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall" Name="shortcuts" Value="1" Type="string" KeyPath="yes" />
560
<RemoveFolder Id="RemoveShorcutFolder" On="uninstall" />
561
<Shortcut Id="shortcut.my.ini"
562
Name="my.ini (@CPACK_WIX_PACKAGE_NAME@)"
563
Target="[System64Folder]notepad.exe"
564
Arguments=""[DATADIR]my.ini""
565
Directory="ShortcutFolder"
566
Description="Edit database configuration" />
567
<Shortcut Id="shortcut.errorlog"
568
Name="Error log (@CPACK_WIX_PACKAGE_NAME@)"
569
Target="[System64Folder]notepad.exe"
570
Arguments=""[DATADIR][ComputerName].err""
571
Directory="ShortcutFolder"
572
Description="View Database Error log" />
573
<Shortcut Id="shortcut.dbfolder" Name="Database directory (@CPACK_WIX_PACKAGE_NAME@)"
574
Target="[DATADIR]" />
577
<!-- add reference so mysql client won't get uninstalled and we have a shortcut pointing to nowhere-->
578
<ComponentRef Id="C.bin.mysql.exe"/>
580
<Component Id="c.shortcuts.commandline" Guid="*" Directory="ShortcutFolder">
582
Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall"
583
Name="shortcuts.commandline"
584
Value="1" Type="string" KeyPath="yes" />
585
<!-- shortcut to client-->
586
<Shortcut Id="shortcut.mysql.exe"
587
Name="MySQL Client (@CPACK_WIX_PACKAGE_NAME@)"
588
Target="[System64Folder]cmd.exe"
589
Arguments="/k " "[D.bin]mysql.exe" "--defaults-file=[DATADIR]my.ini" -uroot -p""
590
Directory="ShortcutFolder"
591
WorkingDirectory="D.bin"
592
Description="Starts mysql.exe for root user" />
594
<Component Id="c.shortcuts.commandprompt.db" Guid="*" Directory="ShortcutFolder" Transitive="yes">
595
<Condition>SERVICENAME</Condition>
597
Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall"
598
Name="shortcuts.commandprompt.db"
599
Value="1" Type="string" KeyPath="yes" />
600
<!-- just command prompt in the bin directory (so all utilities can be called) -->
601
<Shortcut Id="shortcut.commandprompt.exe.db"
602
Name="Command Prompt (@CPACK_WIX_PACKAGE_NAME@)"
603
Target="[System64Folder]cmd.exe"
604
Directory="ShortcutFolder"
605
Arguments="/k "set MYSQL_HOME=[DATADIR]&& set PATH=[D.bin];%PATH%;&&echo Setting environment for [ProductName] ""
606
Description="Opens command line in the installation bin directory" />
612
<Feature Id="SharedClientServerComponents"
613
Title='Utilities used by both server and client.'
615
'Client utilities that are also used with server.Required for upgrade.'
616
ConfigurableDirectory='INSTALLDIR'
620
<ComponentRef Id='C.bin.mysql.exe'/>
621
<ComponentRef Id='C.bin.mysqladmin.exe'/>
622
<ComponentRef Id='C.bin.mysql_upgrade.exe'/>
623
<ComponentRef Id='C.bin.mysqlcheck.exe'/>
624
<Component Id="c.shortcuts.commandprompt.nodb" Guid="*" Directory="ShortcutFolder" Transitive="yes">
625
<Condition>NOT SERVICENAME</Condition>
627
Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall"
628
Name="shortcuts.commandprompt.nodb"
629
Value="1" Type="string" KeyPath="yes" />
630
<!-- just command prompt in the bin directory (so all utilities can be called) -->
631
<Shortcut Id="shortcut.commandprompt.exe.nodb"
632
Name="Command Prompt (@CPACK_WIX_PACKAGE_NAME@)"
633
Target="[System64Folder]cmd.exe"
634
Directory="ShortcutFolder"
635
Arguments="/k "set PATH=[D.bin];%PATH%;&&echo Setting environment for [ProductName] ""
636
Description="Opens command line in the installation bin directory" />
638
<?if $(var.HaveUpgradeWizard) != "0" ?>
639
<ComponentRef Id='C.bin.mysql_upgrade_wizard.exe'/>
641
<Component Id="c.shortcuts.upgrade_wizard" Guid="*" Directory="ShortcutFolder" Transitive="yes">
643
Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall"
644
Name="shortcuts.upgrade_wizard"
645
Value="1" Type="string" KeyPath="yes" />
646
<Shortcut Id="shortcut.upgrade_wizard"
647
Name="Upgrade Wizard (@CPACK_WIX_PACKAGE_NAME@)"
648
Target="[INSTALLDIR]bin\mysql_upgrade_wizard.exe"
649
Directory="ShortcutFolder"
650
Description="Upgrades older instances of MariaDB/MySQL services to version @MAJOR_VERSION@.@MINOR_VERSION@"
657
<!-- Optional 3rd party tools -->
658
<DirectoryRef Id='TARGETDIR'>
659
<Directory Id='CommonFilesFolder'>
660
<Directory Id='MariaDBShared' Name='MariaDBShared'/>
662
<Directory Id='DesktopFolder'/>
666
<?if "@WITH_THIRD_PARTY@" != "" ?>
668
<!-- Include definition of 3party components -->
669
<?foreach tool in @WITH_THIRD_PARTY@ ?>
670
<?include "${CMAKE_CURRENT_BINARY_DIR}\$(var.tool).wxi" ?>
673
<Feature Id="ThirdPartyTools"
674
Title='Third party tools'
675
Description= 'Third party tools'
679
@THIRD_PARTY_FEATURE_CONDITION@
680
<!-- Include definition of 3rd party features -->
681
<?foreach tool in @WITH_THIRD_PARTY@ ?>
682
<?include "${CMAKE_CURRENT_BINARY_DIR}\$(var.tool)_feature.wxi" ?>
689
<!-- Custom action, call mysql_install_db -->
690
<SetProperty Sequence='execute' Before='CreateDatabaseCommand' Id="SKIPNETWORKING" Value="--skip-networking" >SKIPNETWORKING</SetProperty>
691
<SetProperty Sequence='execute' Before='CreateDatabaseCommand' Id="ALLOWREMOTEROOTACCESS" Value="--allow-remote-root-access">ALLOWREMOTEROOTACCESS</SetProperty>
692
<SetProperty Sequence='execute' Before='CreateDatabaseCommand' Id="DEFAULTUSER" Value="--default-user">DEFAULTUSER</SetProperty>
693
<CustomAction Id='CheckDatabaseProperties' BinaryKey='wixca.dll' DllEntry='CheckDatabaseProperties' />
694
<CustomAction Id='PresetDatabaseProperties' BinaryKey='wixca.dll' DllEntry='PresetDatabaseProperties' />
695
<CustomAction Id="CreateDatabaseCommand" Property="CreateDatabase"
697
""[#F.bin.mysql_install_db.exe]" "--service=[SERVICENAME]" --port=[PORT] "--password=[ESCAPEDPASSWORD]" "--datadir=[DATADIR]\" [SKIPNETWORKING] [ALLOWREMOTEROOTACCESS] [DEFAULTUSER] --verbose-bootstrap"
701
<CustomAction Id="CreateDatabaseRollbackCommand" Property="CreateDatabaseRollback"
702
Value="[SERVICENAME]\[DATADIR]"
703
Execute="immediate"/>
704
<CustomAction Id="CreateDatabase" BinaryKey="WixCA" DllEntry="CAQuietExec"
705
Execute="deferred" Return="check" Impersonate="no" />
706
<CustomAction Id="CreateDatabaseRollback" BinaryKey="wixca.dll" DllEntry="CreateDatabaseRollback"
707
Execute="rollback" Return="check" Impersonate="no"/>
709
<ProgressText Action="CreateDatabase">Running mysql_install_db.exe</ProgressText>
712
<!-- Error injection script activated by TEST_FAIL=1 passed to msiexec (to see how good custom action rollback works) -->
713
<Property Id="FailureProgram">
720
<CustomAction Id="FakeFailure"
722
Property="FailureProgram"
723
Execute="deferred" />
725
<CustomAction Id='ErrorDataDirNotEmpty'
726
Error='Chosen data directory [DATADIR] is not empty. It must be empty prior to installation.'/>
727
<InstallExecuteSequence>
728
<Custom Action="CheckDataDirectoryEmpty" After="CostFinalize">
729
<![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
731
<Custom Action="ErrorDataDirNotEmpty" After="CheckDataDirectoryEmpty" >DATADIRNOTEMPTY</Custom>
732
<Custom Action="CheckDatabaseProperties" Before="CreateDatabaseCommand">SERVICENAME</Custom>
733
<Custom Action="CreateDatabaseCommand" After="CostFinalize" >
734
<![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
736
<Custom Action="CreateDatabase" After="InstallFiles">
737
<![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
739
<Custom Action="CreateDatabaseRollbackCommand" After="CostFinalize">
740
<![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
742
<Custom Action="CreateDatabaseRollback" Before="CreateDatabase">
743
<![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
745
<Custom Action='FakeFailure' Before='InstallFinalize'>
746
<![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED="" AND TESTFAIL]]>
748
</InstallExecuteSequence>
751
<!-- Custom action to remove data on uninstall -->
752
<Binary Id='wixca.dll' SourceFile='@WIXCA_LOCATION@' />
753
<CustomAction Id="RemoveDataDirectory.SetProperty" Return="check"
754
Property="RemoveDataDirectory" Value="[DATADIR]" />
755
<CustomAction Id="RemoveDataDirectory" BinaryKey="wixca.dll"
756
DllEntry="RemoveDataDirectory"
760
<InstallExecuteSequence>
761
<Custom Action="RemoveDataDirectory.SetProperty" After="CreateDatabaseCommand" >
762
<![CDATA[($C.datadir=2) AND (CLEANUPDATA) AND NOT UPGRADINGPRODUCTCODE]]>
764
<Custom Action="RemoveDataDirectory" Before="RemoveFiles">
765
<![CDATA[($C.datadir=2) AND (CLEANUPDATA) AND NOT UPGRADINGPRODUCTCODE]]>
767
</InstallExecuteSequence>
769
<InstallExecuteSequence>
770
<StopServices>SERVICENAME</StopServices>
771
<DeleteServices>SERVICENAME</DeleteServices>
772
</InstallExecuteSequence>
773
<CustomAction Id="CheckDBInUse" Return="ignore"
774
BinaryKey="wixca.dll" DllEntry="CheckDBInUse" Execute="firstSequence"/>
775
<InstallExecuteSequence>
776
<Custom Action="CheckDBInUse" Before="LaunchConditions">Installed</Custom>
777
<Custom Action="PresetDatabaseProperties" After="CheckDBInUse"></Custom>
778
</InstallExecuteSequence>
780
<Custom Action="CheckDBInUse" Before="LaunchConditions">Installed</Custom>
781
<Custom Action="PresetDatabaseProperties" After="CheckDBInUse"></Custom>
784
<!-- Store some properties persistently in registry, mainly for upgrades -->
786
<Feature Id='StoreInstallLocation' Level='1' Absent='disallow' Display='hidden'>
787
<Component Directory='INSTALLDIR' Guid='*' Id='C.storeinstalllocation'>
788
<RegistryValue Root='HKLM' Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
789
Name='INSTALLDIR' Value='[INSTALLDIR]' Type='string' KeyPath='yes'/>
793
<?foreach STOREDVAR in SERVICENAME;DATADIR;INSTALLDIR?>
795
<Property Id='$(var.STOREDVAR)' Secure='yes'>
796
<RegistrySearch Id='$(var.STOREDVAR)Property' Root='HKLM'
797
Key='SOFTWARE\@MANUFACTURER@\@CPACK_WIX_PACKAGE_NAME@'
798
Name='$(var.STOREDVAR)' Type='raw' />
800
<CustomAction Id='SaveCmdLineValue_$(var.STOREDVAR)' Property='CMDLINE_$(var.STOREDVAR)'
801
Value='[$(var.STOREDVAR)]' Execute='firstSequence' />
802
<CustomAction Id='SetFromCmdLineValue_$(var.STOREDVAR)' Property='$(var.STOREDVAR)'
803
Value='[CMDLINE_$(var.STOREDVAR)]' Execute='firstSequence' />
805
<Custom Action='SaveCmdLineValue_$(var.STOREDVAR)' Before='AppSearch' />
806
<Custom Action='SetFromCmdLineValue_$(var.STOREDVAR)' After='AppSearch'>CMDLINE_$(var.STOREDVAR)</Custom>
808
<InstallExecuteSequence>
809
<Custom Action='SaveCmdLineValue_$(var.STOREDVAR)' Before='AppSearch' />
810
<Custom Action='SetFromCmdLineValue_$(var.STOREDVAR)' After='AppSearch'>CMDLINE_$(var.STOREDVAR)</Custom>
811
</InstallExecuteSequence>
816
Optionally, start upgrade wizard on exit.
821
<?if $(var.HaveUpgradeWizard) != "0" ?>
823
<Publish Dialog="ExitDialog"
826
Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
829
Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT"
830
Value="Launch wizard to upgrade existing MariaDB or MySQL services." />
831
<Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="0"/>
832
<Property Id="WixShellExecTarget" Value="[#F.bin.mysql_upgrade_wizard.exe]" />
833
<CustomAction Id="LaunchApplication"
835
DllEntry="WixShellExec"
838
Id="CheckServiceUpgrades" Return="ignore" BinaryKey="wixca.dll"
839
DllEntry="CheckServiceUpgrades"
840
Execute="immediate" />
842
<Custom Action="CheckServiceUpgrades" After="CostFinalize">
843
$C.bin.mysql_upgrade_wizard.exe = 3 AND NOT Installed AND NOT OLDERVERSIONBEINGUPGRADED
846
<SetProperty Before="ExecuteAction" Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT"
847
Sequence="ui" Value="[NonExistentProperty]">
848
<![CDATA[($C.bin.mysql_upgrade_wizard.exe <> 3) AND NOT Installed OR OLDERVERSIONBEINGUPGRADED]]>
850
<SetProperty Before="ExecuteAction" Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX"
851
Sequence="ui" Value="[NonExistentProperty]">
852
<![CDATA[($C.bin.mysql_upgrade_wizard.exe <> 3) AND NOT Installed OR OLDERVERSIONBEINGUPGRADED]]>
855
<?endif ?> <!-- HaveUpgradeWizard -->
858
Author the registry entries for "add or remove programs"
859
We choose to define ARPSYSTEMCOMPONENT to 1 because we want to show
860
"do you want to remove data directory" on uninstall
862
<Property Id="ARPSYSTEMCOMPONENT" Value="1" Secure="yes" />
863
<Property Id="ARPINSTALLLOCATION" Secure="yes"/>
864
<SetProperty Id="ARPINSTALLLOCATION" Value="[INSTALLDIR]" After="InstallValidate" Sequence="execute"/>
865
<Feature Id='ARPRegistryEntries'
866
Title='Add or remove program entries'
867
Description='Add or remove program entries'
869
Absent='disallow' Display='hidden'
871
<Component Id="C.arp_entries" Guid="*" Directory="INSTALLDIR">
872
<RemoveFolder Id="RemoveINSTALLDIR" On="uninstall"/>
873
<RegistryValue Root='HKLM'
874
Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
875
Name='DisplayName' Value='[ProductName]' Type='string' KeyPath='yes'/>
876
<RegistryValue Root='HKLM'
877
Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
878
Name='Publisher' Value='@MANUFACTURER@' Type='string'/>
879
<RegistryValue Root='HKLM'
880
Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
881
Name='DisplayVersion' Value='[ProductVersion]' Type='string'/>
882
<RegistryValue Root='HKLM'
883
Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
884
Name='InstallLocation' Value='[INSTALLDIR]' Type='string'/>
885
<RegistryValue Root='HKLM'
886
Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
887
Name='UninstallString' Value='msiexec.exe /I [ProductCode]' Type='string'/>
888
<RegistryValue Root='HKLM'
889
Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
890
Name='MajorVersion' Value='@MAJOR_VERSION@' Type='string'/>
891
<RegistryValue Root='HKLM'
892
Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
893
Name='MinorVersion' Value='@MINOR_VERSION@' Type='string'/>
897
<!-- Extra condition to block the installer if NSIS based installation is detected-->
898
<Property Id="NSISINSTALLKEY">
899
<RegistrySearch Id='NSISKey' Type='raw'
900
Root='HKLM' Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\MariaDB' Name='DisplayName' />
904
'Previous version of MariaDB was found, that used incompatible installer.
Please remove "[NSISINSTALLKEY]" before you proceed with this installation.'
906
<![CDATA[ NOT(NSISINSTALLKEY << "MariaDB @MAJOR_VERSION@.@MINOR_VERSION@.") OR Installed]]>
909
'Setting the ALLUSERS property is not allowed because [ProductName] is a per-machine application. Setup will now exit.'>
910
<![CDATA[ALLUSERS = "1"]]>