I built NSIS 2.46 on my OS X computer according to the instructions provided at http://nsis.sourceforge.net/Docs/AppendixG.html#G.3. The build worked fine and it correctly creates my installer.
My installer is fully working, but I tried to add the command:
TargetMinimalOS 5.0
This isn't essential to my task; as I understand it, all it does it let the installer run in Unicode, which isn't necessary. Just seemed like something that would be sensible to add, as I don't support older Windows versions anyway. I put it right after the command 'SetCompressor lzma', which works fine. However, makensis reports:
[...]
SetCompressor: lzma
Invalid command: TargetMinimalOS
and then aborts.
To check I had it right, I copy-pasted it directly from the documentation (can't add the hyperlink - Docs/Chapter4.html#4.8.2.9 at same site as above) but it still gives that error. The error is the same one as if I make up a stupid command name like 'FrogXyzzy'.
I will solve this problem by not using the command! However, does anyone know why it did not work? Is this a problem to do with the way I built nsis? (I prefer not to use DarwinPorts or Fink, but maybe they would have built it differently...) Or am I doing something stupid with the command name that I haven't spotted?