pacha35
16th November 2004 00:46 UTC
LicenseLangString problem
I use these sentences to choose my license file:
---
!insertmacro MUI_PAGE_LICENSE "$(myLicenseData)"
---
LicenseLangString myLicenseData ${LANG_FRENCH} "$EXEDIR\License_fr.txt"
LicenseLangString myLicenseData ${LANG_ENGLISH} "$EXEDIR\License_en.txt"
---
and this doesnot work. If I give the complete file string as : d:\my folder\Licence-fr.tx, it works.
But I don't know the CD reader letter. Is there a solution?
($EXEDIR works with "readme.txt" language choice)
Thanks in your answer.
deguix
16th November 2004 01:21 UTC
You have to know what's inside the $EXEDIR. You can debug it using a MessageBox MB_OK "$EXEDIR" on the .onInit callback function. Like this below:
Function .onInit
MessageBox MB_OK "$EXEDIR"
FunctionEnd
pacha35
16th November 2004 01:47 UTC
I can't know the CD reader letter for all the computers this installer program will run.
this installer program is intend to be use on an autorun CD and the license files are on this CD.
Normally, $EXEDIR is the folder where the install.exe program is. I have not to define it. Why this doesnot work only with the LicenseLangString sentence? Is it a bug?
I am using the last NSIS release (2.0.1) with MUI
May be I have to use the reservefile instruction?
Comm@nder21
16th November 2004 16:20 UTC
this' my define:
LicenseLangString llsLicenseFile ${LANG} "${Source_Files}\gamefiles\license.txt"
as you can see, you must specify the compile-time dir of the license files, not the runtime.
they will be packed into the installer too.
Afrow UK
16th November 2004 17:46 UTC
You cannot set the License file on run-time as it is stored inside your installer on compile-time.
You need to specify the path to it on your hard-drive for it to be included into your installer (like Comm@nder21 says :)).
-Stu
pacha35
16th November 2004 18:56 UTC
Thank you very much, you have solve my problem: all is working now.
Regards,
pacha35