Index: applications/editors/josm/nsis/josm.nsi
===================================================================
--- applications/editors/josm/nsis/josm.nsi	(revision 27236)
+++ applications/editors/josm/nsis/josm.nsi	(revision 27237)
@@ -382,4 +382,5 @@
 SetShellVarContext current
 !include LogicLib.nsh
+IfFileExists "$APPDATA\JOSM\preferences" settings_exists
 IfFileExists "$APPDATA\JOSM\preferences.xml" settings_exists
 FileOpen $R0 "$APPDATA\JOSM\preferences.xml" w
