[CMake] smarter shortcuts with NSIS
David Cole
david.cole at kitware.com
Wed Feb 29 13:46:14 EST 2012
On Wed, Feb 29, 2012 at 1:44 PM, Andrea Crotti
<andrea.crotti.0 at gmail.com> wrote:
> On 02/28/2012 05:53 PM, Eric Noulard wrote:
>>
>> 2012/2/28 Andrea Crotti<andrea.crotti.0 at gmail.com>:
>>>
>>> On 02/28/2012 03:42 PM, Eric Noulard wrote:
>>>>
>>>>
>> Yes more or less beside the fact is CPack is doing more work than that:
>> 1) CPack handles CPack-private install location for you
>> (including the installation of the component selected to be put
>> in the installer
>> taken from CPACK_COMPONENTS_ALL)
>>
>> 2) It prepares componentization of the installer.
>> (including possible COMPONENT dependencies, display name etc...
>>
>> 3) Finally if you use configure_file + add_custom_command you won't get
>> all the CPACK_xxx vars CPack has :-( Because some of them my be
>> computed
>> dynamically by CPack which then does the configure_file in this
>> context.
>>
>> I forgot to mention that "NSIS.template.in" is including an auxiliary
>> file:
>> "NSIS.InstallOptions.ini.in" which is configured as well.
>>
>> All this is doable by hand but may not be as easy as it seems in the
>> general case.
>>
>
> Thanks for the great explanation, now it's clear..
> Just one thing, how do I make sure that it's actually using my own template
> (apart from running the produced installer)?
>
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
If you must, put an intentional error in your own template, and then
verify that you get an error when you run CPack.
It's probably quicker to simply run the installer...
More information about the CMake
mailing list