I have a win32 COM dll. I want to register this dll for different users in the same system.
The dll location is different for each user.
C:\users\user1\mydll.dll
C:\users\user2\mydll.dll
C:\users\user3\mydll.dll
The installation process will register dll.
The Issue:
if user1 uninstall the product, mydll.dll will be unregistered, so application will not run for user2 and user3.
Solution:
Can I register mydll.dll for each user separately.(user1, user2 etc)
I suppose that you should put your dll in shared location (ex: D&S\Application Data\My Company\Shared) and installer should mark it as “shared file” (i don’t know what installer you are using, i’m using Inno Setup, and it has such option, and if i’m right this is standard in Windows).
So, unregistration should proceed only when shared ref count is zero.
Also MS reccomendations are the same http://msdn.microsoft.com/en-us/library/ms954376.aspx