PDA

View Full Version : How to outsource functionality and texts?



Tommyknocker
08-27-2010, 02:15 AM
Hello

in several setup scripts I have the same functionality. One example:
It is checked if the software is already installed and then the user can decide what to do. For the texts to be displayed I created a resource group that contains some idetifiers.

Question:
Is it possible to source out that script code and the texts in another file and to include that file in all my setup scripts?

That would simplify maintenance. For example if a have to add a new language or to correct an identifier. In this case I have to do it only once and can be sure all of my other setup scripts use the new or corrected function together with the correct texts.

Thanks for an answer.

linder
08-27-2010, 02:34 AM
Hello,

Unfortunately, it's not possible to "outsource" text resources to other files (e.g. include scripts). The compiler needs the resource information *before* a script is processed and so it would already be too late (from the compiler point of view) if a text resource is defined in an include script.

Friedrich