PDA

View Full Version : Action Description at runtime


Luc
07-04-2002, 12:39 PM
It would be nice to be able to customize the actions description displayed during runtime.

Example:
One of my setup is looking for a dongle presence and a license number on it. I use a DLL for this purpose (Execute File Action). If the key is valid then the installer can continue otherwise it aborts. At runtime, when the later action is performed, the "Execute File..." message appears. It would be nice if I can customize this to something like "Verifying hardlock key license..."

Thanks.

Lorne
07-07-2002, 10:56 PM
There's actually a way you can do that now.

Each of those messages can be edited at run time, by assigning different text to the appropriate message ID, just like assigning text to a variable.

You can either "hard code" the text by changing it at design time, or you can assign different text to the appropriate message ID (which is internally just a special variable) before the action is performed. You could even change the text back to the original message after the action, if you wanted.

Luc
07-16-2002, 08:23 AM
Thanks Mr. Lorne I am happy that we have the possibility to change those messages.

The only problem is that I cannot figure out how to change them. You are telling about message ID but I cannot find what are the message IDs or how to assign the new text to these messages.

Can you provide an example on how to change the "Execute File" message... I would appreciate.

Thanks again.

gena
07-17-2002, 08:51 AM
Hi, Lorne !

You want to say, that, for example, MSG_PROG_EXECUTE_FILE is the internal variable and I can assign/reset it's value on the Actions tab? Or assign the constant value on the Languages tab?

Regards,
Gennady

Lorne
07-17-2002, 11:39 AM
Both ways, actually. You can assign different text to it on the Languages tab, to make the change more permanent (it will be changed for every project that uses that language file).

Or, you can just change it on the fly, by using an Assign Value action. The secret to understanding this second method is simply that those message IDs are actually just variables in disguise. (The same code that manages converting variable names to their values at run time manages converting those message IDs to their message text.)

If you wanted, you could assign "I'm a little teapot" to MSG_PROG_EXECUTE_FILE, and when files are being executed, it will read "I'm a little teapot" instead of the default message for that ID.

Luc
07-17-2002, 12:22 PM
Thanks at lot Lorne !

I got it working now...