Adding License information to NSIS installer

故事扮演 提交于 2021-01-29 14:11:49

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/310048/adding-license-information-to-nsis-installer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!