Skip to content

Commit cc45262

Browse files
committed
Fixed registry search logic
1 parent 59d91fd commit cc45262

File tree

3 files changed

+12
-22
lines changed

3 files changed

+12
-22
lines changed

packaging/WiX/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ SET(CPACK_WIX_INCLUDE "${CMAKE_CURRENT_BINARY_DIR}/mysql_server_extra.wxs;${CMAK
100100
IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
101101
SET(WixWin64 " Win64='yes'")
102102
ELSE()
103-
SET(WixWin64)
103+
SET(WixWin64 " Win64='no'")
104104
ENDIF()
105105

106106
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mysql_server_extra.wxs.in

packaging/WiX/create_msi.cmake.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
1+
# Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
22
#
33
# This program is free software; you can redistribute it and/or modify
44
# it under the terms of the GNU General Public License as published by
@@ -59,7 +59,7 @@ IF(CMAKE_SIZEOF_VOID_P EQUAL 8)
5959
ELSE()
6060
SET(Platform x86)
6161
SET(PlatformProgramFilesFolder ProgramFilesFolder)
62-
SET(Win64)
62+
SET(Win64 " Win64='no'")
6363
ENDIF()
6464

6565
SET(ENV{VS_UNICODE_OUTPUT})

packaging/WiX/mysql_server.wxs.in

Lines changed: 9 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -92,29 +92,19 @@
9292
<Property Id="INSTALLDIR">
9393
<RegistrySearch Id="FindInstallLocation"
9494
Root="HKLM"
95+
@Win64@
9596
Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED]"
9697
Name="InstallLocation"
9798
Type="raw" />
9899
</Property>
99-
<?if @Platform@ != "x64" ?>
100-
<Property Id="OLDERVERSION">
101-
<RegistrySearch Id="FindOlderVersion"
102-
Root="HKLM"
103-
Win64 = "no"
104-
Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED]"
105-
Name="DisplayVersion"
106-
Type="raw" />
107-
</Property>
108-
<?else ?>
109-
<Property Id="OLDERVERSION">
110-
<RegistrySearch Id="FindOlderVersion"
111-
Root="HKLM"
112-
Win64 = "yes"
113-
Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED]"
114-
Name="DisplayVersion"
115-
Type="raw" />
116-
</Property>
117-
<?endif ?>
100+
<Property Id="OLDERVERSION">
101+
<RegistrySearch Id="FindOlderVersion"
102+
Root="HKLM"
103+
@Win64@
104+
Key="Software\Microsoft\Windows\CurrentVersion\Uninstall\[OLDERVERSIONBEINGUPGRADED]"
105+
Name="DisplayVersion"
106+
Type="raw" />
107+
</Property>
118108
<Property Id="DATADIR">
119109
<RegistrySearch Id="FindDataDir"
120110
Root="HKLM"

0 commit comments

Comments
 (0)