ZZR Puig
3rd May 2011 12:14 UTC
Problem with UltraModernUI
I have just recently begun to develop installers and I'm trying to use UMUI on an installer I have previously completed, and I'm getting some odd compilation errors.
I' have tried to test the UMUI examples to see what's wrong, but the examples also give the very same errors.
!insertmacro: MUI_LANGUAGE
!include: could not find: "D:\Program Files\NSIS\Contrib\Modern UI\Language files\English.nsh"
Error in macro MUI_LANGUAGE on macroline 9
Error in script "E:\My Documents\Basic UMUI Example.nsi" on line 42 -- aborting creation process
In the UMUI.nsh, within the MUI_LANGUAGE LANGUAGE macro, the line origin of the problem is this one:
!include "${NSISDIR}\Contrib\Modern UI\Language files\${LANGUAGE}.nsh"
The folder "${NSISDIR}\Contrib\Modern UI\Language files\" doesn't even exist. And trying to copy the folders "${NSISDIR}\Contrib\Language files" OR "${NSISDIR}\Contrib\UltraModernUI\Language files" in its place just return errors elsewhere, as could be expected.
I can't understand that the UMUI script cannot find the files of its own installation, and I haven't seen this kind of problem posted elsewhere, as it could be expected if it's a bug of the UMUI itself, which doesn't make sense either.
Please, can you help me understanding what's happening and how can I solve this issue?
MSG
3rd May 2011 13:10 UTC
Just a random thought: The placement of the language macro is important for MUI scripts. Perhaps you need to insert the macro at a different place in your script?
ZZR Puig
3rd May 2011 13:18 UTC
Originally posted by MSG
Just a random thought: The placement of the language macro is important for MUI scripts. Perhaps you need to insert the macro at a different place in your script?
I'm just trying to compile UMUI examples, it should be expected that their script is right, but the error that appear is the same as in my own script. So the problem must have its origin elsewhere.
MSG
3rd May 2011 15:28 UTC
Ah, very true. No idea then... You could try pm'ing SuperPat and point him at this thread. (Please make sure to post the solution in here, if you solve it through pm.)
ZZR Puig
3rd May 2011 19:07 UTC
Although I still have to do some work to configure UMUI properly it seems to work now.
I'm far from knowing which was exactly the problem, but my guess is that the "UMUI version 1.00b1" I had installed was supposed to be based and compatible with MUI v1.67, but the MUI installed in my system was v1.8.
The solution to the problem, which is what's really important and useful, has been to install a new UMUI (version 1.00b2) I got from this website: http://nsis.sourceforge.net/UltraModernUI
Hope it helps someone not to lose as much time as I did to find a solution to this problem.