Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Capture Registry Keys from Regsvr32.exe

1,325 views
Skip to first unread message

Julia Beresford

unread,
Jun 29, 2005, 5:07:02 AM6/29/05
to
Hi

Does anyone know if it is possible to (and if so how to) capture the
registry keys that would go in the registry if registering a dll with
RegSvr32.exe?

I am attempting to programatically convert INF files to MSIs and this is one
of the things I would like to try to automate.

Many thanks
Julia.

Citybloke

unread,
Jun 29, 2005, 5:43:06 AM6/29/05
to
Julia

I know in Installshield Admin Studio, there is a utility called
"RegspyUI.exe" that will export all COM information for a dll to a .REG file,
which you could then import to a component in your MSI.

Christopher Painter

unread,
Jun 29, 2005, 7:31:12 AM6/29/05
to
If you have enough for and can afford AdminStudio I highly reccomend the
repackager. If you are already using SMS 2003 you can get it for free. If
you just need to capture registry settings and don't mind authoring the MSI
from scratch then I also reccomend Advanced Registry Tracer.

If you just want to know how COM extraction works read this page:

http://installneo.blogspot.com/2004/12/spying-on-registry-entries.html


Phil Wilson

unread,
Jun 29, 2005, 1:31:37 PM6/29/05
to
I did something a while back - it's here:

http://www.installsite.org/pages/en/msi/tips.htm

scroll down to Capture Self Registration Information. It uses the Windows
2000 API RegOverridePredefKey to cause the registry entries to redirect to
another location.
--
Phil Wilson [MVP Windows Installer]
----
"Julia Beresford" <JuliaBe...@discussions.microsoft.com> wrote in
message news:77817867-4B7B-4487...@microsoft.com...

Richard [Microsoft Windows Installer MVP]

unread,
Jun 29, 2005, 2:55:45 PM6/29/05
to
[Please do not mail me a copy of your followup]

=?Utf-8?B?SnVsaWEgQmVyZXNmb3Jk?= <JuliaBe...@discussions.microsoft.com> spake the secret code
<77817867-4B7B-4487...@microsoft.com> thusly:

>Does anyone know if it is possible to (and if so how to) capture the
>registry keys that would go in the registry if registering a dll with
>RegSvr32.exe?

I wrote some code that would essentially do the following:

- build a list of registry keys to monitor
- run DllUnregisterServer on the DLL
- capture the state of monitored registry keys
- run DllRegisterServer on the DLL
- build a difference list of monitored keys

This is incorporated into izfree, but I don't know how useful that
would be to you. You can look at the vbscript and see how the
izMonitor.exe COM object works and maybe repurpose it to your own
needs. <http://izfree.sourceforge.net>
--
"The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ:
<http://www.xmission.com/~legalize/book/>
Pilgrimage: Utah's annual demoparty
<http://pilgrimage.scene.org>

James

unread,
Jun 12, 2007, 12:09:18 PM6/12/07
to
Try using RegMon.exe from System Internals and run RegSvr32.exe and if set
to capture to file you have your answer.

http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/Regmon.
mspx

koawmfot

unread,
Jun 20, 2007, 1:24:01 PM6/20/07
to
it is easier to use regspy. regmon is brutal for this task.

http://installsite.org/files/iswi/RegSpy2.zip

this is a command line tool that you pass a dll or ocx file to and it gives
you the self-reg info. i usually pipe the output to a txt file for reference
later. a sample command would be:

regspy.exe [PATH TO DLL]\test.dll > c:\test.dll.txt

hope this helps...

doug

0 new messages