However, under Windows 2000 and XP, this does not work!!!WriteRegDword HKEY_LOCAL_MACHINE "\Software\MyCompany\MyKey" "TheKey" 1234
But this does work properly:
I would suggest making NSIS check if the registry path starts with a \ and then warns about it!WriteRegDword HKEY_LOCAL_MACHINE "Software\MyCompany\MyKey" "TheKey" 1234
I had this bug in my installer from the beginning, but since it worked fine on W95/98/ME, I assumed there was nothing wrong with the line. But now I found the problem. 🙂
Maybe this will help someone else.