View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013578CMakeCPackpublic2012-10-08 15:312013-03-04 08:38
ReporterAlexander 
Assigned ToDavid Cole 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
Platformx86-64OSWindowsOS Version7
Product VersionCMake 2.8.9 
Target VersionCMake 2.8.10Fixed in VersionCMake 2.8.10 
Summary0013578: NSIS template incorrectly uses CPACK_PACKAGE_NAME instead of CPACK_PACKAGE_INSTALL_REGISTRY_KEY
DescriptionOn line 905 of NSIS.template.in there is this code:

ReadRegStr $0 HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_NAME@" "UninstallString"

@CPACK_PACKAGE_NAME@ should read @CPACK_PACKAGE_INSTALL_REGISTRY_KEY@, since that's what's used across the rest of the file, e.g. on line 77:

ReadRegDWORD $AR_RegFlags HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@\Components\${SecName}" "Installed"

Because of this bug the CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL option doesn't really work.

Thanks,
Alexander
TagsNo tags attached.
Attached Files

 Relationships
related to 0013455closedDavid Cole CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL is broken 

  Notes
(0031243)
David Cole (manager)
2012-10-16 08:01

Fix merged to 'next':

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=12c092cf67b39e8519b3672afad05fdc5d8f1d5c [^]

Not sure yet if this will go in 2.8.10 or 2.8.11. I'll mark it accordingly after that's discussed and decided.
(0032489)
Robert Maynard (manager)
2013-03-04 08:38

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-10-08 15:31 Alexander New Issue
2012-10-15 09:59 David Cole Assigned To => David Cole
2012-10-15 09:59 David Cole Status new => assigned
2012-10-16 08:01 David Cole Note Added: 0031243
2012-10-16 08:01 David Cole Status assigned => resolved
2012-10-16 08:01 David Cole Resolution open => fixed
2012-10-16 08:02 David Cole Note Added: 0031244
2012-10-16 08:50 David Cole Note Deleted: 0031244
2012-10-17 16:59 David Cole Fixed in Version => CMake 2.8.10
2012-10-17 16:59 David Cole Target Version => CMake 2.8.10
2012-10-25 12:51 David Cole Relationship added related to 0013455
2013-03-04 08:38 Robert Maynard Note Added: 0032489
2013-03-04 08:38 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team