Index: /applications/editors/josm/nsis/josm.nsi
===================================================================
--- /applications/editors/josm/nsis/josm.nsi	(revision 27250)
+++ /applications/editors/josm/nsis/josm.nsi	(revision 27251)
@@ -29,5 +29,5 @@
 XPStyle on
 
-
+Var /GLOBAL plugins
 
 ; ============================================================================
@@ -295,5 +295,4 @@
 SectionEnd
 
-
 SectionGroup $(JOSM_SEC_PLUGINS_GROUP) SecPluginsGroup
 
@@ -304,4 +303,5 @@
 SetOutPath $APPDATA\JOSM\plugins
 File "..\dist\openstreetbugs.jar"
+StrCpy $plugins "$plugins<entry value='openstreetbugs'/>"
 SectionEnd
 
@@ -312,4 +312,5 @@
 SetOutPath $APPDATA\JOSM\plugins
 File "..\dist\turnrestrictions.jar"
+StrCpy $plugins "$plugins<entry value='turnrestrictions'/>"
 SectionEnd
 
@@ -382,5 +383,5 @@
 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>"
+FileWrite $R0 "<?xml version='1.0' encoding='UTF-8'?><preferences xmlns='http://josm.openstreetmap.de/preferences-1.0' version='4660'><list key='plugins'>$plugins</list></preferences>"
 FileClose $R0
 settings_exists:
