Index: /applications/editors/josm/nsis/josm-setup-unix.sh
===================================================================
--- /applications/editors/josm/nsis/josm-setup-unix.sh	(revision 14185)
+++ /applications/editors/josm/nsis/josm-setup-unix.sh	(revision 14186)
@@ -15,4 +15,5 @@
 ## settings ##
 LAUNCH4J="java -jar /usr/share/launch4j/launch4j.jar"
+MAKENSIS=makensis
 
 svncorerevision=`svnversion ../core`
@@ -51,5 +52,5 @@
 # delete old exe file first
 rm -f josm.exe
-$LAUNCH4J ./launch4j.xml
+$LAUNCH4J "launch4j.xml"
 
 if ! [ -s josm.exe ]; then
@@ -63,7 +64,7 @@
 # NSIS - http://nsis.sourceforge.net/Main_Page
 # apt-get install nsis
-makensis -V2 -DVERSION=$VERSION josm.nsi
+$MAKENSIS -V2 -DVERSION=$VERSION josm.nsi
 
-# delete the intermediate file, just to avoid confusion
-rm josm-intermediate.exe
+# keep the intermediate file, for debugging
+rm -f josm-intermediate.exe
 mv josm.exe josm-intermediate.exe
Index: /applications/editors/josm/nsis/josm-setup.sh
===================================================================
--- /applications/editors/josm/nsis/josm-setup.sh	(revision 14185)
+++ /applications/editors/josm/nsis/josm-setup.sh	(revision 14186)
@@ -14,5 +14,6 @@
 
 ## settings ##
-LAUNCH4J="java -jar /usr/share/launch4j/launch4j.jar"
+LAUNCH4J="/cygdrive/c/Programme/Launch4j/launch4jc.exe"
+MAKENSIS="/cygdrive/c/Programme/nsis/makensis.exe"
 
 svncorerevision=`svnversion ../core`
@@ -20,8 +21,6 @@
 svnrevision="$svncorerevision-$svnpluginsrevision"
 
-export VERSION=latest
-#export VERSION=custom-${svnrevision}                                         
-
-LAUNCH4J_XML="C:\Dokumente und Einstellungen\ulfl\Eigene Dateien\osm\svn.josm\nsis\launch4j.xml"
+#export VERSION=latest
+export VERSION=custom-${svnrevision}                                         
 
 echo "Creating Windows Installer for josm-$VERSION"
@@ -51,10 +50,8 @@
 # (an exe file makes attaching to file extensions a lot easier)
 # launch4j - http://launch4j.sourceforge.net/
+# delete old exe file first
+rm -f josm.exe
+$LAUNCH4J "launch4j.xml"
 
-# delete old exe file first
-rm josm.exe
-"/cygdrive/c/Programme/Launch4j/launch4jc.exe" "$LAUNCH4J_XML"
-# using a relative path still doesn't work with launch4j 3.0.0-pre2
-#"/cygdrive/c/Program Files/Launch4j/launch4jc.exe" ./launch4j.xml
 if ! [ -s josm.exe ]; then
     echo "NO Josm File Created"
@@ -64,8 +61,10 @@
 echo 
 echo "##################################################################"
-echo "### create the installer exe with makensis"
+echo "### create the josm-installer-${VERSION}.exe with makensis"
 # NSIS - http://nsis.sourceforge.net/Main_Page
-"/cygdrive/c/Programme/nsis/makensis.exe" /DVERSION=$VERSION josm.nsi
+# apt-get install nsis
+$MAKENSIS -V2 -DVERSION=$VERSION josm.nsi
 
-# delete the intermediate file, just to avoid confusion
-rm josm.exe
+# keep the intermediate file, for debugging
+rm -f josm-intermediate.exe
+mv josm.exe josm-intermediate.exe
