Archive: NSIS windows under wine on linux


NSIS windows under wine on linux
Hello,
I'm running the NSIS windows compiler using wine 0.9.36 on fedora linux 5.
The command looks something like the following


wine /home/talonx/nsis/makensis.exe /home/talonx/myscript.nsi


Now, myscript.nsi exists in /home/talonx. Running the above command shows the nsis usage message instead of compiling, which tells me that the path to the script is not being passed to nsis at all.

If I run it with the relative path as


wine /home/talonx/nsis/makensis.exe myscript.nsi


from /home/talonx, it works fine. Anything I am doing wrong here? I cannot used a relative path for obvious reasons.

Regards
talonx

Ok figured it out just now :)
NSIS uses options of the form /option, so the path /home/talonx/... gets passed to nsis as an option. The way to get around this is to use -- just after the nsis call. As in


wine /home/talonx/nsis/makensis.exe -- /home/talonx/myscript.nsi


Hope this helps someone else.

Regards
talonx