DCOMCnfg settings

T

tvle

Hi

Is it possible to create a component that encapsulates the settings for
an object listed in DCOMCnfg? How would one do this? I have some COM
components that require the "identity" to be set manually under
DCOMCnfg and I would like to automate it.

Thanks for your help.
 
G

Gordon Smith \(eMVP\)

tvle said:
Hi

Is it possible to create a component that encapsulates the settings
for an object listed in DCOMCnfg? How would one do this? I have
some COM components that require the "identity" to be set manually
under DCOMCnfg and I would like to automate it.

Thanks for your help.

I haven't done this personally, but it "should" be doable. You'll want to
use a tool like INCTRL5 or RegSnap/NTFILEMON/NTREGMON/etc. to take a
snapshots of the system before and after your change. Take a diff of those
snapshots and most likely it's simply a set of registry settings. You would
then build a component for those registry settings.

Possible gotchas:
1. I'm not sure if the settings they save have machine/instance specific
data. If so, this approach won't work.
2. Make sure you have a build order dependancy on any component which may
stomp over your registry settings.

If #1 is an issue, I'd look into a programmatic or scripted approach for
making those settings. You could then create a component which executes
that approach for you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top