[cmake-developers] [CMake 0012356]: add an optional version check before installing a component via NSIS

Mantis Bug Tracker mantis at public.kitware.com
Fri Jul 22 05:14:29 EDT 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=12356 
====================================================================== 
Reported By:                ycollet
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12356
Category:                   CPack
Reproducibility:            N/A
Severity:                   feature
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-07-22 05:14 EDT
Last Modified:              2011-07-22 05:14 EDT
====================================================================== 
Summary:                    add an optional version check before installing a
component via NSIS
Description: 

add an optional version check before installing a component via NSIS:

This can be down via a new option VERSION:

cpack_add_component(compname
                    [DISPLAY_NAME name]
                    [DESCRIPTION description]
                    [HIDDEN | REQUIRED | DISABLED ]
                    [GROUP group]
                    [DEPENDS comp1 comp2 ... ]
                    [INSTALL_TYPES type1 type2 ... ]
                    [DOWNLOADED]
                    [VERSION maj min rev] **
                    [ARCHIVE_FILE filename])

If VERSION is present, then a registry key will be added with name [DISPLAY
NAME] and with a version Key.
If VERSION is not present, the registry key will not be added.

And via adding a new cpack variable:

CPACK_NSIS_CHECK_VERSION_BEFORE_INSTALL ON / OFF

If this variable is at ON, and if the VERSION option is present, then we check
the installed registry key and the application is installed if:
- the registry key is present and maj >= maj_installed min >= min_installed rev
> rev_installed


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-07-22 05:14 ycollet        New Issue                                    
======================================================================




More information about the cmake-developers mailing list