Variables In EULA and License

Got a problem you cannot solve? Try here.
H4nd0
Posts: 92
Joined: Thu Nov 09, 2006 8:16 am
Location: Sydney, AU
Contact:

Variables In EULA and License

Postby H4nd0 » Fri Aug 31, 2007 11:17 am

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
FireDaemon Technologies Limited
http://www.firedaemon.com

Alex_Ronquillo
Site Admin
Posts: 364
Joined: Mon Jul 30, 2007 11:51 am
Location: USA
Contact:

Postby Alex_Ronquillo » Fri Aug 31, 2007 12:34 pm

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
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

H4nd0
Posts: 92
Joined: Thu Nov 09, 2006 8:16 am
Location: Sydney, AU
Contact:

Postby H4nd0 » Fri Aug 31, 2007 1:47 pm

Ahh ... very good. I'll check it out Moanday.
FireDaemon Technologies Limited

http://www.firedaemon.com


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 169 guests