I have several questions on the pages subject
1) how can I have a page that has an exit_function but no Creator_function? In other words, what would I use as the blank placeholder so NSIS knows it is a second parameter.
2) would that placeholder be the same one to use for an 'internal_page_type'?
blank parameter placeholders for pages
4 posts
Having a page with no controls on it makes no sense?
All custom pages need a creator function, just create a nsDialogs page with no controls on it...
All custom pages need a creator function, just create a nsDialogs page with no controls on it...
Maybe I was maligning the interpretation of "Creator_function" in what I had seen to now.
So far, in the particular implementations I have created, the Creator_function has simply been to run a section of code. Not interact with controls on the Form that is being created. I will get there eventually (mainly because I already see that if a form has a control that has previously had data entered. then the install goes forward. then the back button is pressed the control shows as blank.)
One use of this structure would be to set another variable to its value when there is a value that has been shown the previous form that drives the other variable.
To rephrase the question
1) (concerning custom pages) I want a to open a page that has been defined with no special code to be ran before it display (in my interpretation that would mean no "creator_function"), but I want my code to be executed on exit (ie leave_function).
custom [creator_function] [leave_function] [caption] [/ENABLECANCEL]
2) concerning internal_page_type
same song different verse. I just want to have a "leave_function", but no "pre_function" or "show_function"
internal_page_type [pre_function] [show_function] [leave_function] [/ENABLECANCEL]
So far, in the particular implementations I have created, the Creator_function has simply been to run a section of code. Not interact with controls on the Form that is being created. I will get there eventually (mainly because I already see that if a form has a control that has previously had data entered. then the install goes forward. then the back button is pressed the control shows as blank.)
One use of this structure would be to set another variable to its value when there is a value that has been shown the previous form that drives the other variable.
To rephrase the question
1) (concerning custom pages) I want a to open a page that has been defined with no special code to be ran before it display (in my interpretation that would mean no "creator_function"), but I want my code to be executed on exit (ie leave_function).
custom [creator_function] [leave_function] [caption] [/ENABLECANCEL]
2) concerning internal_page_type
same song different verse. I just want to have a "leave_function", but no "pre_function" or "show_function"
internal_page_type [pre_function] [show_function] [leave_function] [/ENABLECANCEL]
1) Custom pages MUST have a creator.
2) Use empty string ("")
2) Use empty string ("")
Page Components "" "" compleave
Page Custom emptynsdcreate custleave
Page InstFiles
Function compleave
MessageBox mb_ok compleave
FunctionEnd
Function emptynsdcreate
nsDialogs::Create 1018
Pop $0
nsDialogs::Show
FunctionEnd
Function custleave
MessageBox mb_ok custleave
FunctionEnd