Old 15th April 2010, 21:43   #1
Junior Member
Join Date: Jan 2010
Posts: 39
Question Using macro to define a custom Page

First of all let me explain my idea (bad or good, we will see). I have a main script and a secondary script. The secondary script definies all the neccessary things for a custom page to be displayed (the create and leave callbacks and some aditional validations).

I want to know if it's possible (or not) to define a macro that includes
Page custom MyCustomPageCreate MyCustomPageLeave
in order for me to use that macro in the main script. This is helpful for the main script usage that doesn't needs to be updated in case when inside the second script I will like to include other pages.

I've searched about macro definitions but I didn't see something that involves pages.

My quess was:
PageEx custom
PageCallbacks MyCustomPageCreate MyCustomPageLeave

and it's usage in the main script could be like:

!include "SecondScript.nsh"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MY_CUSTOM_PAGE

Thank in advance for those who will keep me on the good track

isawen is offline   Reply With Quote
Old 15th April 2010, 22:06   #2
Junior Member
Join Date: Jan 2010
Posts: 39
It's working !

Yes, it works ...

On my side the problem was that the compiler displayed me a strange error after I have definied the macro for the custom Page. I've successfully manage to find the error and now it works.


isawen is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

custom pages, macro

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump