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.
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.
If you just want to know how COM extraction works read this page:
http://installneo.blogspot.com/2004/12/spying-on-registry-entries.html
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...
=?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>
http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/Regmon.
mspx
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