Page 1 of 1

Variables In EULA and License

Posted: Fri Aug 31, 2007 11:17 am
by H4nd0
Tried putting in #VARIABLE# or $VARIABLE$ into the EULA text for example ... doesn't seem to get expanded.

Is there a way to insert compiler variable values into those two documents?

TIA

Posted: Fri Aug 31, 2007 12:34 pm
by Alex_Ronquillo
Here is something you can do:

1.- First of all, create your license.txt file (make sure it is a plain text file) with the variables you want in the form $Variable$.

2.- Add license.txt as a support file in your project.

3.- Edit the memo control in the "licensecheck" dialog in the following way:

"Receives Information:" <none>
"Writes Values to Variable:" TestVar

4.- In the MSI script, before the License Dialog is shown, include the following two lines:

Code: Select all

Set Variable TestVar to 
Read from Text File #READALL\\$SUPPORTDIR$\\license.txt into Variable TestVar
I hope this was helpful

Posted: Fri Aug 31, 2007 1:47 pm
by H4nd0
Ahh ... very good. I'll check it out Moanday.