TomThumbKOP
8th February 2003 20:35 UTC
ModernUI Descriptions
Is it possible to have the section description point to a file so that:
LangString DESC_SecCopyBlah ${LANG_ENGLISH} "Files located in directories under C:\Blah\"
so that it would look to a file for the description. Maybe something like:
LangString DESC_SecCopyCentrics ${LANG_ENGLISH} "$TEMP\desc.txt"
And then the contents of desc.txt will be displayed for the component description.
Thanks for the help.
Joel
8th February 2003 20:45 UTC
I don't think so.
But KichiK and the other guys can tell you more !!!
kichik
8th February 2003 20:48 UTC
It is not directly possible but you could make a script that will read from this file, write another script and call makensis.exe to copmile that script.
To read/write from/to files use FileRead, FileWrite, FileOpen and FileClose. Look in the archive for examples on that (use the search feature on the top right corner).
To call makensis use Exec, ExecWait or nsExec (see readme in Contrin\nsExec).
TomThumbKOP
8th February 2003 21:15 UTC
Thanks.
kichik
8th February 2003 21:26 UTC
BTW, if you are doing this to enable an easier translation you can just make an include file for each language that includes the LangString for it's language. A little tip that might help you there: if you don't specify a language (0 as the language) it will use the last used language. So you can create a little macro named START_LANG_FILE just like the MUI does and then a macro to add the language string.
TomThumbKOP
8th February 2003 21:33 UTC
Actually, its really just a matter of me being lazy. The install I'm working on is for release software builds to the QA department. For each component I have a text file that lists the files for that component. I was going to make it so that the description for the component essentially showed this list. If I get around to it, I'll probably just write a perl script to tweak my .nsi. I do write installs for distributions in Canada and Mexico though so I appreciate the responses. :D