i ve searched the forum for MUI_PAGE_LICENSE and Licensed explanation in order to use a different EULA file depending on a variable in a compilation command :
makensis /V2 /DOutFile="..\Dist\Setup.exe" /DResLicName="LicenseFile" setup.nsi
Then in the setup.nsi :
When compiling project i have the following error :
...
!ifndef ResLicName
!define ResLicame "AnotherLicenseFile"
!endif
...
!insertmacro MUI_PAGE_LICENSE "$(ResLicName)-cluf.rtf"
or
!insertmacro MUI_PAGE_LICENSE "${ResLicName}-cluf.rtf"
or
!insertmacro MUI_PAGE_LICENSE "$ResLicName-cluf.rtf"
LicenseData: open failed "$(ResLicName)-cluf.rtf"
Usage: LicenseData local_file_that_has_license_text | license_lang_string
Error in macro MUI_PAGE_LICENSE on macroline 21
Error in script "setup.nsi" on line 93 -- aborting creation process
I read the forum about using a different EULA file from lang string but that's not my case, i also read that variables was not possible ?
Is there a (simple) way to solve my problem ?
Thanks all.
EDIT :
i va tried
and have the error :
!insertmacro MUI_PAGE_LICENSE "$(ResLicName)"
LangString "ResLicName" is not set in language table of language English
LangString "ResLicName" is not set in language table of language French