|
1 |
| -<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" |
2 |
| - xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> |
| 1 | +<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
3 | 2 |
|
4 | 3 | <!--
|
5 |
| - Copyright (c) 2010, 2020, Oracle and/or its affiliates. |
| 4 | + Copyright (c) 2010, 2023, Oracle and/or its affiliates. |
6 | 5 |
|
7 | 6 | This program is free software; you can redistribute it and/or modify
|
8 | 7 | it under the terms of the GNU General Public License, version 2.0,
|
|
25 | 24 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
26 | 25 | -->
|
27 | 26 |
|
28 |
| - <Product |
29 |
| - Id="*" |
30 |
| - UpgradeCode="@UPGRADE_CODE@" |
31 |
| - Name="@PRODUCT_NAME@ @MAJOR_VERSION@.@MINOR_VERSION@" |
32 |
| - Version="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@" |
33 |
| - Language="1033" |
34 |
| - Manufacturer="@MANUFACTURER@"> |
| 27 | + <Package UpgradeCode="@UPGRADE_CODE@" Name="@PRODUCT_NAME@ @MAJOR_VERSION@.@MINOR_VERSION@" Version="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@" Language="1033" Manufacturer="@MANUFACTURER@" InstallerVersion="200"><SummaryInformation Keywords="Installer" Description="@PRODUCT_DESCRIPTION@" Manufacturer="@MANUFACTURER@" /> |
35 | 28 |
|
36 |
| - <Package Id='*' |
37 |
| - Keywords='Installer' |
38 |
| - Description="@PRODUCT_DESCRIPTION@" |
39 |
| - Manufacturer='@MANUFACTURER@' |
40 |
| - InstallerVersion='200' |
41 |
| - Languages='1033' |
42 |
| - Compressed='yes' |
43 |
| - SummaryCodepage='1252' |
44 |
| - Platform='x64' |
45 |
| - InstallScope="perMachine"/> |
46 |
| - |
47 |
| - <Media Id='1' Cabinet='product.cab' EmbedCab='yes' /> |
| 29 | + <Media Id="1" Cabinet="product.cab" EmbedCab="yes" /> |
48 | 30 |
|
49 | 31 | <!-- Upgrade for 8.0.12 version -->
|
50 | 32 | <?if "@PLATFORM@"="x64"?>
|
51 | 33 | <Upgrade Id="@UPGRADE_CODE_OLD@">
|
52 | 34 | <?if '@PATCH_VERSION@' != '0'?>
|
53 |
| - <UpgradeVersion |
54 |
| - Minimum="@MAJOR_VERSION@.@ [email protected]" |
55 |
| - IncludeMinimum="yes" |
56 |
| - Maximum="@MAJOR_VERSION@.@ [email protected]" |
57 |
| - IncludeMaximum="no" |
58 |
| - Property="OLDERVERSIONBEINGUPGRADED_OLD" |
59 |
| - MigrateFeatures="yes" |
60 |
| - /> |
| 35 | + <UpgradeVersion Minimum="@MAJOR_VERSION@.@ [email protected]" IncludeMinimum="yes" Maximum="@MAJOR_VERSION@.@ [email protected]" IncludeMaximum="no" Property="OLDERVERSIONBEINGUPGRADED_OLD" MigrateFeatures="yes" /> |
61 | 36 | <?endif?>
|
62 | 37 | </Upgrade>
|
63 | 38 | <?endif?>
|
64 | 39 |
|
65 | 40 | <!-- Upgrade for 8.0.13+ version -->
|
66 | 41 | <Upgrade Id="@UPGRADE_CODE@">
|
67 | 42 | <?if '@PATCH_VERSION@' != '0'?>
|
68 |
| - <UpgradeVersion |
69 |
| - Minimum="@MAJOR_VERSION@.@ [email protected]" |
70 |
| - IncludeMinimum="yes" |
71 |
| - Maximum="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@" |
72 |
| - IncludeMaximum="yes" |
73 |
| - Property="OLDERVERSIONBEINGUPGRADED" |
74 |
| - MigrateFeatures="yes" |
75 |
| - /> |
| 43 | + <UpgradeVersion Minimum="@MAJOR_VERSION@.@ [email protected]" IncludeMinimum="yes" Maximum="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@" IncludeMaximum="yes" Property="OLDERVERSIONBEINGUPGRADED" MigrateFeatures="yes" /> |
76 | 44 | <?endif?>
|
77 |
| - <UpgradeVersion |
78 |
| - Minimum="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@" |
79 |
| - IncludeMinimum="no" |
80 |
| - OnlyDetect="yes" |
81 |
| - Property="NEWERVERSIONDETECTED" /> |
| 45 | + <UpgradeVersion Minimum="@MAJOR_VERSION@.@MINOR_VERSION@.@PATCH_VERSION@" IncludeMinimum="no" OnlyDetect="yes" Property="NEWERVERSIONDETECTED" /> |
82 | 46 | </Upgrade>
|
83 |
| - <Condition Message="A later version of [ProductName] is already installed. Setup will now exit."> |
84 |
| - NOT NEWERVERSIONDETECTED OR Installed |
85 |
| - </Condition> |
| 47 | + <Launch Condition="NOT NEWERVERSIONDETECTED OR Installed" Message="A later version of [ProductName] is already installed. Setup will now exit." /> |
86 | 48 | <InstallExecuteSequence>
|
87 |
| - <RemoveExistingProducts After="InstallInitialize"/> |
| 49 | + <RemoveExistingProducts After="InstallInitialize" /> |
88 | 50 | </InstallExecuteSequence>
|
89 | 51 |
|
90 | 52 | <?if "@STATIC_MSVCRT@"="OFF" AND "@BUNDLE_RUNTIME_LIBRARIES@"="OFF" ?>
|
91 | 53 | <?if "@PLATFORM@"="x64"?>
|
92 | 54 | <Property Id="VS14REDISTX64">
|
93 |
| - <RegistrySearch Id="FindRedistVS14" |
94 |
| - Root="HKLM" |
95 |
| - Key="SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64" |
96 |
| - Name="Version" |
97 |
| - Type="raw" /> |
| 55 | + <RegistrySearch Id="FindRedistVS14" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x64" Name="Version" Type="raw" /> |
98 | 56 | </Property>
|
99 | 57 | <Property Id="VS14UPGRADE64">
|
100 |
| - <RegistrySearch Id="FindVS14Upgrade64" |
101 |
| - Root="HKLM" |
102 |
| - Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\09A86F63C932FD435BC8463B1035EC53" |
103 |
| - Type="raw" /> |
| 58 | + <RegistrySearch Id="FindVS14Upgrade64" Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\09A86F63C932FD435BC8463B1035EC53" Type="raw" /> |
104 | 59 | </Property>
|
105 |
| - <Condition Message="This application requires Visual Studio 2015 x64 Redistributable. Please install the Redistributable then run this installer again."> |
106 |
| - Installed OR VS14REDISTX64 OR VS14UPGRADE64 |
107 |
| - </Condition> |
| 60 | + <Launch Condition="Installed OR VS14REDISTX64 OR VS14UPGRADE64" Message="This application requires Visual Studio 2015 x64 Redistributable. Please install the Redistributable then run this installer again." /> |
108 | 61 | <?else?>
|
109 | 62 | <Property Id="VS14REDISTX86">
|
110 |
| - <RegistrySearch Id="FindRedistVS14" |
111 |
| - Win64="no" |
112 |
| - Root="HKLM" |
113 |
| - Key="SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" |
114 |
| - Name="Version" |
115 |
| - Type="raw" /> |
| 63 | + <RegistrySearch Id="FindRedistVS14" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\x86" Name="Version" Type="raw" Bitness="always32" /> |
116 | 64 | </Property>
|
117 | 65 | <Property Id="VS14UPGRADE32">
|
118 |
| - <RegistrySearch Id="FindVS14Upgrade32" |
119 |
| - Root="HKLM" |
120 |
| - Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\15E8B87C56C0E773581D82F286F95E50" |
121 |
| - Type="raw" /> |
| 66 | + <RegistrySearch Id="FindVS14Upgrade32" Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\15E8B87C56C0E773581D82F286F95E50" Type="raw" /> |
122 | 67 | </Property>
|
123 |
| - <Condition Message="This application requires Visual Studio 2015 x86 Redistributable. Please install the Redistributable then run this installer again."> |
124 |
| - Installed OR VS14REDISTX86 OR VS14UPGRADE32 |
125 |
| - </Condition> |
| 68 | + <Launch Condition="Installed OR VS14REDISTX86 OR VS14UPGRADE32" Message="This application requires Visual Studio 2015 x86 Redistributable. Please install the Redistributable then run this installer again." /> |
126 | 69 | <?endif?>
|
127 | 70 | <?endif?>
|
128 | 71 |
|
129 | 72 | <!-- Save/restore install location -->
|
130 | 73 | <CustomAction Id="SaveTargetDir" Property="ARPINSTALLLOCATION" Value="[INSTALLDIR]" />
|
131 | 74 | <InstallExecuteSequence>
|
132 |
| - <Custom Action="SaveTargetDir" After="InstallValidate"> |
133 |
| - NOT |
134 |
| - Installed |
135 |
| - </Custom> |
| 75 | + <Custom Action="SaveTargetDir" After="InstallValidate" Condition="NOT Installed" /> |
136 | 76 | </InstallExecuteSequence>
|
137 | 77 | <InstallUISequence>
|
138 | 78 | <!-- App search is what does FindInstallLocation, and it is dependent on FindRelatedProducts -->
|
139 |
| - <AppSearch After="FindRelatedProducts"/> |
| 79 | + <AppSearch After="FindRelatedProducts" /> |
140 | 80 | </InstallUISequence>
|
141 | 81 |
|
142 | 82 | <!-- Find previous installation -->
|
143 | 83 | <Property Id="GETINSTALLDIR">
|
144 |
| - <RegistrySearch Id="FindInstallLocation" |
145 |
| - Root="HKLM" |
146 |
| - Win64="@IS64BIT@" |
147 |
| - Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED]" |
148 |
| - Name="InstallLocation" |
149 |
| - Type="raw" /> |
| 84 | + <RegistrySearch Id="FindInstallLocation" Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED]" Name="InstallLocation" Type="raw" Bitness="@BITNESS@" /> |
150 | 85 | </Property>
|
151 |
| - <CustomAction Id="SetInstall" Property="INSTALLDIR" Value="[GETINSTALLDIR]" /> |
| 86 | + <CustomAction Id="SetInstall" Property="INSTALLDIR" Value="[GETINSTALLDIR]" /> |
152 | 87 | <InstallUISequence>
|
153 |
| - <Custom Action="SetInstall" After="AppSearch">GETINSTALLDIR</Custom> |
| 88 | + <Custom Action="SetInstall" After="AppSearch" Condition="GETINSTALLDIR" /> |
154 | 89 | </InstallUISequence>
|
155 | 90 | <Property Id="GETINSTALLDIR_OLD">
|
156 |
| - <RegistrySearch Id="FindInstallLocationOld" |
157 |
| - Root="HKLM" |
158 |
| - Win64="@IS64BIT@" |
159 |
| - Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED_OLD]" |
160 |
| - Name="InstallLocation" |
161 |
| - Type="raw" /> |
| 91 | + <RegistrySearch Id="FindInstallLocationOld" Root="HKLM" Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED_OLD]" Name="InstallLocation" Type="raw" Bitness="@BITNESS@" /> |
162 | 92 | </Property>
|
163 |
| - <CustomAction Id="SetInstallOld" Property="INSTALLDIR" Value="[GETINSTALLDIR_OLD]" /> |
| 93 | + <CustomAction Id="SetInstallOld" Property="INSTALLDIR" Value="[GETINSTALLDIR_OLD]" /> |
164 | 94 | <InstallUISequence>
|
165 |
| - <Custom Action="SetInstallOld" After="AppSearch">GETINSTALLDIR_OLD</Custom> |
| 95 | + <Custom Action="SetInstallOld" After="AppSearch" Condition="GETINSTALLDIR_OLD" /> |
166 | 96 | </InstallUISequence>
|
167 | 97 | <Property Id="INSTALLDIR2">
|
168 |
| - <RegistrySearch Id="FindInstallLocation2" |
169 |
| - Root="HKLM" |
170 |
| - Key="SOFTWARE\MySQL AB\[ProductName]" |
171 |
| - Name="Location" |
172 |
| - Type="raw" /> |
| 98 | + <RegistrySearch Id="FindInstallLocation2" Root="HKLM" Key="SOFTWARE\MySQL AB\[ProductName]" Name="Location" Type="raw" /> |
173 | 99 | </Property>
|
174 | 100 | <CustomAction Id="SetInstallDir2" Property="INSTALLDIR" Value="[INSTALLDIR2]" />
|
175 | 101 | <InstallUISequence>
|
176 |
| - <Custom Action="SetInstallDir2" After="AppSearch">INSTALLDIR2</Custom> |
| 102 | + <Custom Action="SetInstallDir2" After="AppSearch" Condition="INSTALLDIR2" /> |
177 | 103 | </InstallUISequence>
|
178 | 104 |
|
179 | 105 | <!-- UI -->
|
180 | 106 | <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"></Property>
|
181 | 107 | <UIRef Id="@WIX_UI@" />
|
182 | 108 | <UIRef Id="WixUI_ErrorProgressText" />
|
183 |
| - <WixVariable |
184 |
| - Id="WixUIBannerBmp" |
185 |
| - Value="@SOURCE_DIR@/AdminHeader.jpg" /> |
186 |
| - <WixVariable |
187 |
| - Id="WixUIDialogBmp" |
188 |
| - Value="@SOURCE_DIR@/AdminBackground.jpg" /> |
189 |
| - <Icon |
190 |
| - Id="icon.ico" |
191 |
| - SourceFile="@SOURCE_DIR@/MySQLConnector.ico"/> |
192 |
| - <Property |
193 |
| - Id="ARPPRODUCTICON" |
194 |
| - Value="icon.ico" /> |
| 109 | + <WixVariable Id="WixUIBannerBmp" Value="@SOURCE_DIR@/AdminHeader.jpg" /> |
| 110 | + <WixVariable Id="WixUIDialogBmp" Value="@SOURCE_DIR@/AdminBackground.jpg" /> |
| 111 | + <Icon Id="icon.ico" SourceFile="@SOURCE_DIR@/MySQLConnector.ico" /> |
| 112 | + <Property Id="ARPPRODUCTICON" Value="icon.ico" /> |
195 | 113 |
|
196 | 114 | <!-- License -->
|
197 |
| - <WixVariable |
198 |
| - Id="WixUILicenseRtf" |
199 |
| - Value="@LICENSE_RTF@"/> |
| 115 | + <WixVariable Id="WixUILicenseRtf" Value="@LICENSE_RTF@" /> |
200 | 116 |
|
201 | 117 | <!-- Installation root-->
|
202 |
| - <Directory Id='TARGETDIR' Name='SourceDir'> |
203 |
| - <Directory Id='@PROGRAM_FILES_FOLDER@'> |
204 |
| - <Directory Id='directory.MySQL' Name='MySQL'> |
205 |
| - <Directory Id='INSTALLDIR' Name='@PRODUCT_NAME@ @MAJOR_VERSION@.@MINOR_VERSION@'> |
206 |
| - </Directory> |
207 |
| - </Directory> |
208 |
| - </Directory> |
209 |
| - </Directory> |
| 118 | + |
210 | 119 |
|
211 | 120 | <!-- WIX_FEATURES -->
|
212 |
| - <Feature Id='XDEVAPI' |
213 |
| - Title='New X DevAPI connector' |
214 |
| - Description='New X DevAPI connector' |
215 |
| - ConfigurableDirectory='INSTALLDIR' |
216 |
| - Level='1' > |
217 |
| - <Feature Id='XDevAPIDll' |
218 |
| - Title='Dll Libraries' |
219 |
| - Description='Connector C++ dll libraries and depdnencies' |
220 |
| - ConfigurableDirectory='INSTALLDIR' |
221 |
| - Level='1'> |
222 |
| - <ComponentGroupRef Id='componentgroup.XDevAPIDll'/> |
223 |
| - <ComponentGroupRef Id='componentgroup.OpenSSLDll'/> |
| 121 | + <Feature Id="XDEVAPI" Title="New X DevAPI connector" Description="New X DevAPI connector" ConfigurableDirectory="INSTALLDIR" Level="1"> |
| 122 | + <Feature Id="XDevAPIDll" Title="Dll Libraries" Description="Connector C++ dll libraries and depdnencies" ConfigurableDirectory="INSTALLDIR" Level="1"> |
| 123 | + <ComponentGroupRef Id="componentgroup.XDevAPIDll" /> |
| 124 | + <ComponentGroupRef Id="componentgroup.OpenSSLDll" /> |
224 | 125 | </Feature>
|
225 |
| - <Feature Id='XDevAPIDev' |
226 |
| - Title='Development Components' |
227 |
| - Description='Connector C++ headers, static libraries and import libraries' |
228 |
| - ConfigurableDirectory='INSTALLDIR' |
229 |
| - Level='4'> |
230 |
| - <ComponentGroupRef Id='componentgroup.XDevAPIDev'/> |
231 |
| - <ComponentGroupRef Id='componentgroup.OpenSSLDev'/> |
| 126 | + <Feature Id="XDevAPIDev" Title="Development Components" Description="Connector C++ headers, static libraries and import libraries" ConfigurableDirectory="INSTALLDIR" Level="4"> |
| 127 | + <ComponentGroupRef Id="componentgroup.XDevAPIDev" /> |
| 128 | + <ComponentGroupRef Id="componentgroup.OpenSSLDev" /> |
232 | 129 | </Feature>
|
233 | 130 | </Feature>
|
234 | 131 |
|
235 |
| - <Feature Id='JDBC' |
236 |
| - Title='Legacy JDBC API' |
237 |
| - Description='Legacy JDBC API connector' |
238 |
| - ConfigurableDirectory='INSTALLDIR' |
239 |
| - Level='1' > |
240 |
| - <Feature Id='JDBCDll' |
241 |
| - Title='Dll Libraries' |
242 |
| - Description='Installs legacy JDBC API connector dlls' |
243 |
| - ConfigurableDirectory='INSTALLDIR' |
244 |
| - Level='1'> |
245 |
| - <ComponentGroupRef Id='componentgroup.JDBCDll'/> |
246 |
| - <ComponentGroupRef Id='componentgroup.OpenSSLDll'/> |
| 132 | + <Feature Id="JDBC" Title="Legacy JDBC API" Description="Legacy JDBC API connector" ConfigurableDirectory="INSTALLDIR" Level="1"> |
| 133 | + <Feature Id="JDBCDll" Title="Dll Libraries" Description="Installs legacy JDBC API connector dlls" ConfigurableDirectory="INSTALLDIR" Level="1"> |
| 134 | + <ComponentGroupRef Id="componentgroup.JDBCDll" /> |
| 135 | + <ComponentGroupRef Id="componentgroup.OpenSSLDll" /> |
247 | 136 | </Feature>
|
248 |
| - <Feature Id='JDBCDev' |
249 |
| - Title='Development Components' |
250 |
| - Description='Installs legacy JDBC API connector dev files' |
251 |
| - ConfigurableDirectory='INSTALLDIR' |
252 |
| - Level='4'> |
253 |
| - <ComponentGroupRef Id='componentgroup.JDBCDev'/> |
254 |
| - <ComponentGroupRef Id='componentgroup.OpenSSLDev'/> |
| 137 | + <Feature Id="JDBCDev" Title="Development Components" Description="Installs legacy JDBC API connector dev files" ConfigurableDirectory="INSTALLDIR" Level="4"> |
| 138 | + <ComponentGroupRef Id="componentgroup.JDBCDev" /> |
| 139 | + <ComponentGroupRef Id="componentgroup.OpenSSLDev" /> |
255 | 140 | </Feature>
|
256 | 141 | </Feature>
|
257 | 142 |
|
258 |
| - <Feature Id='ALWAYSINSTALL' |
259 |
| - Title='ALWAYSINSTALL' |
260 |
| - Description='ALWAYSINSTALL' |
261 |
| - ConfigurableDirectory='INSTALLDIR' |
262 |
| - Level='1' Display='hidden' > |
263 |
| - <Feature Id='Readme' |
264 |
| - Title='COMPONENT_README_DISPLAY_NAME' |
265 |
| - Description='COMPONENT_README_DESCRIPTION' |
266 |
| - ConfigurableDirectory='INSTALLDIR' |
267 |
| - Level='1'> |
268 |
| - <ComponentGroupRef Id='componentgroup.Readme'/> |
| 143 | + <Feature Id="ALWAYSINSTALL" Title="ALWAYSINSTALL" Description="ALWAYSINSTALL" ConfigurableDirectory="INSTALLDIR" Level="1" Display="hidden"> |
| 144 | + <Feature Id="Readme" Title="COMPONENT_README_DISPLAY_NAME" Description="COMPONENT_README_DESCRIPTION" ConfigurableDirectory="INSTALLDIR" Level="1"> |
| 145 | + <ComponentGroupRef Id="componentgroup.Readme" /> |
269 | 146 | </Feature>
|
270 | 147 | </Feature>
|
271 | 148 |
|
272 |
| - <!-- WIX_DIRECTORIES --> |
273 |
| - @WIX_DIRECTORIES@ |
274 |
| - |
275 |
| - <!--WIX_COMPONENTS--> |
276 |
| - @WIX_COMPONENTS@ |
277 |
| - |
278 |
| - <!--WIX_COMPONENTS_GROUPS --> |
279 |
| - @WIX_COMPONENT_GROUPS@ |
280 |
| - |
281 |
| - <!--WIX_INCLUDES --> |
282 |
| - @WIX_INCLUDES@ |
283 |
| - </Product> |
| 149 | + <!-- WIX_DIRECTORIES -->@WIX_DIRECTORIES@<!--WIX_COMPONENTS-->@WIX_COMPONENTS@<!--WIX_COMPONENTS_GROUPS -->@WIX_COMPONENT_GROUPS@<!--WIX_INCLUDES -->@WIX_INCLUDES@ |
| 150 | + <Directory Id="@PROGRAM_FILES_FOLDER@"> |
| 151 | + <Directory Id="directory.MySQL" Name="MySQL"> |
| 152 | + <Directory Id="INSTALLDIR" Name="@PRODUCT_NAME@ @MAJOR_VERSION@.@MINOR_VERSION@"> |
| 153 | + </Directory> |
| 154 | + </Directory> |
| 155 | + </Directory> |
| 156 | + </Package> |
284 | 157 |
|
285 | 158 | </Wix>
|
0 commit comments