[cmake-developers] [CMake 0013578]: NSIS template incorrectly uses CPACK_PACKAGE_NAME instead of CPACK_PACKAGE_INSTALL_REGISTRY_KEY

Mantis Bug Tracker mantis at public.kitware.com
Mon Oct 8 15:31:59 EDT 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=13578 
====================================================================== 
Reported By:                Alexander
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   13578
Category:                   CPack
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-10-08 15:31 EDT
Last Modified:              2012-10-08 15:31 EDT
====================================================================== 
Summary:                    NSIS template incorrectly uses CPACK_PACKAGE_NAME
instead of CPACK_PACKAGE_INSTALL_REGISTRY_KEY
Description: 
On 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
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-10-08 15:31 Alexander      New Issue                                    
======================================================================




More information about the cmake-developers mailing list