1) Open any editor and type


       regedit /s foo.reg


2) Save it as any_name.bat.


3) Double click it to make entry in registry without user interaction or attach it to any other exe/bat file .


4) Done