Re: Register COM DLL when it is not a registered reference (late bound)?



Some Windows Installer registration settings obey the per-user/per-system
rules when the registry entries are installed from the MSI file (vsdrfCOM
setting). That makes perfect sense - why should one user's COM objects be
available for everyone? They get registered in HKCU. Regsvr32 and the code
in DllRegisterServer have no idea about per-user/per-system so they register
for everyone. So if you installed for Just me under one account, a client
running under another account won't find the registration entries. As soon
as you run regsvr32 you make it registered for everyone so now your client
finds it - that's the scenario I was thinking of.

The exact error would be interesting. Class not registered, interface not
registered mean different types of registration error.

You're in the framework.setup group here, but this is a C++ regular COM Dll
we're talking about right? Just checking....
--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

"Chubby Arse" <alexstevens@xxxxxxxxx> wrote in message
news:1115974228.419108.227880@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Phil,
>
> Thanks for the reply.
>
> When I say the DLL doesn't get registered, I mean that the appliation
> can't find the dll (I presume) when it calls it using late binding.
>
> Once I manually register it using regsvr32 mydll.dll the application is
> able to pick up the dll.
>
> I'm unsure how you mean "Be careful that you installed it for
> Everyone", do you mean the application or the DLL?
> I wasn't aware that they could regsvr a dll for a single user, I though
> it installed for every one (HKLM).
>
> Apologies if I seem a bit dim, but fair it's fair to say that I am.
>
> Alex
>


.



Relevant Pages

  • Re: regsvr32 error code 0x80004002
    ... I also have seen this error when there is a missing dll that your dll depends on. ... this invocation of regsvr32 succeeds. ... On another PC which also has VS2005 SP1 installed, an installer which was created by a VS2005 SP1 setup project did indeed insist on installing an extra copy of the redistributables. ... Sorry Norman, the context that this was happening on your development machine was lost, so I had forgotten that VS was installed. ...
    (microsoft.public.vc.mfc)
  • Re: regsvr32 error code 0x80004002
    ... I also have seen this error when there is a missing dll that your dll ... to invoke regsvr32 on the DLL. ... On another PC which also has VS2005 SP1 ... In my new setup project with merge modules, the resulting installer ...
    (microsoft.public.vc.mfc)
  • RE: VS2005 setup project: execute tasks without installing files?
    ... Windows Installer SDK must be installed. ... Add it into Custom Action, in the Custom Action Editor, open its ... C++ custom action and we use it to get the dll path, ... Microsoft Online Community Support ...
    (microsoft.public.vsnet.setup)
  • Re: msvcp71.dll and Python 2.4 C++ extensions
    ... >> this dll somewhere in the Python directory. ... I'm creating the installer via the distutils by calling "setup.py ... directory where other C++ extension packages might also be able to use ...
    (comp.lang.python)
  • Re: REPOST : problem with security ? on IIS5-Soap-ISAPI-Win2Kpr
    ... I added extensive logging of errors to the DLL and found out ... "Visual Studio Installer 1.1" package which ... any trouble in those cases. ...
    (microsoft.public.inetserver.iis.security)