MantisBT - CMake
View Issue Details
0010728CMakeCPackpublic2010-05-18 05:172016-06-10 14:31
A. Saratow 
Kitware Robot 
normalfeaturealways
closedmoved 
CMake-2-8 
 
0010728: Make NSIS uninstaller filename (Uninstall.exe) customizable.
We have to generate two different setup packages from the same project (a application package and a data one) but to install them into the same location on the target system.

The later installed package would overwrite the 'Uninstall.exe' of the first one, so the deinstallation would only remove the files of the second installed package.

A simple resolution to this problem would be to make the uninstaller name customizable.
See attached patch.

Uninstaller name may be customized by entering e.g.
> set( CPACK_UNINSTALL_NAME "My Custom Uninstaller Name" )

before
> include( CPack )

This will set the name of the uninstaller application ('Uninstall.exe') as well as the name of the start menu link ('Uninstall.lnk')
If no custom uninstall name was specified, the old 'Uninstall' will be used as a default value.
NSIS, patch
patch cmake-2.8.1.patch (2,664) 2010-05-18 05:17
https://public.kitware.com/Bug/file/3123/cmake-2.8.1.patch
patch 0001-Make-NSIS-uninstaller-filename-Uninstall.exe-customi.patch (3,605) 2012-12-26 03:35
https://public.kitware.com/Bug/file/4605/0001-Make-NSIS-uninstaller-filename-Uninstall.exe-customi.patch
patch 0002-Make-NSIS-uninstaller-filename-Uninstall.exe-customi.patch (3,729) 2013-11-19 09:50
https://public.kitware.com/Bug/file/4954/0002-Make-NSIS-uninstaller-filename-Uninstall.exe-customi.patch
Issue History
2010-05-18 05:17A. SaratowNew Issue
2010-05-18 05:17A. SaratowFile Added: cmake-2.8.1.patch
2010-12-14 18:37David ColeAssigned To => David Cole
2010-12-14 18:37David ColeStatusnew => assigned
2011-10-25 22:25David ColeStatusassigned => backlog
2011-10-25 22:27David ColeAssigned ToDavid Cole =>
2012-12-26 03:34Kolan ShNote Added: 0031941
2012-12-26 03:35Kolan ShFile Added: 0001-Make-NSIS-uninstaller-filename-Uninstall.exe-customi.patch
2012-12-26 03:35Kolan ShTag Attached: NSIS
2012-12-26 03:35Kolan ShTag Attached: patch
2013-10-16 06:38Kolan ShNote Added: 0034131
2013-11-19 09:50Kolan ShFile Added: 0002-Make-NSIS-uninstaller-filename-Uninstall.exe-customi.patch
2016-06-10 14:28Kitware RobotNote Added: 0041701
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0031941)
Kolan Sh   
2012-12-26 03:34   
I vote with both hands for this patch!
I changed it a bit for the new version of CMake.
(0034131)
Kolan Sh   
2013-10-16 06:38   
It is a very useful patch and it can be applied without any conflicts on the current Git-version. Dear CMake developers, please, pay attention!
(0041701)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.