Skip to content

Commit 4c8283f

Browse files
committed
WL#16310: MSI: Fix default install path
1 parent 19c744c commit 4c8283f

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

packaging/WiX/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,17 @@ else()
183183
endif()
184184
show(BUNDLE_RUNTIME_LIBRARIES)
185185

186-
set(PROGRAM_FILES_FOLDER StandardDirectory)
187186

188187
if(IS64BIT)
189188
set(IS64BIT "yes")
190189
set(PLATFORM x64)
191190
set(UPGRADE_CODE "${UPGRADE_CODE_64_BIT}")
191+
set(PROGRAM_FILES_FOLDER ProgramFiles64Folder)
192192
else()
193193
set(IS64BIT "no")
194194
set(PLATFORM x86)
195195
set(UPGRADE_CODE "${UPGRADE_CODE_32_BIT}")
196+
set(PROGRAM_FILES_FOLDER ProgramFilesFolder)
196197
endif()
197198
show(IS64BIT)
198199

packaging/WiX/connector-cpp.wxs.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@
22

33
<!--
44
Copyright (c) 2010, 2024, Oracle and/or its affiliates.
5-
5+
66
This program is free software; you can redistribute it and/or modify
77
it under the terms of the GNU General Public License, version 2.0,
88
as published by the Free Software Foundation.
9-
9+
1010
This program is designed to work with certain software (including
1111
but not limited to OpenSSL) that is licensed under separate terms, as
1212
designated in a particular file or component or in included license
1313
documentation. The authors of MySQL hereby grant you an additional
1414
permission to link the program and your derivative works with the
1515
separately licensed software that they have either included with
1616
the program or referenced in the documentation.
17-
17+
1818
This program is distributed in the hope that it will be useful, but
1919
WITHOUT ANY WARRANTY; without even the implied warranty of
2020
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
2121
the GNU General Public License, version 2.0, for more details.
22-
22+
2323
You should have received a copy of the GNU General Public License
2424
along with this program; if not, write to the Free Software Foundation, Inc.,
2525
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
@@ -180,12 +180,12 @@
180180
<!--WIX_INCLUDES -->
181181
@WIX_INCLUDES@
182182

183-
<Directory Id="@PROGRAM_FILES_FOLDER@">
183+
<StandardDirectory Id="@PROGRAM_FILES_FOLDER@">
184184
<Directory Id="directory.MySQL" Name="MySQL">
185185
<Directory Id="INSTALLDIR" Name="@WIX_INSTALL_DIR@">
186186
</Directory>
187187
</Directory>
188-
</Directory>
188+
</StandardDirectory>
189189

190190
</Package>
191191

0 commit comments

Comments
 (0)