|
|
#1 |
|
Junior Member
Join Date: Jul 2006
Posts: 8
|
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! |
|
|
|
|
|
#2 |
|
Debian user
(Forum King) Join Date: Jan 2003
Location: Arch land
Posts: 4,917
|
And why not use, in compilation time, that license file?
* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE. * Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE. |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jul 2006
Posts: 8
|
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.
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#5 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
You can use either one of these:
http://nsis.sourceforge.net/External_License_file http://nsis.sourceforge.net/ExLicensePage_plug-in http://nsis.sourceforge.net/NonObligatoricPages http://nsis.sourceforge.net/ExDlg_plug-in http://nsis.sourceforge.net/CustomLicense_plug-in NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Jul 2006
Posts: 8
|
Thanks... I found that first method and it seems to work for me. Also seems to be the "safest".
|
|
|
|
|
|
#7 |
|
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
Now I see that code may be shorter and msvcrt free
![]() code: |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Jul 2006
Posts: 8
|
So, I assume calling the 'kernel32::' routines are "safer" than calling out to the .dll. That is, calling 'kernel32' routines are guaranteed to work?
|
|
|
|
|
|
#9 |
|
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
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.
|
|
|
|
|
|
#10 |
|
Junior Member
Join Date: Jul 2006
Posts: 30
|
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 |
|
|
|
|
|
#11 |
|
Major Dude
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
|
Looks like error flag was set before function call, just add ClearErrors (Manual 4.9.4.3) as a first function line.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|