What is the Maximum length that a Windows Registry Key name can be?

Clay Nichols picture Clay Nichols · Nov 24, 2009 · Viewed 12.1k times · Source

I'm writing a very long registry Key name (it's a list of programs for a combined uninstall) and I think it's too big.

What's the max size the key can be (in characters) ? (The smallest maximum among Win xp, vista, 7 since it'll need to work on all of them)

Answer

Ben picture Ben · Aug 14, 2012

Key Name: 255 characters
Value name: 16,383 characters
Value: Available memory (latest format) or 1 MB (standard format)

http://msdn.microsoft.com/en-us/library/windows/desktop/ms724872%28v=vs.85%29.aspx