Archive: LicenseLangString problem


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.


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

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?


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.

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


Thank you very much, you have solve my problem: all is working now.

Regards,
pacha35