Search code examples
cmakensiscpack

How do I add a start menu entry for a text file in CPACK ans NSIS


I want an entry for release_notes.txt or release_notes.html in the start-menu. When I select the release_notes entry in the menu the text file shall apear in notepad or the html fill in a web browser. But I can't figure out how to write the commands in CMakeLists.txt to do that.


Solution

  • Are you using CPACK_NSIS_MENU_LINKS?

    Or you could use CPACK_NSIS_EXTRA_INSTALL_COMMANDS...