Adding License information to NSIS installer
Asked Answered
S

1

0

We distribute the software created by my group via Windows installers generated via NSIS. We generate our NSIS configuration files from a python script written by a developer who no longer works with us, so we currently do not have anyone on staff who knows how to write NSIS config files. I have been tasked with modifying this script to add a section to the installer that displays our licensing information prior to performing the actual install.

What would such a section in a NSIS config file look like?

Sorrell answered 21/11, 2008 at 20:16 Comment(0)
S
8

Depends on how the installer is structured and what NSIS functionality it uses.

For example, if it uses MUI ("modern user interface") macros, then it could be as simple as adding

!insertmacro MUI_PAGE_LICENSE "License.txt"

Somewhere in the text. Most likely between some other pages in MUI_PAGE stuff. For example, one installer I'm working on at the moment has this:

!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_LICENSE "..\..\Licenses\License.txt"
!insertmacro MUI_PAGE_DIRECTORY

This results in welcome page, followed by license page, followed by "choose directory" page.

For more options, read NSIS MUI documentation.

Selvage answered 22/11, 2008 at 9:34 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.