Multiple edition Licence/Readme files.

For all your non-technical questions.
Post Reply
nicocizik
Posts: 13
Joined: Mon Apr 09, 2007 9:46 am
Contact:

Multiple edition Licence/Readme files.

Post by nicocizik »

Hi,

I am currently evaluating InstallAware and so far it has been great.

Our product currently has 4 editions, each with a different License and ReadMe file. Is it possible to show the proper license or readme file based on a compiler variable value? I would like to avoid creating a new install project for each edition.
Regards,

Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post by CandiceJones »

Yes, with a little runtime hack...add the 4 files to your setup as support files, using the form license1.txt, license2.txt, etc. And then before showing the dialog, use the Call DLL Function command to call MoveFileA in kernel32.dll, which returns a bool; the first parameter should be $SUPPORTDIR$\\license1.txt and the second parameter should be $SUPPORTDIR$\\license.txt (both of type pointer to strings).

Then, copy-paste this command for all 4 languages, and wrap each command around compiler variables, so only one executes based on the value of the compiler variable!
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
nicocizik
Posts: 13
Joined: Mon Apr 09, 2007 9:46 am
Contact:

Post by nicocizik »

Thanks Candice,

That worked wonderfully.
Regards,

Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Post Reply