Debian Codegraph @

win/packaging/extra.wxs.in

raw
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">
3 <Fragment>
4 <!--
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.
8 -->
9 <?ifndef HaveUpgradeWizard ?>
10 <?define HaveUpgradeWizard="1"?>
11 <?endif?>
12
13 <!-- If Innodb is compiled in, enable "optimize for transactions" checkbox -->
14 <?ifndef HaveInnodb ?>
15 <?define HaveInnodb="1"?>
16 <?endif?>
17
18 <Property Id="PortTemplate" Value="#####" />
19 <?if $(var.HaveInnodb) = "1" ?>
20 <Property Id="BufferPoolSizeTemplate" Value="#######" />
21 <?endif?>
22 <!--
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".
25 -->
26 <!-- instalation directory (default under program files)-->
27 <!--- (defined elsewhere) <Property Id="INSTALLDIR" Secure="yes" /> -->
28
29 <!-- Database data directory (default under INSTALLDIR\data) -->
30 <!--- (defined elsewhere) <Property Id="DATADIR" Secure="yes"/> -->
31
32 <!-- Service name of database instanced (default MySQL in GUI, nothing with command line) -->
33 <!-- (defined elsewhere) <Property Id="SERVICENAME" Secure="yes" /> -->
34
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 <!-- Whether to data on uninstall (default yes, after asking user consent) -->
47 <Property Id="CLEANUPDATA" Secure="yes" Value="1"/>
48 <!-- Force per machine installation -->
49 <Property Id="ALLUSERS" Secure="yes" Value="1"/>
50 <!-- Disable advertised shortcuts weirdness -->
51 <Property Id="DISABLEADVTSHORTCUTS" Secure="yes" Value="1"/>
52
53 <!-- Activate feedback plugin-->
54 <Property Id="FEEDBACK" Secure="yes"/>
55
56 <!-- Quick configuration : set default storage engine to innodb, use strict sql_mode -->
57 <Property Id="STDCONFIG" Secure="yes" Value="1"/>
58
59 <!-- Innodb Buffer pool size in MB-->
60 <Property Id="BUFFERPOOLSIZE" Secure="yes"/>
61 <!-- Innodb page size -->
62 <Property Id="PAGESIZE" Secure="yes" Value="16K"/>
63
64 <CustomAction Id="LaunchUrl" BinaryKey="WixCA" DllEntry="WixShellExec" Execute="immediate" Return="check" Impersonate="yes" />
65
66
67 <!--
68 When msiexec /i ADDLOCAL=<feature_list> is used, usually only features in
69 the <feature_list> are installed. owever there are things we always want to
70 be there, there is ALWAYSINSTALL feature id, hidden in UI for that.
71 Modify ADDLOCAL list by adding mandatory features.
72 -->
73 <CustomAction Id="ForceAddMandatoryFeatures"
74 Property="ADDLOCAL"
75 Value="[ADDLOCAL],@MANDATORY_FEATURES@"/>
76 <InstallUISequence>
77 <Custom Action="ForceAddMandatoryFeatures" Before="CostFinalize">ADDLOCAL</Custom>
78 </InstallUISequence>
79 <InstallExecuteSequence>
80 <Custom Action="ForceAddMandatoryFeatures" Before="CostFinalize">ADDLOCAL</Custom>
81 </InstallExecuteSequence>
82
83 <!--
84 User interface dialogs
85 -->
86 <WixVariable Id='WixUIBannerBmp' Value='@SRCDIR@\WixUIBannerBmp.jpg' />
87 <WixVariable Id='WixUIDialogBmp' Value='@SRCDIR@\WixUIDialogBmp.jpg' />
88 <UI>
89
90 <!-- Dialog on uninstall of the database -->
91 <Dialog Id="ConfirmDataCleanupDlg" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="yes">
92
93 <!--<Control Id="CleanupDataCheckBox" Type="CheckBox" X="20" Y="100" Height="30" Property="CLEANUPDATA" Width="300" CheckBoxValue="1"
94 Text="{\Font1}Remove default database directory &#xD;&#xA;'[DATADIR]'"/>
95 -->
96 <Control Id="RemoveDatadirButton" Type="PushButton" X="40" Y="65" Width="80" Height="18"
97 Text="Remove data">
98 <Publish Property="CLEANUPDATA" Value="1">1</Publish>
99 <Publish Event="NewDialog" Value="VerifyReadyDlg">WixUI_InstallMode</Publish>
100 <Publish Event="EndDialog" Value="Return">NOT WixUI_InstallMode</Publish>
101
102 </Control>
103 <Control Id="RemoveDatadirText" Type="Text" X="60" Y="85" Width="280" Height="30">
104 <Text>Remove [DATADIR]. Ensures proper cleanup on uninstall.</Text>
105 </Control>
106
107 <Control Id="KeepDatadirButton" Type="PushButton" X="40" Y="128" Width="80" Height="18"
108 Text="Keep data">
109 <Publish Property="CLEANUPDATA">1</Publish>
110 <Publish Event="NewDialog" Value="VerifyReadyDlg">WixUI_InstallMode</Publish>
111 <Publish Event="EndDialog" Value="Return">NOT WixUI_InstallMode</Publish>
112 </Control>
113 <Control Id="KeepDataDirText" Type="Text" X="60" Y="148" Width="280" Height="70" >
114 <Text>Do not remove [DATADIR]. Choose this option if you intend to use data in the future</Text>
115 </Control>
116
117
118 <!-- Navigation buttons-->
119 <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&amp;Back">
120 <Publish Event="NewDialog" Value="CustomizeDlg">WixUI_InstallMode="Change"</Publish>
121 <Condition Action="disable">NOT WixUI_InstallMode</Condition>
122 </Control>
123 <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Disabled="yes" Text="&amp;Next">
124 <Publish Event="NewDialog" Value="VerifyReadyDlg">WixUI_InstallMode</Publish>
125 <Publish Event="EndDialog" Value="Return">NOT WixUI_InstallMode</Publish>
126 </Control>
127 <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Cancel">
128 <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
129 </Control>
130 <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
131 <Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
132 <Text>Remove default [ProductName] database</Text>
133 </Control>
134 <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
135 <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
136 <Text>{\WixUI_Font_Title}Default instance properties</Text>
137 </Control>
138 <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
139 </Dialog>
140
141 <!-- Dialog new or upgrade instance -->
142
143 <Property Id="CreateOrUpgradeChoice" Value="Create"/>
144
145 <Dialog Id="NewOrUpgradeInstanceDlg" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="yes">
146 <Control Id="Text" Type="Text" X="40" Y="65" Width="270" Height="30">
147 <Text>Setup found existing database instances that can be upgraded to [ProductName].You can create a new instance and/or upgrade existing one.
148 </Text>
149 </Control>
150
151 <Control Id="CreateOrUpgradeButton"
152 Type="RadioButtonGroup" X="40" Y="100" Width="300" Height="70"
153 Property="CreateOrUpgradeChoice" Text="Specify what to do">
154 <RadioButtonGroup Property="CreateOrUpgradeChoice">
155 <RadioButton Value="Create" X="0" Y="0" Width="300" Height="25"
156 Text="{\Font1}Create new database instance."/>
157 <RadioButton Value="Upgrade" X="0" Y="30" Width="300" Height="25"
158 Text="{\Font1}Do not create a new database. Optionally upgrade existing instances." />
159 </RadioButtonGroup>
160 </Control>
161
162 <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&amp;Back">
163 <Publish Event="NewDialog" Value="LicenseAgreementDlg">1</Publish>
164 </Control>
165 <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Text="&amp;Next">
166 <Publish Event="Remove" Value="DBInstance">CreateOrUpgradeChoice = "Upgrade" </Publish>
167 <Publish Event="AddLocal" Value="DBInstance">CreateOrUpgradeChoice = "Create"</Publish>
168 <Publish Property="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="[NonExistentProperty]">CreateOrUpgradeChoice = "Create"</Publish>
169 <Publish Property="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="[NonExistentProperty]">CreateOrUpgradeChoice = "Create"</Publish>
170 <Publish Property="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="1">CreateOrUpgradeChoice = "Upgrade"</Publish>
171 <Publish Event="NewDialog" Value="CustomizeDlg">1</Publish>
172 </Control>
173 <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Cancel">
174 <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
175 </Control>
176 <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
177 <Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
178 <Text>Create or upgrade database instance</Text>
179 </Control>
180 <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
181 <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
182 <Text>{\WixUI_Font_Title}[ProductName] setup</Text>
183 </Control>
184 <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
185 </Dialog>
186
187 <!-- Error popup dialog -->
188 <Dialog Id="WarningDlg" Width="320" Height="85" Title="[ProductName] Setup" NoMinimize="yes">
189 <Control Id="Icon" Type="Icon" X="15" Y="15" Width="24" Height="24"
190 ToolTip="Information icon" FixedSize="yes" IconSize="32" Text="WixUI_Ico_Info" />
191 <Control Id="Ok" Type="PushButton" X="132" Y="57" Width="56" Height="17"
192 Default="yes" Cancel="yes" Text="OK">
193 <Publish Property="WarningText">1</Publish>
194 <Publish Event="EndDialog" Value="Return">1</Publish>
195 </Control>
196 <Control Id="Text" Type="Text" X="48" Y="15" Width="260" Height="30">
197 <Text>[WarningText]</Text>
198 </Control>
199 </Dialog>
200
201
202 <Property Id="ModifyRootPassword" Value="1"/>
203 <TextStyle Id="Font1" FaceName="Tahoma" Size="8" Red="0" Green="0" Blue="0" Bold="yes" />
204
205 <!-- Root password plus default user dialog -->
206 <Dialog Id="UserSettingsDlg" X="50" Y="50" Width="370" Height="270" Title="User settings">
207 <Control Id="EditRootPassword" Type="Edit" X="104" Y="82" Width="91" Height="15" Property="PASSWORD" Password="yes" TabSkip="no">
208 <Text>{100}</Text>
209 <Condition Action="enable">ModifyRootPassword</Condition>
210 <Condition Action="disable">NOT ModifyRootPassword</Condition>
211 </Control>
212 <Control Id="EditRootPasswordConfirm" Type="Edit" X="104" Y="103" Width="91" Height="15" Property="RootPasswordConfirm" Password="yes" TabSkip="no">
213 <Text>{100}</Text>
214 <Condition Action="enable">ModifyRootPassword</Condition>
215 <Condition Action="disable">NOT ModifyRootPassword</Condition>
216 </Control>
217
218 <Control Id="CheckBoxModifyRootPassword" Type="CheckBox" X="8" Y="62" Width="222" Height="18" Property="ModifyRootPassword" CheckBoxValue="1" TabSkip="no">
219 <Text>{\Font1}Modify password for database user 'root'</Text>
220 <Publish Property="PASSWORD" >NOT ModifyRootPassword</Publish>
221 <Publish Property="RootPasswordConfirm">NOT ModifyRootPassword</Publish>
222 <Publish Property="ALLOWREMOTEROOTACCESS">NOT ModifyRootPassword</Publish>
223 <Publish Property="ALLOWREMOTEROOTACCESS" Value="1">ModifyRootPassword</Publish>
224 </Control>
225
226 <Control Id="Text5" Type="Text" X="23" Y="82" Width="77" Height="14" TabSkip="yes">
227 <Text>New root password:</Text>
228 </Control>
229 <Control Id="Text6" Type="Text" X="201" Y="85" Width="100" Height="17" TabSkip="yes">
230 <Text>Enter new root password</Text>
231 </Control>
232 <Control Id="Text8" Type="Text" X="23" Y="105" Width="75" Height="17" TabSkip="yes">
233 <Text>Confirm:</Text>
234 </Control>
235
236 <Control Id="Text10" Type="Text" X="201" Y="104" Width="100" Height="17" TabSkip="yes">
237 <Text>Retype the password</Text>
238 </Control>
239 <Control Id="CheckBoxALLOWREMOTEROOTACCESS" Type="CheckBox" X="23" Y="122" Width="196" Height="18" Property="ALLOWREMOTEROOTACCESS"
240 CheckBoxValue="--allow-remote-root-access" TabSkip="no">
241 <Text>{\Font1}Enable access from remote machines for 'root' user</Text>
242 <Condition Action="enable">ModifyRootPassword</Condition>
243 <Condition Action="disable">NOT ModifyRootPassword</Condition>
244 </Control>
245
246 <Control Id="CheckBoxFeedback" Type="CheckBox" X="8" Y="150" Width="350" Height="18" Property="FEEDBACK" CheckBoxValue="1" TabSkip="no">
247 <Text>{\Font1}Enable the Feedback plugin and submit anonymous usage information</Text>
248 </Control>
249
250 <Control Id="LinkFeedbackPlugin" Type="Hyperlink" X="23" Y="167" Width="350" Height="18" TabSkip="yes">
251 <Text>Collected statistics can be viewed at <![CDATA[<a href="https://mariadb.org/feedback-plugin">https://mariadb.org/feedback-plugin</a>]]></Text>
252 </Control>
253
254 <Control Type="Text" Id="Text11" Width="67" Height="17" X="8" Y="190" Text="{\Font1}Data directory" />
255 <Control Type="PathEdit" Id="TxtDir" Width="175" Height="18" X="80" Y="190" Property="DATADIR">
256 </Control>
257 <Control Id="btnDirBrowse" Type="PushButton" Width="56" Height="17" X="278" Y="190" Text="Browse...">
258 <Publish Property="_BrowseProperty" Value="DATADIR" Order="1">1</Publish>
259 <Publish Event="SpawnDialog" Value="BrowseDlg" Order="2">1</Publish>
260 </Control>
261 <!-- Navigation buttons-->
262 <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&amp;Back">
263 <Publish Event="NewDialog" Value="CustomizeDlg">1</Publish>
264 </Control>
265 <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="&amp;Next">
266 <Publish Event="DoAction" Value="CheckDataDirectory">1</Publish>
267 <Publish Property="WarningText" Value="Invalid data directory, choose a different one. Error: [DATADIRERROR]">
268 DATADIRERROR
269 </Publish>
270 <Publish Property="WarningText" Value="Passwords do not match."><![CDATA[PASSWORD <> RootPasswordConfirm]]></Publish>
271 <Publish Event="SpawnDialog" Value="WarningDlg"><![CDATA[WarningText <>""]]></Publish>
272 <Publish Property="SERVICENAME" Value="MariaDB">NOT SERVICENAME AND NOT WarningText</Publish>
273 <Publish Event="NewDialog" Value="ServicePortDlg"><![CDATA[WarningText=""]]></Publish>
274 <Condition Action="enable"><![CDATA[NOT ModifyRootPassword OR PASSWORD]]> </Condition>
275 <Condition Action="disable"><![CDATA[ModifyRootPassword AND (NOT PASSWORD)]]> </Condition>
276 </Control>
277 <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="yes" Text="Cancel">
278 <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
279 </Control>
280 <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
281 <Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
282 <Text> [ProductName] database configuration</Text>
283 </Control>
284 <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="0" />
285 <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
286 <Text>{\WixUI_Font_Title}Default instance properties</Text>
287 </Control>
288 <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="0" />
289 </Dialog>
290
291 <Property Id="InstallService" Value="1"/>
292 <Property Id="EnableNetworking" Value="1"/>
293
294 <!-- Service and port configuration -->
295 <Dialog Id="ServicePortDlg" Width="370" Height="270" Title="Database settings">
296 <Control Id="InstallAsService" Type="CheckBox" X="9" Y="61" Width="222" Height="19" Property="InstallService" CheckBoxValue="1" TabSkip="no">
297 <Text>{\Font1}Install as service</Text>
298 </Control>
299 <Control Id="EditServiceName" Type="Edit" X="104" Y="82" Width="91" Height="15" Property="SERVICENAME" TabSkip="no">
300 <Text>{20}</Text>
301 <Condition Action="enable">InstallService</Condition>
302 <Condition Action="disable">Not InstallService</Condition>
303 </Control>
304 <Control Id="Text5" Type="Text" X="25" Y="82" Width="77" Height="14" TabSkip="yes">
305 <Text>Service Name:</Text>
306 </Control>
307 <Control Id="CheckBoxEnableNetworking" Type="CheckBox" Height="18" Width="102" X="9" Y="117" Property="EnableNetworking" CheckBoxValue="1">
308 <Text>{\Font1}Enable networking</Text>
309 <!--<Publish Property="PORT">NOT EnableNetworking</Publish>-->
310 <Publish Property="SKIPNETWORKING" Value="--skip-networking">NOT EnableNetworking</Publish>
311 <Publish Property="SKIPNETWORKING">EnableNetworking</Publish>
312 </Control>
313 <Control Id="LabelTCPPort" Type="Text" Height="17" Width="75" X="25" Y="142" Text="TCP port:" />
314 <Control Id="Port" Type="MaskedEdit" X="104" Y="140" Width="28" Height="15" Property="PORT" Sunken="yes" Text="[PortTemplate]">
315 <Condition Action="enable" >EnableNetworking</Condition>
316 <Condition Action="disable">Not EnableNetworking</Condition>
317 </Control>
318
319 <Control Id="LabelInnodbSettings" Type="Text" Height="18" Width="220" X="25" Y="171" >
320 <Text>{\Font1}Innodb engine settings</Text>
321 </Control>
322 <Control Id="LabelInnodbBufferpool" Type="Text" Height="17" Width="77" X="25" Y="190" Text="Buffer pool size:" />
323 <Control Id="BPSize" Type="MaskedEdit" X="104" Y="188" Width="40" Height="15" Property="BUFFERPOOLSIZE" Sunken="yes" Text="[BufferPoolSizeTemplate]"/>
324 <Control Id="LabelMB" Type="Text" Height="17" Width="15" X="150" Y="190" Text="MB" />
325 <Control Id="LabelInnodbPageSize" Type="Text" Height="17" Width="77" X="25" Y="208" Text="Page size:" />
326 <Control Id="LabelKB" Type="Text" Height="17" Width="15" X="150" Y="210" Text="KB" />
327 <Control Id="ComboBoxInnodbPageSize" Type="ComboBox" X="104" Y="208" Width="30" Height="17" ComboList="yes" Sorted="yes" Property="PAGESIZE" >
328 <ComboBox Property="PAGESIZE">
329 <ListItem Text=" 4" Value="4K"/>
330 <ListItem Text=" 8" Value="8K"/>
331 <ListItem Text="16" Value="16K"/>
332 <ListItem Text="32" Value="32K"/>
333 <ListItem Text="64" Value="64K"/>
334 </ComboBox>
335 </Control>
336
337 <!-- Navigation buttons-->
338 <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" Height="17" Text="&amp;Back">
339 <Publish Event="NewDialog" Value="UserSettingsDlg">1</Publish>
340 </Control>
341 <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="no" Text="&amp;Next">
342 <Publish Property="SERVICENAME">NOT InstallService</Publish>
343 <Publish Property="WarningText" Value="Please enter valid port or uncheck 'Enable Networking' checkbox">
344 <![CDATA[EnableNetworking AND NOT PORT AND NOT WarningText]]>
345 </Publish>
346 <Publish Property="WarningText" Value="Please enter valid service name port or uncheck 'Install Service' checkbox">
347 <![CDATA[InstallService AND NOT SERVICENAME AND NOT WarningText]]>
348 </Publish>
349 <Publish Event="DoAction" Value="CheckDatabaseProperties">NOT WarningText</Publish>
350 <Publish Event="SpawnDialog" Value="WarningDlg">WarningText</Publish>
351 <Publish Event="NewDialog" Value="VerifyReadyDlg">Not WarningText</Publish>
352 </Control>
353 <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" Height="17" Cancel="no" Text="Cancel">
354 <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
355 </Control>
356 <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
357 <Control Id="Description" Type="Text" X="25" Y="23" Width="280" Height="15" Transparent="yes" NoPrefix="yes">
358 <Text>[ProductName] database configuration</Text>
359 </Control>
360 <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" Height="2" />
361 <Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
362 <Text>{\WixUI_Font_Title}Default instance properties</Text>
363 </Control>
364 <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" Height="2" />
365 </Dialog>
366 </UI>
367
368 <Property Id="CRLF" Value="&#xD;&#xA;" />
369 <CustomAction Id="CheckDataDirectory" BinaryKey="wixca.dll" DllEntry="CheckDataDirectory" Execute="immediate" Impersonate="yes"/>
370 <CustomAction Id="CheckInstallDirectory" BinaryKey="wixca.dll" DllEntry="CheckInstallDirectory" Execute="immediate" Impersonate="yes"/>
371 <!-- What to do when navigation buttons are clicked -->
372 <UI Id="MyWixUI_Mondo">
373 <UIRef Id="WixUI_FeatureTree" />
374 <UIRef Id="WixUI_ErrorProgressText" />
375 <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg" Order="999">
376 OLDERVERSIONBEINGUPGRADED
377 </Publish>
378 <Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="NewOrUpgradeInstanceDlg" Order="999">
379 NOT Installed AND UpgradableServiceFound
380 </Publish>
381
382 <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="ServicePortDlg" Order="3" ><![CDATA[&DBInstance=3 AND NOT !DBInstance=3]]></Publish>
383 <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="3"> <![CDATA[OLDERVERSIONBEINGUPGRADED <>""]]></Publish>
384 <Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="ConfirmDataCleanupDlg" Order="1" ><![CDATA[(&DBInstance=2) AND (!DBInstance=3)]]></Publish>
385
386
387 <Publish Dialog="CustomizeDlg" Control="Back" Event="NewDialog" Value="NewOrUpgradeInstanceDlg" Order="999">
388 NOT Installed AND UpgradableServiceFound
389 </Publish>
390 <Publish Dialog="CustomizeDlg" Control="Next" Event="DoAction" Value="CheckInstallDirectory" Order="1">NOT Installed</Publish>
391 <Publish Dialog="CustomizeDlg" Control="Next" Property="WarningText" Order="2"
392 Value="[INSTALLDIRERROR]">
393 INSTALLDIRERROR
394 </Publish>
395 <Publish Dialog="CustomizeDlg" Control="Next" Event="SpawnDialog" Value="WarningDlg" Order="3">WarningText</Publish>
396 <Publish Dialog="CustomizeDlg" Control="Next" Event="NewDialog" Value="ConfirmDataCleanupDlg" Order="4">
397 <![CDATA[(&DBInstance=2) AND (!DBInstance=3)]]>
398 </Publish>
399 <Publish Dialog="CustomizeDlg" Control="Next" Event="NewDialog" Value="UserSettingsDlg" Order="5">
400 <![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND NOT WarningText]]>
401 </Publish>
402
403 <Publish Dialog="ConfirmDataCleanupDlg" Control="Back" Event="NewDialog" Value="CustomizeDlg">WixUI_InstallMode = "Change"</Publish>
404 <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="ConfirmDataCleanupDlg" Order="999">
405 !DBInstance=3 AND (CLEANUPDATA Or USECONFIRMDATACLEANUPDLG)
406 </Publish>
407 <Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Property="USECONFIRMDATACLEANUPDLG" Value="1" Order="999">
408 !DBInstance=3 AND CLEANUPDATA
409 </Publish>
410 <Publish Dialog="ConfirmDataCleanupDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg">WixUI_InstallMode = "Remove"</Publish>
411 </UI>
412
413 <!-- End of UI section -->
414
415 <!-- Extra folders we need (DATADIR and shortcut folder) -->
416 <DirectoryRef Id='INSTALLDIR'>
417 <Directory Id="DATADIR" Name="data">
418 </Directory>
419 <Directory Id="ProgramMenuFolder">
420 <Directory Id="ShortcutFolder" Name="@CPACK_WIX_PACKAGE_NAME@">
421 </Directory>
422 </Directory>
423 </DirectoryRef>
424
425
426 <!-- Extra feature (database instance). This could be split to several subfeatures if desired (e.g firewall exception)-->
427 <Feature Id='DBInstance'
428 Title='Database instance'
429 Description=
430 'Install database instance. Only new database can be installed with this feature.'
431 ConfigurableDirectory='DATADIR'
432 AllowAdvertise='no'
433 Level='1'>
434
435 <!-- Data directory with some reasonable security settings -->
436 <Component Id="C.datadir" Guid="*" Directory="DATADIR">
437 <RegistryValue Root='HKLM'
438 Key='SOFTWARE\@CPACK_WIX_PACKAGE_NAME@'
439 Name='DATADIR' Value='[DATADIR]' Type='string' KeyPath='yes'/>
440 </Component>
441
442 <Component Id="C.datadir.permissions" Directory="DATADIR">
443 <Condition>
444 <!--
445 Skip setting permissions for LogonUser, if package is installed by
446 service user (e.g LocalSystem)
447 -->
448 <![CDATA[ (UserSID <> "S-1-5-18") AND (UserSID <> "S-1-5-19") AND (UserSID <> "S-1-5-20") ]]>
449 </Condition>
450 <RegistryValue Root='HKLM'
451 Key='SOFTWARE\@CPACK_WIX_PACKAGE_NAME@'
452 Name='InstalledBy' Value='[USER_DOMAIN]\[LogonUser]' Type='string' KeyPath='yes'/>
453 <CreateFolder>
454 <util:PermissionEx User="[LogonUser]" Domain="[USER_DOMAIN]" GenericAll="yes" />
455 </CreateFolder>
456 </Component>
457
458 <!-- Database service conditioned on SERVICENAME property-->
459 <Component Id="C.service" Guid="*" Directory="DATADIR">
460 <Condition>SERVICENAME</Condition>
461 <RegistryValue Root='HKLM'
462 Key='SOFTWARE\@CPACK_WIX_PACKAGE_NAME@'
463 Name='SERVICENAME' Value='[SERVICENAME]' Type='string' KeyPath='yes'/>
464 <ServiceControl Id='DBInstanceServiceStop' Name='[SERVICENAME]' Stop='both' Remove='uninstall' Wait='yes'/>
465 <ServiceControl Id='DBInstanceServiceStart' Name='[SERVICENAME]' Start='install' Wait='yes'/>
466 </Component>
467
468 <Component Id="C.myiniconfig" Guid="*" Directory="DATADIR">
469 <RegistryValue Root='HKLM'
470 Key='SOFTWARE\@CPACK_WIX_PACKAGE_NAME@'
471 Name='STDCONFIG' Value='1' Type='string' KeyPath='yes'/>
472 <IniFile Id="Ini3"
473 Action="createLine"
474 Directory="DATADIR"
475 Section="mysqld"
476 Name="my.ini"
477 Key="innodb_buffer_pool_size"
478 Value="[BUFFERPOOLSIZE]M" />
479 </Component>
480 <Component Id="C.feedback" Guid="*" Directory="DATADIR">
481 <Condition>FEEDBACK</Condition>
482 <RegistryValue Root='HKLM'
483 Key='SOFTWARE\@CPACK_WIX_PACKAGE_NAME@'
484 Name='FEEDBACK' Value='1' Type='string' KeyPath='yes'/>
485 <IniFile Id="Ini5"
486 Action="createLine"
487 Directory="DATADIR"
488 Section="mysqld"
489 Name="my.ini"
490 Key="feedback"
491 Value="ON" />
492 </Component>
493
494 <!-- Shortcuts in program menu (mysql client etc) -->
495 <Component Id="c.shortcuts" Guid="*" Directory="ShortcutFolder">
496 <!-- shortcut to my.ini-->
497 <RegistryValue Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall" Name="shortcuts" Value="1" Type="string" KeyPath="yes" />
498 <RemoveFolder Id="RemoveShorcutFolder" On="uninstall" />
499 <Shortcut Id="shortcut.my.ini"
500 Name="my.ini (@CPACK_WIX_PACKAGE_NAME@)"
501 Target="[System64Folder]notepad.exe"
502 Arguments="&quot;[DATADIR]my.ini&quot;"
503 Directory="ShortcutFolder"
504 Description="Edit database configuration" />
505 <Shortcut Id="shortcut.errorlog"
506 Name="Error log (@CPACK_WIX_PACKAGE_NAME@)"
507 Target="[System64Folder]notepad.exe"
508 Arguments="&quot;[DATADIR][ComputerName].err&quot;"
509 Directory="ShortcutFolder"
510 Description="View Database Error log" />
511 <Shortcut Id="shortcut.dbfolder" Name="Database directory (@CPACK_WIX_PACKAGE_NAME@)"
512 Target="[DATADIR]" />
513 </Component>
514
515 <!-- add reference so mysql client won't get uninstalled and we have a shortcut pointing to nowhere-->
516 <ComponentRef Id="C.bin.mysql.exe"/>
517
518 <Component Id="c.shortcuts.commandline" Guid="*" Directory="ShortcutFolder">
519 <RegistryValue
520 Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall"
521 Name="shortcuts.commandline"
522 Value="1" Type="string" KeyPath="yes" />
523 <!-- shortcut to client-->
524 <Shortcut Id="shortcut.mysql.exe"
525 Name="MySQL Client (@CPACK_WIX_PACKAGE_NAME@)"
526 Target="[System64Folder]cmd.exe"
527 Arguments="/k &quot; &quot;[D.bin]mysql.exe&quot; &quot;--defaults-file=[DATADIR]my.ini&quot; -uroot -p&quot;"
528 Directory="ShortcutFolder"
529 WorkingDirectory="D.bin"
530 Description="Starts mysql.exe for root user" />
531 </Component>
532 <Component Id="c.shortcuts.commandprompt.db" Guid="*" Directory="ShortcutFolder" Transitive="yes">
533 <Condition>SERVICENAME</Condition>
534 <RegistryValue
535 Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall"
536 Name="shortcuts.commandprompt.db"
537 Value="1" Type="string" KeyPath="yes" />
538 <!-- just command prompt in the bin directory (so all utilities can be called) -->
539 <Shortcut Id="shortcut.commandprompt.exe.db"
540 Name="Command Prompt (@CPACK_WIX_PACKAGE_NAME@)"
541 Target="[System64Folder]cmd.exe"
542 Directory="ShortcutFolder"
543 Arguments="/k &quot;set MYSQL_HOME=[DATADIR]&amp;&amp; set PATH=[D.bin];%PATH%;&amp;&amp;echo Setting environment for [ProductName] &quot;"
544 Description="Opens command line in the installation bin directory" />
545 </Component>
546
547
548 </Feature>
549
550 <Feature Id="SharedClientServerComponents"
551 Title='Utilities used by both server and client.'
552 Description=
553 'Client utilities that are also used with server.Required for upgrade.'
554 ConfigurableDirectory='INSTALLDIR'
555 AllowAdvertise='no'
556 Level='1'
557 Display='hidden'>
558
559 <Component Id="C_Permissions.bin" Guid="2ce05496-3273-4866-a5b5-1eff2837b4cb" Directory="D.bin">
560 <!-- in case service is installed now on it the future -->
561 <CreateFolder>
562 <util:PermissionEx User="ALL SERVICES" Domain="NT SERVICE" GenericRead="yes" GenericExecute="yes" />
563 </CreateFolder>
564 <Condition>SERVICENAME</Condition>
565 </Component>
566
567 <Component Id="C_Permissions.lib.plugin" Guid="ff2e8f47-83fd-4dee-9e22-f103600cfc80" Directory="D.lib.plugin">
568 <CreateFolder>
569 <util:PermissionEx User="ALL SERVICES" Domain="NT SERVICE" GenericRead="yes" GenericExecute="yes" />
570 </CreateFolder>
571 <Condition>SERVICENAME</Condition>
572 </Component>
573
574 <Component Id="C_Permissions.share" Guid="be8ee2fb-a837-4b31-b59a-68a506d97d81" Directory="D.share">
575 <CreateFolder>
576 <util:PermissionEx User="ALL SERVICES" Domain="NT SERVICE" GenericRead="yes" GenericExecute="yes" />
577 </CreateFolder>
578 <Condition>SERVICENAME</Condition>
579 </Component>
580
581 <ComponentRef Id='C.bin.mysql.exe'/>
582 <ComponentRef Id='C.bin.mysqladmin.exe'/>
583 <ComponentRef Id='C.bin.mysql_upgrade.exe'/>
584 <ComponentRef Id='C.bin.mysqlcheck.exe'/>
585 <Component Id="c.shortcuts.commandprompt.nodb" Guid="*" Directory="ShortcutFolder" Transitive="yes">
586 <Condition>NOT SERVICENAME</Condition>
587 <RegistryValue
588 Root="HKCU" Key="Software\@CPACK_WIX_PACKAGE_NAME@\Uninstall"
589 Name="shortcuts.commandprompt.nodb"
590 Value="1" Type="string" KeyPath="yes" />
591 <!-- just command prompt in the bin directory (so all utilities can be called) -->
592 <Shortcut Id="shortcut.commandprompt.exe.nodb"
593 Name="Command Prompt (@CPACK_WIX_PACKAGE_NAME@)"
594 Target="[System64Folder]cmd.exe"
595 Directory="ShortcutFolder"
596 Arguments="/k &quot;set PATH=[D.bin];%PATH%;&amp;&amp;echo Setting environment for [ProductName] &quot;"
597 Description="Opens command line in the installation bin directory" />
598 </Component>
599 <?if $(var.HaveUpgradeWizard) != "0" ?>
600 <ComponentRef Id='C.bin.mysql_upgrade_wizard.exe'/>
601 <?endif?>
602 </Feature>
603
604 <!-- Optional 3rd party tools -->
605 <DirectoryRef Id='TARGETDIR'>
606 <Directory Id='CommonFiles64Folder'>
607 <Directory Id='MariaDBShared' Name='MariaDBShared'/>
608 </Directory>
609 <Directory Id='DesktopFolder'/>
610 </DirectoryRef>
611
612
613 <?if "@WITH_THIRD_PARTY@" != "" ?>
614
615 <!-- Include definition of 3party components -->
616 <?foreach tool in @WITH_THIRD_PARTY@ ?>
617 <?include "${CMAKE_CURRENT_BINARY_DIR}\$(var.tool).wxi" ?>
618 <?endforeach ?>
619
620 <Feature Id="ThirdPartyTools"
621 Title='Third party tools'
622 Description= 'Third party tools'
623 AllowAdvertise='no'
624 Level='1'
625 Display='expand'>
626 @THIRD_PARTY_FEATURE_CONDITION@
627 <!-- Include definition of 3rd party features -->
628 <?foreach tool in @WITH_THIRD_PARTY@ ?>
629 <?include "${CMAKE_CURRENT_BINARY_DIR}\$(var.tool)_feature.wxi" ?>
630 <?endforeach ?>
631
632 </Feature>
633
634 <?endif ?>
635
636
637 <!-- Custom action, call mysql_install_db -->
638 <SetProperty Sequence='execute' Before='CreateDatabaseCommand' Id="SKIPNETWORKING" Value="--skip-networking" >SKIPNETWORKING</SetProperty>
639 <SetProperty Sequence='execute' Before='CreateDatabaseCommand' Id="ALLOWREMOTEROOTACCESS" Value="--allow-remote-root-access">ALLOWREMOTEROOTACCESS</SetProperty>
640 <SetProperty Sequence='execute' Before='CreateDatabaseCommand' Id="DEFAULTUSER" Value="--default-user">DEFAULTUSER</SetProperty>
641 <CustomAction Id='CheckDatabaseProperties' BinaryKey='wixca.dll' DllEntry='CheckDatabaseProperties' />
642 <CustomAction Id='PresetDatabaseProperties' BinaryKey='wixca.dll' DllEntry='PresetDatabaseProperties' />
643 <CustomAction Id="CreateDatabaseCommand" Property="CreateDatabase"
644 Value=
645 "&quot;[#F.bin.mysql_install_db.exe]&quot; &quot;--service=[SERVICENAME]&quot; --port=[PORT] --innodb-page-size=[PAGESIZE] &quot;--password=[ESCAPEDPASSWORD]&quot; &quot;--datadir=[DATADIR]\&quot; [SKIPNETWORKING] [ALLOWREMOTEROOTACCESS] [DEFAULTUSER] --verbose-bootstrap"
646 Execute="immediate"
647 HideTarget="yes"
648 />
649 <CustomAction Id="CreateDatabaseRollbackCommand" Property="CreateDatabaseRollback"
650 Value="[SERVICENAME]\[DATADIR]"
651 Execute="immediate"/>
652 <CustomAction Id="CreateDatabase" BinaryKey="WixCA" DllEntry="@CA_QUIET_EXEC@"
653 Execute="deferred" Return="check" Impersonate="no" />
654 <CustomAction Id="CreateDatabaseRollback" BinaryKey="wixca.dll" DllEntry="CreateDatabaseRollback"
655 Execute="rollback" Return="check" Impersonate="no"/>
656 <UI>
657 <ProgressText Action="CreateDatabase">Running mariadb-install-db.exe</ProgressText>
658 </UI>
659
660 <!-- Error injection script activated by TEST_FAIL=1 passed to msiexec (to see how good custom action rollback works) -->
661 <Property Id="FailureProgram">
662 <![CDATA[
663 Function Main()
664 Main = 3
665 End Function
666 ]]>
667 </Property>
668 <CustomAction Id="FakeFailure"
669 VBScriptCall="Main"
670 Property="FailureProgram"
671 Execute="deferred" />
672
673 <CustomAction Id='ErrorDataDir'
674 Error='Invalid data directory, choose a different one. Error : [DATADIRERROR]'/>
675 <CustomAction Id="ErrorInstallDir"
676 Error="[INSTALLDIRERROR]" />
677 <InstallExecuteSequence>
678 <Custom Action="CheckDataDirectory" After="CostFinalize">
679 <![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
680 </Custom>
681 <Custom Action="ErrorDataDir" After="CheckDataDirectory">DATADIRERROR</Custom>
682 <Custom Action="CheckInstallDirectory" After="CostFinalize">
683 NOT Installed AND OLDERVERSIONBEINGUPGRADED=""
684 </Custom>
685 <Custom Action="ErrorInstallDir" After="CheckInstallDirectory">INSTALLDIRERROR</Custom>
686 <Custom Action="CheckDatabaseProperties" Before="CreateDatabaseCommand">SERVICENAME</Custom>
687 <Custom Action="CreateDatabaseCommand" After="CostFinalize" >
688 <![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
689 </Custom>
690 <Custom Action="CreateDatabase" After="InstallFiles">
691 <![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
692 </Custom>
693 <Custom Action="CreateDatabaseRollbackCommand" After="CostFinalize">
694 <![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
695 </Custom>
696 <Custom Action="CreateDatabaseRollback" Before="CreateDatabase">
697 <![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED=""]]>
698 </Custom>
699 <Custom Action='FakeFailure' Before='InstallFinalize'>
700 <![CDATA[&DBInstance=3 AND NOT !DBInstance=3 AND OLDERVERSIONBEINGUPGRADED="" AND TESTFAIL]]>
701 </Custom>
702 </InstallExecuteSequence>
703
704
705 <!-- Custom action to remove data on uninstall -->
706 <Binary Id='wixca.dll' SourceFile='@WIXCA_LOCATION@' />
707 <CustomAction Id="RemoveDataDirectory.SetProperty" Return="check"
708 Property="RemoveDataDirectory" Value="[DATADIR]" />
709 <CustomAction Id="RemoveDataDirectory" BinaryKey="wixca.dll"
710 DllEntry="RemoveDataDirectory"
711 Execute="deferred"
712 Impersonate="no"
713 Return="ignore" />
714 <InstallExecuteSequence>
715 <Custom Action="RemoveDataDirectory.SetProperty" After="CreateDatabaseCommand" >
716 <![CDATA[($C.datadir=2) AND (CLEANUPDATA) AND NOT UPGRADINGPRODUCTCODE]]>
717 </Custom>
718 <Custom Action="RemoveDataDirectory" Before="RemoveFiles">
719 <![CDATA[($C.datadir=2) AND (CLEANUPDATA) AND NOT UPGRADINGPRODUCTCODE]]>
720 </Custom>
721 </InstallExecuteSequence>
722
723 <InstallExecuteSequence>
724 <StopServices>SERVICENAME</StopServices>
725 <DeleteServices>SERVICENAME</DeleteServices>
726 </InstallExecuteSequence>
727 <CustomAction Id="CheckDBInUse" Return="ignore"
728 BinaryKey="wixca.dll" DllEntry="CheckDBInUse" Execute="firstSequence"/>
729 <InstallExecuteSequence>
730 <Custom Action="CheckDBInUse" Before="LaunchConditions">Installed</Custom>
731 <Custom Action="PresetDatabaseProperties" After="CheckDBInUse"></Custom>
732 </InstallExecuteSequence>
733 <InstallUISequence>
734 <Custom Action="CheckDBInUse" Before="LaunchConditions">Installed</Custom>
735 <Custom Action="PresetDatabaseProperties" After="CheckDBInUse"></Custom>
736 </InstallUISequence>
737
738 <!-- Store some properties persistently in registry, mainly for upgrades -->
739
740 <Feature Id='StoreInstallLocation' Level='1' Absent='disallow' Display='hidden'>
741 <Component Directory='INSTALLDIR' Guid='*' Id='C.storeinstalllocation'>
742 <RegistryValue Root='HKLM' Key='SOFTWARE\@CPACK_WIX_PACKAGE_NAME@'
743 Name='INSTALLDIR' Value='[INSTALLDIR]' Type='string' KeyPath='yes'/>
744 </Component>
745 </Feature>
746
747 <?foreach STOREDVAR in SERVICENAME;DATADIR;INSTALLDIR?>
748
749 <Property Id='$(var.STOREDVAR)' Secure='yes'>
750 <RegistrySearch Id='$(var.STOREDVAR)Property' Root='HKLM'
751 Key='SOFTWARE\@CPACK_WIX_PACKAGE_NAME@'
752 Name='$(var.STOREDVAR)' Type='raw' />
753 </Property>
754 <CustomAction Id='SaveCmdLineValue_$(var.STOREDVAR)' Property='CMDLINE_$(var.STOREDVAR)'
755 Value='[$(var.STOREDVAR)]' Execute='firstSequence' />
756 <CustomAction Id='SetFromCmdLineValue_$(var.STOREDVAR)' Property='$(var.STOREDVAR)'
757 Value='[CMDLINE_$(var.STOREDVAR)]' Execute='firstSequence' />
758 <InstallUISequence>
759 <Custom Action='SaveCmdLineValue_$(var.STOREDVAR)' Before='AppSearch' />
760 <Custom Action='SetFromCmdLineValue_$(var.STOREDVAR)' After='AppSearch'>CMDLINE_$(var.STOREDVAR)</Custom>
761 </InstallUISequence>
762 <InstallExecuteSequence>
763 <Custom Action='SaveCmdLineValue_$(var.STOREDVAR)' Before='AppSearch' />
764 <Custom Action='SetFromCmdLineValue_$(var.STOREDVAR)' After='AppSearch'>CMDLINE_$(var.STOREDVAR)</Custom>
765 </InstallExecuteSequence>
766
767 <?endforeach?>
768
769 <!--
770 Optionally, start upgrade wizard on exit.
771 -->
772
773
774
775 <?if $(var.HaveUpgradeWizard) != "0" ?>
776 <UI>
777 <Publish Dialog="ExitDialog"
778 Control="Finish"
779 Event="DoAction"
780 Value="LaunchApplication">WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed</Publish>
781 </UI>
782 <Property
783 Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT"
784 Value="Launch wizard to upgrade existing MariaDB or MySQL services." />
785 <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX" Value="0"/>
786 <Property Id="WixShellExecTarget" Value="[#F.bin.mysql_upgrade_wizard.exe]" />
787 <CustomAction Id="LaunchApplication"
788 BinaryKey="WixCA"
789 DllEntry="WixShellExec"
790 Impersonate="yes" />
791 <CustomAction
792 Id="CheckServiceUpgrades" Return="ignore" BinaryKey="wixca.dll"
793 DllEntry="CheckServiceUpgrades"
794 Execute="immediate" />
795 <InstallUISequence>
796 <Custom Action="CheckServiceUpgrades" After="CostFinalize">
797 $C.bin.mysql_upgrade_wizard.exe = 3 AND NOT Installed AND NOT OLDERVERSIONBEINGUPGRADED
798 </Custom>
799 </InstallUISequence>
800 <SetProperty Before="ExecuteAction" Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT"
801 Sequence="ui" Value="[NonExistentProperty]">
802 <![CDATA[($C.bin.mysql_upgrade_wizard.exe <> 3) AND NOT Installed OR OLDERVERSIONBEINGUPGRADED]]>
803 </SetProperty>
804 <SetProperty Before="ExecuteAction" Id="WIXUI_EXITDIALOGOPTIONALCHECKBOX"
805 Sequence="ui" Value="[NonExistentProperty]">
806 <![CDATA[($C.bin.mysql_upgrade_wizard.exe <> 3) AND NOT Installed OR OLDERVERSIONBEINGUPGRADED]]>
807 </SetProperty>
808
809 <?endif ?> <!-- HaveUpgradeWizard -->
810
811 <!--
812 Author the registry entries for "add or remove programs"
813 We choose to define ARPSYSTEMCOMPONENT to 1 because we want to show
814 "do you want to remove data directory" on uninstall
815 -->
816 <Property Id="ARPSYSTEMCOMPONENT" Value="1" Secure="yes" />
817 <Property Id="ARPINSTALLLOCATION" Secure="yes"/>
818 <SetProperty Id="ARPINSTALLLOCATION" Value="[INSTALLDIR]" After="InstallValidate" Sequence="execute"/>
819 <SetProperty Id="USER_DOMAIN" Value="[%USERDOMAIN]" After="LaunchConditions" Sequence="first" />
820 <Feature Id='ARPRegistryEntries'
821 Title='Add or remove program entries'
822 Description='Add or remove program entries'
823 AllowAdvertise='no'
824 Absent='disallow' Display='hidden'
825 Level='1'>
826 <Component Id="C.arp_entries" Guid="*" Directory="INSTALLDIR">
827 <RemoveFolder Id="RemoveINSTALLDIR" On="uninstall"/>
828 <RegistryValue Root='HKLM'
829 Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
830 Name='DisplayName' Value='[ProductName]' Type='string' KeyPath='yes'/>
831 <RegistryValue Root='HKLM'
832 Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
833 Name='Publisher' Value='@MANUFACTURER@' Type='string'/>
834 <RegistryValue Root='HKLM'
835 Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
836 Name='DisplayVersion' Value='[ProductVersion]' Type='string'/>
837 <RegistryValue Root='HKLM'
838 Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
839 Name='InstallLocation' Value='[INSTALLDIR]' Type='string'/>
840 <RegistryValue Root='HKLM'
841 Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
842 Name='UninstallString' Value='msiexec.exe /I [ProductCode]' Type='string'/>
843 <RegistryValue Root='HKLM'
844 Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
845 Name='MajorVersion' Value='@MAJOR_VERSION@' Type='string'/>
846 <RegistryValue Root='HKLM'
847 Key='Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_WIX_PACKAGE_NAME@'
848 Name='MinorVersion' Value='@MINOR_VERSION@' Type='string'/>
849 </Component>
850 </Feature>
851 <Condition Message=
852 'Setting the ALLUSERS property is not allowed because [ProductName] is a per-machine application. Setup will now exit.'>
853 <![CDATA[ALLUSERS = "1"]]>
854 </Condition>
855 <Condition Message='This application is only supported on Windows 10, Windows Server 2016, or higher.'>
856 <![CDATA[Installed OR (VersionNT >= 603)]]>
857 </Condition>
858 </Fragment>
859 </Wix>