[CMake] Problems with CPack/NSIS and CPACK_NSIS_MUI_FINISHPAGE_RUN

David Cole david.cole at kitware.com
Fri Nov 18 07:06:36 EST 2011


This commit shows the code that fixed the bug, and led me to the docs
for that variable:

  http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=bee514c3611f7a7b972d9ade14f94c0f25bc001e


On Fri, Nov 18, 2011 at 7:04 AM, David Cole <david.cole at kitware.com> wrote:
> If you want to run an executable in the "MyProject" directory instead
> of the "bin" directory, then set:
>
>  set(CPACK_NSIS_EXECUTABLES_DIRECTORY "MyProject")
>
> If you want to run one in the root installation directory, set:
>
>  set(CPACK_NSIS_EXECUTABLES_DIRECTORY ".")
>
> So.... I still assert that the bug is fixed already.
>
>
> HTH,
> David
>
>
> On Fri, Nov 18, 2011 at 2:38 AM, NoRulez <norulez at me.com> wrote:
>> Hi,
>>
>>
>>
>> sorry, I forgot to add the CMake/CPack Version.
>>
>> I use cmake v2.8.6
>>
>>
>>
>> Best Regards
>>
>>
>>
>> Von: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] Im Auftrag von
>> NoRulez
>> Gesendet: Donnerstag, 17. November 2011 10:46
>> An: CMake MailingList
>> Betreff: [CMake] Problems with CPack/NSIS and CPACK_NSIS_MUI_FINISHPAGE_RUN
>>
>>
>>
>> Hi,
>>
>> the  issue (http://public.kitware.com/Bug/view.php?id=11144) is already
>> closed but the problem still exists.
>>
>>
>>
>> If I use the following:
>>
>> SET(CPACK_NSIS_MUI_FINISHPAGE_RUN "${PROJECT_NAME}.exe")
>>
>>
>>
>> Then the file project.nsi contains the following string and the application
>> isn’t launched:
>>
>> !define MUI_FINISHPAGE_RUN "$INSTDIR\bin\MyProject"
>>
>>
>>
>> If I use the following string instead to temporary fix the issue:
>>
>> SET(CPACK_NSIS_MUI_FINISHPAGE_RUN "..\\\\${PROJECT_NAME}.exe")
>>
>>
>>
>> Then the file contains:
>>
>> !define MUI_FINISHPAGE_RUN "$INSTDIR\bin\..\MyProject"
>>
>>
>>
>> With this the Application is launched successfully.
>>
>> Any hints to avoid the “dirty” hack?
>>
>>
>>
>> Best Regards
>>
>> NoRulez
>>
>> --
>>
>> 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