I want to register my controls at user level, kindly guide me how can I achive this with regsvr32.
If its not possible with regsvr32 please tell any alternative way to achive this.
Like this:
regsvr32 /n /i:user name.dll
user
). It is not a universal solution (especially since few DLLs take arguments to DllInstall
at all, let alone that one). It might work for the OP, but it depends on their DLL, and even then, it may require a different argument.
There is a tool named RegSvrEx out on Code Project which seems to allow you just what you want.
The syntax is:
RegSvrEx [/u] [/c] servername
With
/u - Unregister server
/c - Register or unregister (if /u is also specified) only for the current user
servername - Full path of the server .exe or .dll
See the comments on the article's page on how to change the code for using with Windows Vista and above.
regsvr32
does not control the registration process. It only callsDllRegisterServer
of the given library, and the library itself performs registration.