![]() |
#1 |
Junior Member
|
![]()
Hey all
![]() ![]() The reason the license is so big is because the project is a joint venture between ourselves and another company, so there is basically 2 license agreements in the one .txt file. Is there anyway I can either: - a) Use a .txt file over 32k b) Display the two agreements seperately c) Any other suggestions? Have read about Install Options, is that any use to me? Thanks everybody ![]() |
![]() |
![]() |
![]() |
#2 |
Junior Member
|
Sack the lawyers and start over...???
![]() ![]() |
![]() |
![]() |
![]() |
#3 |
Junior Member
|
Yeah thats #($*ing helpful
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Mar 2002
Location: France / Paris
Posts: 138
|
you could develop your own plugin that will display the license file over 32kb use use it instead of normal license window !
![]() |
![]() |
![]() |
![]() |
#5 |
Junior Member
|
no can do, my c isnt good enough
![]() |
![]() |
![]() |
![]() |
#6 |
Member
Join Date: Aug 2001
Posts: 83
|
From script.cpp starting with line 551
case TOK_LICENSEDATA: if (build_header.licensedata_ptr != -1) { warning("LicenseData: specified multiple times, wasting space (%s:%d)",curfilename,linecnt); } #ifdef NSIS_CONFIG_SILENT_SUPPORT if (build_header.common.silent_install) { warning("LicenseData: SilentInstall enabled, wasting space (%s:%d)",curfilename,linecnt); } #endif { char data[32768]; FILE *fp; int datalen; fp=fopen(line.gettoken_str(1),"rb"); if (!fp) { ERROR_MSG("LicenseData: open failed \"%s\"\n",line.gettoken_str(1)); PRINTHELP() } datalen=fread(data,1,32767,fp); if (!feof(fp)) { ERROR_MSG("LicenseData: license must be < 32 kilobytes.\n"); fclose(fp); return PS_ERROR; } fclose(fp); data[datalen]=0; build_header.licensedata_ptr=add_string_main(data,0); SCRIPT_MSG("LicenseData: \"%s\" \n",line.gettoken_str(1)); } return make_sure_not_in_secorfunc(line.gettoken_str(0)); Change 32768 to whatever size you want and recompile the source. I think that's all you'd need to change. |
![]() |
![]() |
![]() |
#7 |
Member
Join Date: Aug 2001
Posts: 83
|
Oh and note that in the fread line...
datalen=fread(data,1,32767,fp); You should make that datalen=fread(data,1,(YOUR_SIZE - 1),fp); |
![]() |
![]() |
![]() |
#8 |
Senior Member
|
As far as I know, you can't use that solution because you are limited to 32k in the textbox.
|
![]() |
![]() |
![]() |
#9 |
Moderator Alumni
Join Date: Apr 2000
Location: USA
Posts: 315
|
You could use installoptions to display the second and/or third pages...
-Justin |
![]() |
![]() |
![]() |
#10 |
Junior Member
|
how would i go about that? the textfield is only for input and the label isnt big enough and doesnt scroll
![]() |
![]() |
![]() |
![]() |
#11 | |
Member
Join Date: Jan 2002
Location: Germany
Posts: 79
|
Quote:
I would prefer NSIS using the RichEditCtrl - not only because there is no size limit but for things like making URLs look like those (blue and underlined, mouse becomes hand when upon the link). For the "installer size maniacs": both the EditCtrl and the RichEditCtrl are used directly from windows, so using .rtf would not increase the size of the installers. Compatibility to existing .nsi projects is also given, since the RichEditCtrl can of cause load .txt files. |
|
![]() |
![]() |
![]() |
#12 |
Junior Member
|
Well SmartyMan it is opensource so do you think you could knock something together?
|
![]() |
![]() |
![]() |
#13 |
Guest
Posts: n/a
|
Another idea, not the nice solution of putting it in the lisense textbox but it works already without modifications:
create an exe that displays the thing nicely. Then execwait this exe and check the return code: 0 if not accepted and 1 if accepted... Just an idea... -Hendri. |
![]() |
![]() |
#14 |
NSIS MUI Dev
Join Date: Nov 2001
Posts: 3,717
|
A rich text box would be a very nice feature
![]() |
![]() |
![]() |
![]() |
#15 | |
Member
Join Date: Jan 2002
Location: Germany
Posts: 79
|
Quote:
No way. I would eventually work on these sources, if there where a guarantee that my workwill be taken over in the next official release. |
|
![]() |
![]() |
![]() |
#16 |
Junior Member
|
Another option would be to NOT have the license info in the installer. Instead display the license agreement in an opening dialog of the app. User has to agree to it or exit. Since the license info is obviously important to the company (47k worth of important!) they could also display it in the About dialog or something.
Just a thought. -mmullikin ![]() |
![]() |
![]() |
![]() |
#17 |
Junior Member
Join Date: Apr 2002
Location: europe
Posts: 4
|
![]()
who reads a license agreement bigger than 32k ??????
|
![]() |
![]() |
![]() |
#18 |
Guest
Posts: n/a
|
Gombok,
reading is up to the user! For legal reasons, you have to display all of the agreement the user is about to sign with or without reading! -Hendri. |
![]() |
![]() |
#19 | |
Member
Join Date: Aug 2001
Posts: 83
|
Nope.
Quote:
|
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|