NSIS is not designed to work on Linux, but there is a way to recompile the source code (using scons) so we can obtain a "makensis" executable which works like on Windows.
http://www.xdevsoftware.com/blog/post/How-to-Install-the-Nullsoft-Installer---NSIS-on-Linux-.aspx
Moreover, the Maven NSIS Plugin calls "makensis.exe /V3" so it is not compatible with other operating systems such as Linux. It would be useful if this plugin could work on every plateform.
Pending, there is a solution which consists on creating a shell script called makensis.exe which redirects to makensis.
Fixed on branch: maven-nsis-plugin-0.2.0
Revision: 233
(http://mindtreeinsight.svn.sourceforge.net/viewvc/mindtreeinsight?view=rev&revision=233).
- The plug-in takes in a parameter to the path of the NSIS executable and the executable name
- The NsisCompileAction is OS aware now and sets options accordingly
- Tested on CentOS 5.2 building Insight
This will be available from 0.2.0 release of the maven-nsis-plugin.
See http://mindtreeinsight.wiki.sourceforge.net/RelPlan_maven-nsis-plugin_0.2.0 for release plan.