![]() |
#1 |
Junior Member
Join Date: Jan 2010
Posts: 39
|
![]()
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: !macro MY_CUSTOM_PAGE PageEx custom PageCallbacks MyCustomPageCreate MyCustomPageLeave PageExEnd !macroend and it's usage in the main script could be like: !include "SecondScript.nsh" ... !insertmacro MUI_PAGE_WELCOME !insertmacro MY_CUSTOM_PAGE !insertmacro MUI_PAGE_INSTFILES ... Thank in advance for those who will keep me on the good track /isawen ![]() |
![]() |
![]() |
![]() |
#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 ![]() |
![]() |
![]() |
![]() |
|
Tags |
custom pages, macro |
Thread Tools | Search this Thread |
Display Modes | |
|
|