summaryrefslogtreecommitdiffstats
path: root/Modules/NSIS.template.in
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-10-15 13:58:10 (GMT)
committerDavid Cole <david.cole@kitware.com>2012-10-16 11:53:59 (GMT)
commit12c092cf67b39e8519b3672afad05fdc5d8f1d5c (patch)
tree0a4115a41d4a7e26a0de14dc074d09be99cc104d /Modules/NSIS.template.in
parent47e50423bfbbb277e60b578d1a7174f1fc24b01c (diff)
downloadCMake-12c092cf67b39e8519b3672afad05fdc5d8f1d5c.zip
CMake-12c092cf67b39e8519b3672afad05fdc5d8f1d5c.tar.gz
CMake-12c092cf67b39e8519b3672afad05fdc5d8f1d5c.tar.bz2
NSIS: Fix incorrect uninstall registry key name (#13578)
Thanks to Alexander for the bug report.
Diffstat (limited to 'Modules/NSIS.template.in')
-rw-r--r--Modules/NSIS.template.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/NSIS.template.in b/Modules/NSIS.template.in
index 9e8a6d9..ffc425e 100644
--- a/Modules/NSIS.template.in
+++ b/Modules/NSIS.template.in
@@ -902,7 +902,7 @@ SectionEnd
Function .onInit
StrCmp "@CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL@" "ON" 0 inst
- ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_NAME@" "UninstallString"
+ ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@" "UninstallString"
StrCmp $0 "" inst
MessageBox MB_YESNOCANCEL|MB_ICONEXCLAMATION \