I am trying to modify an existing installation of NSIS script to provide the user with different license files depending on whether they are a new or existing user. I have pre-existing code that detects an existing installation in a .onInit section.
However, I encounter bumps when trying to use the NSIS license screen, for example.
!InsertMacro MUI_PAGE_LICENSE Content\Licence.rtf
I would like to be able to choose between License and License2.rtf (although in the final version they will be renamed to something representative).
I tried using selectable sections calling functions that insert! insertmacro, but this does not work, because it must be at a basic script level.
I cannot change the parameter for determining the runtime, because he needs to know that the file is at compile time in order to install it in the installer.
I know that I can collapse my own page called from a function and do it this way, but I was wondering if anyone had an NSIS installer working using MUI_PAGE_LICENSE and different licenses.
thanks
nsis
Wysawyg
source share