PDA

View Full Version : Variable Text in the Style Footer



NewsArchive
07-14-2005, 01:15 AM
G'day

How do I insert a variable in the Style Footer text the same as in the
Welcome dialog. If I use the standard %my_variable% it does not substitute
the text. If I use [PRODUCTVER] it substitutes the variable reference and
not the variable. The attached screen shot of the footer text was entered as
"Version:[PRODUCTVER] %WASP_BUILD_DATE%" and these variables were filled
from my wasp.ini file. The Welcome Dialog substitutes correctly.

This was possible in SB4.

I'm using SB5 Pro

Thanks

Mike Loney

NewsArchive
07-14-2005, 01:15 AM
Mike,

You cannot use runtime variables (%TEST%) in the Style Footer Text because
the blue background is displayed before the script engine is started. But
you can only use compiler variables [TEST] here.

What you can do is to define a compiler variable [TEST] and then use the
very same value in your script.

Set Variable %TEST% to [TEST]

Does this help?

Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
07-14-2005, 04:39 AM
Hi Friedrich

I need to read the wasp.ini file to get the last version and build no/date.
Then I want those values to be displayed prominently on all the Setups I
create for that build (e.g. New Setup, Update Setup and Demo Setup). The
idea is to make sure that they are all synchronised to the same build and
the user will see it in large characters. The data is being displayed in the
Welcome window Ok, but I'd like to have it on the Header/footer as well. The
ini file gets updated each time I do a new compile. I really want to take
the manual update out of the setup creation process because I forget to
change the version no. in Setupbuilder sometimes!

Unfortunately it seem that the compiler variable is a constant and can't be
updated from the ini file. Is that correct?

If it can't be done then too bad...but it would be nice...

Regards

Mike

NewsArchive
07-14-2005, 04:39 AM
Mike,

The "blue background" is the only place where this is not possible. It's
started BEFORE the script engine is available. The script engine controls
the wizard dialogs and so the data is being displayed in the Welcome window
Ok.

That means, you can automatically update (using #const compiler directive)
your version resource in all places EXCEPT the blue background. BTW, such a
blue background is not "state-of-the-art" any longer - so perhaps it's a
good idea to display the "wizard" only.

Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
07-15-2005, 06:08 AM
Thank for your help Friedrich. I'ts not a huge problem so I will work around
it.
And thanks for a realy great utility!

Regards

Mike Loney