Index: /applications/editors/josm/nsis/josm.nsi
===================================================================
--- /applications/editors/josm/nsis/josm.nsi	(revision 27235)
+++ /applications/editors/josm/nsis/josm.nsi	(revision 27236)
@@ -382,7 +382,9 @@
 SetShellVarContext current
 !include LogicLib.nsh
+IfFileExists "$APPDATA\JOSM\preferences.xml" settings_exists
 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
+settings_exists:
 
 SectionEnd
