[CMake] CPack : NSIS multiple licensing choice/option

Eric Noulard eric.noulard at gmail.com
Sun Apr 22 08:23:55 EDT 2012


2012/4/20 Nicholas Yue <yue.nicholas at gmail.com>:
> Hi,
>
>  I have a situation where I need to package up a build for
> installation where there are two available license choices
>  (1) Non-commercial/evaluation
>  (2) Commercial
>
>  For the NSIS packaging, is there a way to show different licensing
> text depending on some radio button choice?

I don't think it's possible with CMake-provided templates

NSIS.InstallOptions.ini.in
NSIS.template.in

you probably have to your own version of these files (may be
NSIS.template.in is enough)
and modify CPACK_MODULE_PATH (or CMAKE_MODULE_pATH)
in order to put them in the CMake script path.

>  Also, is there a way to track the choice that was made ?

If you mean is it possible to track the choice made at install time in order to
influence other install step, again I think you need to enhance the
NSIS template
yourself.

You may read this thread as well:
http://www.cmake.org/pipermail/cmake/2012-February/049360.html


-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


More information about the CMake mailing list