Page 1 of 1

Multiple edition Licence/Readme files.

Posted: Mon Apr 09, 2007 9:54 am
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.

Posted: Mon Apr 09, 2007 11:34 am
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!

Posted: Tue Apr 10, 2007 5:32 pm
by nicocizik
Thanks Candice,

That worked wonderfully.