Multiple edition Licence/Readme files.

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

Multiple edition Licence/Readme files.

Postby nicocizik » Mon Apr 09, 2007 9:54 am

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:

Postby CandiceJones » Mon Apr 09, 2007 11:34 am

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

nicocizik
Posts: 13
Joined: Mon Apr 09, 2007 9:46 am
Contact:

Postby nicocizik » Tue Apr 10, 2007 5:32 pm

Thanks Candice,

That worked wonderfully.
Regards,



Nico Cizik

Digital Metaphors

http://www.digital-metaphors.com


Return to “Non-Technical”

Who is online

Users browsing this forum: No registered users and 59 guests