diff --git a/docs/configure-wine.md b/docs/configure-wine.md
index a787b2e394c1508945cd3b42172a05afb2cfe5bb..e530ed720ccc048c41d303ff64a2f6ba1163b475 100644
--- a/docs/configure-wine.md
+++ b/docs/configure-wine.md
@@ -30,8 +30,7 @@ the HAWC2 executables in here:
 
 ```
 WINEDIRNAME=".wine32"
-WINEARCH=win32 WINEPREFIX=~/$WINEDIRNAME wine regedit /E tmp.reg "HKEY_CURRENT_USER\Environment"
-echo '"PATH"="c:\\bin"' >> ./tmp.reg
+printf 'REGEDIT4\n[HKEY_CURRENT_USER\Environment]\n"PATH"="c:\\bin"' >> ./tmp.reg
 WINEARCH=win32 WINEPREFIX=~/$WINEDIRNAME wine regedit ./tmp.reg
 rm ./tmp.reg
 ```