Skip to content
⌘ NSIS Forum Archive

function on every page

5 posts

arfinator853#

function on every page

I want a function to occur on every page. So far I have this, which is working for the liscence page and custom pages, but not any others:
  !define MUI_PAGE_LICENSE_FUNCTION helpbutton
  !define MUI_PAGE_COMPONENTS_FUNCTION helpbutton
  !define MUI_PAGE_DIRECTORY_FUNCTION helpbutton
  !define MUI_PAGE_INSTFILES_FUNCTION helpbutton
  !define MUI_PAGE_FINISH_FUNCTION helpbutton 
Does anybody have any ideas?
kichik#
Those are undocumented defines. Don't use them. Use the defines you need, according to the MUI readme.
arfinator853#
I can't find in the readme how to have a function called on those bult-in pages.

Components
Directory
InstFiles

I have it working on all of the other pages. But one other problem like this. On the first custom page, I have it declared like I have all of th other custom pages, but it won't show up. So you all know the function is the HelpButton function by DrO.

Thanks!
Afrow UK#
Use !define MUI_PAGE_CUSTOMFUNCTION_[X] "myFunc" where [X] is PRE, SHOW, or LEAVE. Place the define before you insert the page macro.

-Stu