Discussion:
[WiX-users] Registering a DLL (regsvr32)
Espen Ø. Pedersen
2005-04-13 10:44:29 UTC
Permalink
Hi there!

I have my first WIX MSI installer produced. So far so good.
I have two custom DLL's that need to be registered (regsvr32) on the
client machine.
Is there a conveinient way of doing this in WIX?

I aslo need a dao 3.6 merge module, has anyone been able to find this?
(microsoft doesn't seem to provide one).


-Espen
--
Espen Ø. Pedersen

Company: CORENA Norge AS
Address: Industritunet, Dyrmyrgt. 35, N-3611 Kongsberg
Phone: +47 32 71 72 29
Skype:
E-mail: ***@corena.no

http://www.corena.com
m***@agfa.com
1970-01-01 00:00:00 UTC
Permalink
You will have to use tallow to generate the wix script that contains the
registry keys for thenCOM dll.

See http://www.tramontana.co.hu/wix/lesson6.html



|---------+------------------------------------->
| | "Espen Ø. Pedersen" |
| | <***@corena.no> |
| | Sent by: |
| | wix-users-***@lists.sour|
| | ceforge.net |
| | |
| | |
| | 13/04/2005 12:44 |
| | Please respond to epe |
| | |
|---------+------------------------------------->
----------------------------------------------------------------------------------------------------------------------|
| |
| To: wix-***@lists.sourceforge.net |
| cc: (bcc: Marc Borgers/AMNTU/MOR/AGFA/BE/BAYER) |
| Subject: [WiX-users] Registering a DLL (regsvr32) |
----------------------------------------------------------------------------------------------------------------------|
Hi there!

I have my first WIX MSI installer produced. So far so good.
I have two custom DLL's that need to be registered (regsvr32) on the
client machine.
Is there a conveinient way of doing this in WIX?

I aslo need a dao 3.6 merge module, has anyone been able to find this?
(microsoft doesn't seem to provide one).


-Espen

--
Espen Ø. Pedersen

Company: CORENA Norge AS
Address: Industritunet, Dyrmyrgt. 35, N-3611 Kongsberg
Phone: +47 32 71 72 29
Skype:
E-mail: ***@corena.no

http://www.corena.com



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
Stefan Zschocke
2005-04-13 11:35:41 UTC
Permalink
Hi,
you can just add SelfRegCost='0' to the File-tag. Then it is
automatically registered by MSI.

The majority on this list is against using self-registering.
They vote for using Tallow to generate a dump of the registry keys
written to the registry when the Dll is registered, and
then explicitly adding these registry keys to the wix script.
Stefan
-----Ursprüngliche Nachricht-----
Von: wix-users-***@lists.sourceforge.net
[mailto:wix-users-***@lists.sourceforge.net] Im Auftrag von "Espen Ø.
Pedersen"
Gesendet: Mittwoch, 13. April 2005 12:44
An: wix-***@lists.sourceforge.net
Betreff: [WiX-users] Registering a DLL (regsvr32)


Hi there!

I have my first WIX MSI installer produced. So far so good.
I have two custom DLL's that need to be registered (regsvr32) on the
client machine.
Is there a conveinient way of doing this in WIX?

I aslo need a dao 3.6 merge module, has anyone been able to find this?
(microsoft doesn't seem to provide one).


-Espen
--
Espen Ø. Pedersen

Company: CORENA Norge AS
Address: Industritunet, Dyrmyrgt. 35, N-3611 Kongsberg
Phone: +47 32 71 72 29
Skype:
E-mail: ***@corena.no

http://www.corena.com



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick
David Goetschmann
2005-04-13 14:02:19 UTC
Permalink
Post by Stefan Zschocke
The majority on this list is against using self-registering.
They vote for using Tallow to generate a dump of the registry keys
written to the registry when the Dll is registered, and
then explicitly adding these registry keys to the wix script.
Stefan
I tried that with 3 ocx (in msm files built by Microsoft) but it seems
doesn't work. Once my application is installed, I have to call manually
regsvr32 otherwise my application doesn't work. I'm sure I'm doing
something wrong, but what ??? ! (Using dark on this msm give me all the
registry entries)
Eric Brunsen
2005-04-13 14:19:11 UTC
Permalink
Excuse my ignorance, I am just beginning to start with WIX.

In regards to the statement below, why?
Post by Stefan Zschocke
The majority on this list is against using self-registering.
They vote for using Tallow to generate a dump of the registry keys
written to the registry when the Dll is registered, and
then explicitly adding these registry keys to the wix script.
Thanks,

Eric

Wm. Eric Brunsen
MCSE Windows NT & 2000, MCSD, MCDBA, NT-CIP, CTT, MCT-Retired
Computing Systems Engineer
Dynicity, LLC

-----Original Message-----
From: wix-users-***@lists.sourceforge.net
[mailto:wix-users-***@lists.sourceforge.net] On Behalf Of Stefan Zschocke
Sent: Wednesday, April 13, 2005 5:36 AM
To: wix-***@lists.sourceforge.net
Subject: [WiX-users] RE: Registering a DLL (regsvr32)


Hi,
you can just add SelfRegCost='0' to the File-tag. Then it is
automatically registered by MSI.

The majority on this list is against using self-registering.
They vote for using Tallow to generate a dump of the registry keys
written to the registry when the Dll is registered, and
then explicitly adding these registry keys to the wix script.
Stefan
-----Ursprüngliche Nachricht-----
Von: wix-users-***@lists.sourceforge.net
[mailto:wix-users-***@lists.sourceforge.net] Im Auftrag von "Espen Ø.
Pedersen"
Gesendet: Mittwoch, 13. April 2005 12:44
An: wix-***@lists.sourceforge.net
Betreff: [WiX-users] Registering a DLL (regsvr32)


Hi there!

I have my first WIX MSI installer produced. So far so good.
I have two custom DLL's that need to be registered (regsvr32) on the
client machine.
Is there a conveinient way of doing this in WIX?

I aslo need a dao 3.6 merge module, has anyone been able to find this?
(microsoft doesn't seem to provide one).


-Espen
--
Espen Ø. Pedersen

Company: CORENA Norge AS
Address: Industritunet, Dyrmyrgt. 35, N-3611 Kongsberg
Phone: +47 32 71 72 29
Skype:
E-mail: ***@corena.no

http://www.corena.com



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=ick
Espen Ø. Pedersen
2005-04-13 14:38:48 UTC
Permalink
Hi again!

I started this thread, I had to resort to adding SelfRegCost='0' in my
<file ..> tag. I was unable to get anything useful out of the dark utility.

I've just done a couple of test installations with no problems. But I'd
also like some details about the statement below?!

Is this dangerous somehow?

-Espen
Post by Eric Brunsen
Excuse my ignorance, I am just beginning to start with WIX.
In regards to the statement below, why?
Post by Stefan Zschocke
The majority on this list is against using self-registering.
They vote for using Tallow to generate a dump of the registry keys
written to the registry when the Dll is registered, and
then explicitly adding these registry keys to the wix script.
Thanks,
Eric
Wm. Eric Brunsen
MCSE Windows NT & 2000, MCSD, MCDBA, NT-CIP, CTT, MCT-Retired
Computing Systems Engineer
Dynicity, LLC
-----Original Message-----
Sent: Wednesday, April 13, 2005 5:36 AM
Subject: [WiX-users] RE: Registering a DLL (regsvr32)
Hi,
you can just add SelfRegCost='0' to the File-tag. Then it is
automatically registered by MSI.
The majority on this list is against using self-registering.
They vote for using Tallow to generate a dump of the registry keys
written to the registry when the Dll is registered, and
then explicitly adding these registry keys to the wix script.
Stefan
-----Ursprüngliche Nachricht-----
Pedersen"
Gesendet: Mittwoch, 13. April 2005 12:44
Betreff: [WiX-users] Registering a DLL (regsvr32)
Hi there!
I have my first WIX MSI installer produced. So far so good.
I have two custom DLL's that need to be registered (regsvr32) on the
client machine.
Is there a conveinient way of doing this in WIX?
I aslo need a dao 3.6 merge module, has anyone been able to find this?
(microsoft doesn't seem to provide one).
-Espen
--
Espen Ø. Pedersen

Company: CORENA Norge AS
Address: Industritunet, Dyrmyrgt. 35, N-3611 Kongsberg
Phone: +47 32 71 72 29
Skype:
E-mail: ***@corena.no

http://www.corena.com
Jonathan Payne
2005-04-13 15:03:20 UTC
Permalink
Rob has written a some very good posts on this topic. See:

http://sourceforge.net/mailarchive/message.php?msg_id=11103182
http://sourceforge.net/mailarchive/message.php?msg_id=11105790
http://sourceforge.net/mailarchive/message.php?msg_id=10266994

Jonathan
Post by Espen Ø. Pedersen
Hi again!
I started this thread, I had to resort to adding SelfRegCost='0' in my
<file ..> tag. I was unable to get anything useful out of the dark utility.
I've just done a couple of test installations with no problems. But I'd
also like some details about the statement below?!
Is this dangerous somehow?
-Espen
Post by Eric Brunsen
Excuse my ignorance, I am just beginning to start with WIX.
In regards to the statement below, why?
The majority on this list is against using self-registering. They
vote for using Tallow to generate a dump of the registry keys
written to the registry when the Dll is registered, and then
explicitly adding these registry keys to the wix script.
Thanks,
Eric
Wm. Eric Brunsen
MCSE Windows NT & 2000, MCSD, MCDBA, NT-CIP, CTT, MCT-Retired
Computing Systems Engineer
Dynicity, LLC
-----Original Message-----
Sent: Wednesday, April 13, 2005 5:36 AM
Subject: [WiX-users] RE: Registering a DLL (regsvr32)
Hi,
you can just add SelfRegCost='0' to the File-tag. Then it is
automatically registered by MSI.
The majority on this list is against using self-registering. They vote
for using Tallow to generate a dump of the registry keys
written to the registry when the Dll is registered, and then
explicitly adding these registry keys to the wix script.
Stefan
-----Ursprüngliche Nachricht-----
Pedersen"
Gesendet: Mittwoch, 13. April 2005 12:44
Betreff: [WiX-users] Registering a DLL (regsvr32)
Hi there!
I have my first WIX MSI installer produced. So far so good.
I have two custom DLL's that need to be registered (regsvr32) on the
client machine.
Is there a conveinient way of doing this in WIX?
I aslo need a dao 3.6 merge module, has anyone been able to find this?
(microsoft doesn't seem to provide one).
-Espen
Leon Zandman
2005-04-13 15:17:00 UTC
Permalink
Post by Eric Brunsen
Excuse my ignorance, I am just beginning to start with WIX.
In regards to the statement below, why?
Just search the WiX mailing list archives (at
http://wix.sourceforge.net) for words like "self-registration" and
"regsvr" etc. You'll find some nice discussions :-)

But I'm in a typing-mood, so here's an explanation:

If you let the DLL register itself (using RegSvr.exe/DllRegisterServer),
then Windows Installers "knows" nothing about what happens. So when you
rollback/uninstall the application Windows Installer has to trust the
DLL to properly remove all the stuff (registry keys and whatever more).

If you let Windows Installer do all the registration you can be sure it
is also uninstalled correctly. But the problem with this approach is
that sometimes it's hard to tell what exactly a DLL is doing during its
self-registration. Normally it only registers itself in the registry,
which is something that tools like Tallow can monitor. But in theory the
DLL could do anything to your system. To properly register the DLL you
would have to create Windows Installer (WiX) code that mimics everything
the DLL's registration function does.

Greetings,

Leon

Continue reading on narkive:
Search results for '[WiX-users] Registering a DLL (regsvr32)' (Questions and Answers)
4
replies
DLL file registering error?
started 2010-10-09 12:30:43 UTC
computers & internet
Loading...