in reply to How to modify Windows registry?

Take a look at Win32::TieRegistry. It has everything you need.