Index: applications/editors/josm/nsis/josm.nsi
===================================================================
--- applications/editors/josm/nsis/josm.nsi	(revision 24717)
+++ applications/editors/josm/nsis/josm.nsi	(revision 27235)
@@ -6,7 +6,4 @@
 ; If you get an error here, please update to at least NSIS 2.07!
 SetCompressor /SOLID lzma
-
-; work with JAVA ini strings
-!include "INIStrNS.nsh"
 
 !define DEST "josm"
@@ -298,7 +295,4 @@
 File "bookmarks"
 dont_overwrite_bookmarks:
-
-; write reasonable defaults for some preferences
-${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "laf" "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"
 
 SectionEnd
@@ -388,6 +382,8 @@
 SetShellVarContext current
 !include LogicLib.nsh
-${WriteINIStrNS} $R0 "$APPDATA\JOSM\preferences" "plugins" "openstreetbugs
-turnrestrictions"
+FileOpen $R0 "$APPDATA\JOSM\preferences.xml" w
+FileWrite $R0 "<?xml version='1.0' encoding='UTF-8'?><preferences xmlns='http://josm.openstreetmap.de/preferences-1.0' version='4660'><list key='plugins'><entry value='openstreetbugs'/><entry value='turnrestrictions'/></list></preferences>"
+FileClose $R0
+
 SectionEnd
 
