Skip to content
⌘ NSIS Forum Archive

Register a DLL file under the HKCU with RegDLL

3 posts

yyt_sjq#

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?
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.
yyt_sjq#
Originally Posted by th_mi View Post
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)