[CMake] NSIS Start Menu Directory

James Bigler jamesbigler at gmail.com
Wed Apr 8 14:02:52 EDT 2009


According to this page I can set all sorts of variables the affect the
MUI macros, but I have to define them before they are included.
http://nsis.sourceforge.net/Docs/Modern%20UI%202/Readme.html

I think I can define things using this:
    set(CPACK_NSIS_DEFINES "  !define MUI_STARTMENUPAGE_DEFAULTFOLDER
\\\"Vendor\\\\Project\\\"")

This seemed to do what I wanted, but perhaps it would be useful to
have a convenience CPACK_NSIS variable for this.

James

On Wed, Apr 8, 2009 at 11:41 AM, James Bigler <jamesbigler at gmail.com> wrote:
> I want to add a Vendor directory in front, so that in my Start Menu I
> get: Start->Vendor->My Project
>
> James
>
> On Wed, Apr 8, 2009 at 11:39 AM, David Cole <david.cole at kitware.com> wrote:
>> Ah, sorry. My brain didn't register "start menu" properly.
>>
>> What are you trying to add to the start menu? A shortcut to an installed
>> file? Or do you want to control the name of the start menu folder that
>> contains those shortcuts?
>> For shortcuts, see CPACK_NSIS_MENU_LINKS or CPACK_PACKAGE_EXECUTABLES
>> variables... Example usages in CMake's source tree can be found in
>> CMake/CMakeCPackOptions.cmake.in
>>
>> HTH,
>> David
>>
>> On Wed, Apr 8, 2009 at 1:27 PM, James Bigler <jamesbigler at gmail.com> wrote:
>>>
>>> I'm using that file.  I noticed the bug and grabbed the CVS of the file.
>>>
>>> While this allows me to specify a subdirectory for the installation
>>> location, the start menu is now just the project name.
>>>
>>> James
>>>
>>> On Wed, Apr 8, 2009 at 11:22 AM, David Cole <david.cole at kitware.com>
>>> wrote:
>>> > See issue http://public.kitware.com/Bug/view.php?id=8682
>>> > (which I resolved yesterday...)
>>> > But you'll have to use CVS CMake for now to get the fix. (Or
>>> > copy/override
>>> > the new NSIS.template.in to an older CMake installation.)
>>> >
>>> >
>>> > HTH,
>>> > David
>>> >
>>> > On Wed, Apr 8, 2009 at 1:17 PM, James Bigler <jamesbigler at gmail.com>
>>> > wrote:
>>> >>
>>> >> I want to be able to add "Vendor\Project" to the start menu, but I
>>> >> don't want all the installer to say things like "Welcome to the
>>> >> Vendor\Project setup".  Is there a configuration variable for this?  I
>>> >> went poking around NSIS.template.in and didn't notice anything.
>>> >>
>>> >> Thanks,
>>> >> James
>>> >> _______________________________________________
>>> >> 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
>>> >
>>> >
>>
>>
>


More information about the CMake mailing list