Skip to content
⌘ NSIS Forum Archive

Printing the EULA

4 posts

jrenbaum#

Printing the EULA

We would like to add an option to the License Agreement screen that allows the end-user to easily print the agreement. Currently, there is no option to print from within the installer. One can mark the text and use Control C to copy it and then paste it into a document and then print, but this is not obvious.

I suppose this print option could be added to any screen, but the one we are interested in is the License Agreement screen. Is anyone aware of a way to do this or a plug-in that supports this ability?

Thanks,

Jay
jpderuiter#
Add a Print button using Resource hacker
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.


or create your own license page (custom page):
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
jrenbaum#
I've created a custom license page that allows me to print the EULA and disable the next button until the I Agree checkbox has been selected. However, when I try to use this approach on a project that uses a eula.rtf file for the license agreement, the license displayed on the screen is displayed in raw text format and is unreadable as a result. Does anyone know how to get around this other than saving the file in both .rtf and .txt formats in the version control system?

Another approach - I understand that MUI2 allows for displaying rtf text in the license page and have tried this, but I haven't been able to add a print button to this screen. I thought that the page custom functions PRE, SHOW and LEAVE could be used to help me add a button, but they don't seem to act on the actual page, just before or after. Is this correct? Can page custom functions PRE, SHOW and LEAVE actually affect a page directly?

The other option was to use Resource Hacker to add a button, but I did not understand from the link provided how this would be done. Any additional explanation would be appreciated.
Afrow UK#
You need to add the button using Resource Hacker (to UIs\modern.exe) and then use the ButtonEvent plug-in to get it to call a function on click. You'll need to then extract a copy of your RTF and then print it using ExecShell.

Stu