NSIS registry 'bug' on 2K/XP
After months, I finally found out what caused my installer not to create registry keys properly on Windows 2000 and XP (possibly NT4 too). Under Windows 95/98, the following will work:
WriteRegDword HKEY_LOCAL_MACHINE "\Software\MyCompany\MyKey" "TheKey" 1234
However, under Windows 2000 and XP, this does not work!!!
But this does work properly:
WriteRegDword HKEY_LOCAL_MACHINE "Software\MyCompany\MyKey" "TheKey" 1234
I would suggest making NSIS check if the registry path starts with a \ and then warns about it!
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.