Archive: MUI question


MUI question
Hi,

I'm a newbie to NSIS and having trouble finding help on the following.

I have a tomcat nsi script where it has the line:

!insertmacro MUI_PAGE_LICENSE INSTALLLICENSE

I've searched the forum to find what INSTALLLICENSE is pointing to but to no avail. Could one of you please help me understand this? Where is this INSTALLLICENSE variable defined? Thanks much in advance.


INSTALLLICENSE is a file that should be located in the installer script's directory.


Thanks for the quick reply. The directory that has tomcat.nsi has a file by name "LICENSE". I see that this file is being picked up and displayed correctly in the installer screen, just not sure how specifying INSTALLLICENSE is picking up this file.

Also, not sure about the significance of the following lines in the script. There is no file by name License.rtf in the directory where tomcat.nsi is present but the installer build is not erroring out.

;License dialog
LicenseData License.rtf

Thank you!


Both INSTALLLICENSE and License.rtf must exist for the script to build properly. They might be created in some pre-build step and deleted right after the installer is built. Unless that code is somehow commented out, the installer will not build if the file doesn't exist.


Thanks for the timely help! I identified the problems and it works fine now.