Get Firefox! "my blog doesn't just deal with my life, it deals with some important stuff too"

7th of February 2006

Windows Registry Editor

Correct me if I'm wrong, but it doesn't seem to be possible to create a new key with a default value of a specific type using RegEdit. When you create a new key it just makes it without asking you anything, the key is there waiting to be named. But once a value has been created its type cannot be modified, so the default value is always of type REG_SZ. Back on Windows NT when it was possible to use REGEDT32 you were asked what type to give the default value when generating new keys, but as far as I can tell there is absolutely no way to do it on the new regedit.

It is still possible to do though, if you don't use regedit. If you create your own .reg file you can specify a different data type:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\MTL]

@=dword:01234567

This will import and it works properly. It just doesn't seem to be possible to do the same through RegEdit. Seems a bit shit to me.

Blog #558, posted at 13:18 (GMT)