Archive: Register a DLL file under the HKCU with RegDLL


Register a DLL file under the HKCU with RegDLL
hi, How to Register a DLL file in the HKCU rather than in HKLM with RegDLL?


COM DLLs must be registered in HKLM tree not HKCU. If you do not want to register your COM DLL you should write a RegFree COM DLL.

By the way RegDLL calls the registration function of YOUR DLL (mostly DllRegisterServer), therfore it is no NSIS issue.


Originally posted by th_mi
COM DLLs must be registered in HKLM tree not HKCU. If you do not want to register your COM DLL you should write a RegFree COM DLL.

By the way RegDLL calls the registration function of YOUR DLL (mostly DllRegisterServer), therfore it is no NSIS issue.
THX, i have found an utility that could registry COM server for the Current user only.

RegSvrEx - An Enchanced COM Server Registration Utility

This utility (RegSvrEx) is similar to RegSvr32 but with certain extra functionality. The extra features which this utility offers are :-

Current user only registration for COM servers (more about this later)
Registration of executable files (though this is not the primary feature)

http://www.codeproject.com/KB/winsdk/regsvrex.aspx