That's *one* of the reasons SelfReg is frowned upon.  <smile/>

The other big problem with SelfReg is that the Windows Installer doesn't 
rollback SelfReg.

Another big problem with SelfReg is that they are more fragile than using the 
built in functionality in MSI.  MSXML3 [I think] used to have SelfReg and it 
accounted for a percentage point or two of installation failures for Office... 
that was lot of money wasted on SelfReg.

The only good thing about SelfReg is that it lets developers be lazy.


-----Original Message-----
From: Neil Sleightholm [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2008 03:14
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] COM registration weirdness

All regsvr32 does is call DllRegisterServer on the DLL, what happens in here is 
voodoo! It is perfectly legal to d anything you want in this call and is the 
reason why self registration is frowned upon. I know a VB6 DLL is just doing 
standard COM stuff but it is way more complicated that any COM I have ever done 
in C++, for example, it supports all sorts of things to make binary 
compatibility work. There are also references back to the VB runtime. I'm not 
saying it is not possible to make it work by just writing registry entries but 
I have never got it to work, hence setting self reg (which I assume just calls 
DllRegisterServer) works for me.

Neil

Neil Sleightholm
X2 Systems Limited
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>


________________________________

From: Richard [mailto:[EMAIL PROTECTED]
Sent: Wed 01/10/2008 04:08
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] COM registration weirdness




In article <[EMAIL PROTECTED]>,
    "Neil Sleightholm" <[EMAIL PROTECTED]>  writes:

> >> By the time it's a COM object, VB6 or C++ it doesn't make any
> >> difference.
>
> That is a nice theory [...]

Its not a theory.  An OCX from VB6 is just a DLL with a well defined entry 
point for registering the COM object.  That's *all* that
regsrv32 does when you run it!

No voodoo.
--
"The Direct3D Graphics Pipeline" -- DirectX 9 draft available for download
      <http://www.xmission.com/~legalize/book/download/index.html>

        Legalize Adulthood! <http://blogs.xmission.com/legalize/>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge 
Build the coolest Linux based applications with Moblin SDK & win great prizes 
Grand prize is a trip for two to an Open Source event anywhere in the world 
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to