ExLicensePage plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Added category links.)
m (Adding new author and category links.)
Line 1: Line 1:
{|align=right
{{PageAuthor|pkp}}
|<small>Author: [[{{ns:2}}:pkp|pkp]] ([[{{ns:3}}:pkp|talk]], [[{{ns:-1}}:Contributions/pkp|contrib]])</small>
 
|}
<br style="clear:both;">
'''Note: This plug-in requires the MFC runtime and is not really compatible with the NSIS page system. For other solutions and more info, check [http://forums.winamp.com/showthread.php?threadid=133311 this forum topic].'''
'''Note: This plug-in requires the MFC runtime and is not really compatible with the NSIS page system. For other solutions and more info, check [http://forums.winamp.com/showthread.php?threadid=133311 this forum topic].'''


Line 37: Line 35:
[mailto:pkp@pkpsoft.com pkp@pkpsoft.com]
[mailto:pkp@pkpsoft.com pkp@pkpsoft.com]


[[{{ns:14}}:Plugins]]
[[Category:Plugins]]

Revision as of 12:09, 24 June 2005

Author: pkp (talk, contrib)


Note: This plug-in requires the MFC runtime and is not really compatible with the NSIS page system. For other solutions and more info, check this forum topic.

Links

File (Visual C++ Code (MFC)):
ExLicensePage.zip (92 KB)
Zip.gif ExLicensePage.zip (92 KB) (Mirror #1)

Description

This is some quick and dirty code to implement an extra license file page.

How To Use

ExLicensePage::showPage "license.txt"

The program is not really customizable at this point, if you like it and want a few extra features, let me know and I'll flesh it out more. ExLicensePage expects to find the file "license.txt" in the same directory the dll is located. (plug-ins dir usually). ExLicensePage also implements cancel strangely, due to the fact that I cannot figure out a proper way of staying on the current page if cancel is pressed along with a no, it sends a message to the parent window forcing it back to the previous page.

Usage

ReserveFile "SNLicense.txt"
Page custom ExLicense
 
Function ExLicense
  ExLicensePage::showPage "SNLicense.txt"
FunctionEnd
 
Function .onInit 
  !insertmacro MUI_INSTALLOPTIONS_EXTRACT "SNLicense.txt"
  ;Without Modern UI: File /oname=$PLUGINSDIR\SNLicense.txt SNLicense.txt
FunctionEnd

Source Included, do what you want with it.

pkp@pkpsoft.com