|
|
#1 |
|
Junior Member
Join Date: Aug 2014
Posts: 44
|
Question about SectionGetFlags
Hi,
I have the following structure in my installer: code: In a separate file called Dialogs.nsi, I have defined some functions that display custom pages. These pages are only to be displayed if a certain section is selected. In order to do this, I use something like this: code: Thus, if section SEC_WIN is selected, I would see the function that starts with the above code. My "problem" is that if I have to add a new section and I want it to appear before an existing one, I would have to modify my Dialogs.nsi every time to update the section index. In order to avoid this, I tried using the section ID instead of the index, as such: code: Problem is, when I do this, I get a compile error stating that: warning: unknown variable/constant "{SEC_VID}" detected, ignoring (Dialogs.nsi:50) Usage: SectionGetFlags section_index $(user_var: output flags) I suppose this is because the Dialogs.nsi file is included before my sections are defined and as such, the variables ${SEC_WIN}, etc. don't exist yet. Is there any way to avoid using the section index numbers and use the identifiers instead? Thanks, Mircea |
|
|
|
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|