Compiler variable in a dialog

Got a problem you cannot solve? Try here.
Post Reply
Nicke
Posts: 5
Joined: Mon Jan 23, 2006 10:08 am

Compiler variable in a dialog

Post by Nicke »

Hello,

In the license agreement dialog I want to put a compiler variable in a label caption like, "Licensee: #LICENSEE#"

I build the project in the command line with miabuild.exe and put LICENSEE=aCompany in the end of the string but the caption is not replaced with "aCompany". While compiling I can see that miabuild.exe has recognize the parameter so that's not the case.

Should it be possible to do this? If not, is it anohter way to send a parameter to fill a label caption with information?

Thanks in advance.
/Niclas
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Hi Niclas

Compiler variables are substituted in the script and project options dialog only. If you want your dialogs to also substitute, in your script first assign a variable to the compiler variable value, and then use that variable in the dialogs.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Nicke
Posts: 5
Joined: Mon Jan 23, 2006 10:08 am

Post by Nicke »

Hi,

It worked very good :lol:

Thank you!
Post Reply