CustomLicense plug-in: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
(Added Sample Usage) |
(spelling) |
||
Line 10: | Line 10: | ||
== Description == | == Description == | ||
This plugin was born out of necessity. It was | This plugin was born out of necessity. It was purely for the | ||
license page in the InstallSpiderUI (also written by me). Now | license page in the InstallSpiderUI (also written by me). Now | ||
I have released it as a plugin to the public. It loads a file | I have released it as a plugin to the public. It loads a file |
Revision as of 18:31, 29 July 2008
Author: JasonFriday13 (talk, contrib) |
Links
Plugin package:
CustomLicense.zip (8 KB)
Description
This plugin was born out of necessity. It was purely for the license page in the InstallSpiderUI (also written by me). Now I have released it as a plugin to the public. It loads a file into memory, then it sets the desired control with the same text. Supposed to be used with InstallOptions, but can be used for anything requiring a lot of text.
Sample Usage
;-------------------------------- ;Include Modern UI !include "MUI.nsh" ;-------------------------------- ;General ;Name and file Name "BigLicense-Test" OutFile "biglictest.exe" ; define name of the Licensepage !define LICENSEPAGE "license.txt" ReserveFile "${NSISDIR}\${LICENSEPAGE}" Function CustomLicensePagePre InitPluginsDir File /oname=$PLUGINSDIR\${LICENSEPAGE} "${LICENSEPAGE}" FindWindow $0 "#32770" "" $HWNDPARENT GetDlgItem $0 $0 1000 CustomLicense::LoadFile "$PLUGINSDIR\${LICENSEPAGE}" $0 FunctionEnd ;-------------------------------- ;Pages !define MUI_PAGE_CUSTOMFUNCTION_SHOW "CustomLicensePagePre" !insertmacro MUI_PAGE_LICENSE "dummy.txt" !insertmacro MUI_PAGE_INSTFILES Section ;section ... SectionEnd ;-------------------------------- ;Languages !insertmacro MUI_LANGUAGE "English"