CPack/NSIS: It is not possible to skip the license page of NSIS installer
Hello
In my CMakeLists.txt, I don't define the variable CPACK_RESOURCE_FILE_LICENSE. Then I use CPack to generate an NSIS installer. This installer has a licence page, which displays CPack.GenericLicense.txt
(I can see it in the generated CPackConfig.cmake
file).
As I don't define CPACK_RESOURCE_FILE_LICENSE, I would expect the installer to skip the license page.
Both unset(CPACK_RESOURCE_FILE_LICENSE)
and set(CPACK_RESOURCE_FILE_LICENSE)
has no effect.
I can't find any other variable that can be set to request skipping this page.
In the end, I don't want a line like this in the generated project.nsis
file :
!insertmacro MUI_PAGE_LICENSE "C:/[...]/cmake-3.17/Templates/CPack.GenericLicense.txt"
I am using CMake 3.17.5.
Best regards, Pierre