in reply to Keys are not adding to registry

Works for me, I see the key/value as specified in HKEY_LOCAL_MACHINE\SOFTWARE\dkanagar . Perhaps you're looking in the wrong place.

Replies are listed 'Best First'.
Re^2: Keys are not adding to registry
by Divakar (Sexton) on Apr 04, 2013 at 09:35 UTC
    are you able to see in the registry editor. i dont find in my registry. do we need any specific permissions or privileges to do this.

      Yes, I can see it in regedit.exe, I also see it via the command line:

      D:\>perl tie.pl D:\>reg query HKLM\SOFTWARE\dkanagar /s HKEY_LOCAL_MACHINE\SOFTWARE\dkanagar Version REG_SZ 1.00

      If you have regedit open before you run the script it won't dynamically update when changes are made. 'View'->'Refresh' or the F5 key will refresh it for you.

        My bad. i did everything you said. but no progress. i will try once again after rebooting the machine...
        yes. executed the same script once again and checked. dkanagar is not there.
        C:\Users\Administrator>reg query HKEY_LOCAL_MACHINE\SOFTWARE HKEY_LOCAL_MACHINE\SOFTWARE\ATI Technologies HKEY_LOCAL_MACHINE\SOFTWARE\CBSTEST HKEY_LOCAL_MACHINE\SOFTWARE\Classes HKEY_LOCAL_MACHINE\SOFTWARE\Clients HKEY_LOCAL_MACHINE\SOFTWARE\FileZilla 3 HKEY_LOCAL_MACHINE\SOFTWARE\InfoWatch HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla HKEY_LOCAL_MACHINE\SOFTWARE\MozillaPlugins HKEY_LOCAL_MACHINE\SOFTWARE\ODBC HKEY_LOCAL_MACHINE\SOFTWARE\Policies HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node
        even after rebooting it didnt work... :-(