How do I change the default program (aka file assocation) when the program has moved?

I seemed to have found it:

HKEY_CLASSES_ROOT\Applications\Notepad2.exe\shell\open\command

Edit this key to the new path.