MantisBT - CMake
View Issue Details
0013455CMakeCPackpublic2012-08-03 23:242013-03-04 08:38
szx 
David Cole 
normalminoralways
closedfixed 
CMake 2.8.8 
CMake 2.8.10CMake 2.8.10 
0013455: CPACK_NSIS_ENABLE_UNINSTALL_BEFORE_INSTALL is broken
I stumbled upon this issue:

http://public.kitware.com/Bug/view.php?id=9946 [^]

and was quite happy until I found that it doesn't work for me...

It seems that you have to use CPACK_NSIS_PACKAGE_NAME in Modules/NSIS.template.in instead of CPACK_PACKAGE_NAME to get this feature working because in registry the package name looks like "PackageName x.y", not just "PackageName".

NSIS
related to 0013578closed David Cole NSIS template incorrectly uses CPACK_PACKAGE_NAME instead of CPACK_PACKAGE_INSTALL_REGISTRY_KEY 
patch fix-nsis-enable-uninstall-before-install.patch (666) 2012-08-03 23:24
https://public.kitware.com/Bug/file/4417/fix-nsis-enable-uninstall-before-install.patch
Issue History
2012-08-03 23:24szxNew Issue
2012-08-03 23:24szxFile Added: fix-nsis-enable-uninstall-before-install.patch
2012-08-03 23:39szxTag Attached: NSIS
2012-08-07 17:28David ColeAssigned To => David Cole
2012-08-07 17:28David ColeStatusnew => assigned
2012-10-25 12:50David ColeNote Added: 0031329
2012-10-25 12:50David ColeStatusassigned => resolved
2012-10-25 12:50David ColeFixed in Version => CMake 2.8.10
2012-10-25 12:50David ColeResolutionopen => fixed
2012-10-25 12:51David ColeRelationship addedrelated to 0013578
2012-10-25 12:51David ColeTarget Version => CMake 2.8.10
2013-03-04 08:38Robert MaynardNote Added: 0032490
2013-03-04 08:38Robert MaynardStatusresolved => closed

Notes
(0031329)
David Cole   
2012-10-25 12:50   
Same fix as made for the related bug 0013578
(0032490)
Robert Maynard   
2013-03-04 08:38   
Closing resolved issues that have not been updated in more than 4 months.