Archive: Referring to sections


Referring to sections
How can i refer to sections that are defined later on in the script?

Explanation: i have two sections, and if section two is activated some files should not be installed by the first section. (The second section starts MSDE2000). But if i use the preferred section-order, i cannot determine if section two is installed or not. The compiler removes the reference because sec_db is not defined yet.

I have a workaround with a third invisable section that is installed only if section two is not installed, but if things get more complex i really would like to know how to do this...

Regards,

Hugo Logmans


You can move the check to a function which is defined later in the script and call that function from wherever you want.


Thanks for the quick respond. I thought i would all into the same trap but this is not true for functions, it works ok now!

Regards,

Hugo Logmans