![]() |
License / EULA text from external file?
Hi all...
Is there a way to have the license/EULA text be taken from the root of my distribution CD instead of baked right into the installer? I'm using the modern UI, but can modify the macros if need be. Thanks! |
And why not use, in compilation time, that license file?
|
Because my publisher won't let me! They want to be able to make changes to the license without needing to make a new installer.
|
|
|
Thanks... I found that first method and it seems to work for me. Also seems to be the "safest".
|
Now I see that code may be shorter and msvcrt free :)
code: |
So, I assume calling the 'kernel32::' routines are "safer" than calling out to the .dll. That is, calling 'kernel32' routines are guaranteed to work?
|
No. 'system' plug-in adds .dll for module to load if extension was ommited, and this is not safety question. kernel32.dll calls should work on all systems beginnig Win95. msvcrt.dll appeared in Win95 second edition (?) or with any service pack (or any IE installed), but 100% waranty of msvcrt is beginning Win98 only.
|
Takhir, for some reason your code bails out early (it jumps to the exit) which means there is an error when loading the text file. But when I remove the IfErrors line, the file loads fine.
Is there some way to see what error the kernel is throwing? Just for safety reasons if nothing else. Thanks, VBGuy |
Looks like error flag was set before function call, just add ClearErrors (Manual 4.9.4.3) as a first function line.
|
| All times are GMT. The time now is 05:00. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.