[CMake] CPack and NSIS failure

Eric Noulard eric.noulard at gmail.com
Thu Jun 28 05:20:59 EDT 2012


2012/6/27 David Demelier <demelier.david at gmail.com>:
>
> Thanks for your help, it worked!
>
> Now, the last problem, I noticed that CPACK_PACKAGE_EXECUTABLES you
> can't set an icon, thus I used my own CreateShortCut and Delete with
> respectively CPACK_NSIS_CREATE_ICONS_EXTRA and
> CPACK_NSIS_DELETE_ICONS_EXTRA. The first one works, but not the
> second.
>
>        set(CPACK_NSIS_CREATE_ICONS_EXTRA "CreateShortCut                       \\\\
>            '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\${PROJECT_NAME}.lnk'           \\\\
>            '$INSTDIR\\\\sd-tris.exe'                                           \\\\
>            ''                                                                  \\\\
>            '${ICONPATH}'"
>        )
>        set(CPACK_NSIS_DELETE_ICONS_EXTRA "Delete                               \\\\
>            '$SMPROGRAMS\\\\$STARTMENU_FOLDER\\\\${PROJECT_NAME}.lnk'"
>        )
>
> When uninstalling, the window menu entry is still there and not
> removed at all. But the project.nsi has the line
>
> Delete                          \
>            '$SMPROGRAMS\$STARTMENU_FOLDER\sd-tris.lnk'
>
> But this command is not executed by the Uninstall.exe.

Looks like an NSIS script error.
Would you be able to create a working project.nsi (starting wiht the
one generated by CPack)
and tell us what could make the generated one work?



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


More information about the CMake mailing list