Sign in to follow this  
WebsiteWill

Find COM Objects

Recommended Posts

We are switching servers here at work and we have a list of COM objects that we need to move over to the new server. Is there a way to find out where these objects are installed so we can copy them over? It's not exactly game related, but you guys are usually quick with the replys. Thanks! Webby

Share this post


Link to post
Share on other sites
Very easy, simply go and read your DEPLOYMENT PLAN, this should list exactly what software set is required for the server to operate.

What? You don't have one? You expect anything to work?

You can't just copy a .dll file, regsvr32 it and expect it to work. There's no guarantee that a COM class does not require additional libraries, configuration, or other things (datafiles, services etc) installed on your box.

Therefore you should run the installer for the relevant component / application which provides the COM class rather than just copying the .dll (as that probably won't work).

That's why you need your deployment plan.

Therefore, go and try to work out what software you need, and try it on your test box. Repeat the process from a blank (i.e. just Windows) box, until you know *exactly* which versions of which software needs to be installed. Disc images or virtualisation may prove handy when doing this.

Mark

Share this post


Link to post
Share on other sites
These are custom COM objects that we are looking to copy (thus we know what the dependencies are). What we are trying to do is devise a method of deploying al of these custom dlls to the new server in a streamlined manner.

As for a DEPLOYMENT PLAN, yeah sure... You try inheriting a system from many teams before you and see if you get any sort of deployment plan in the package :P

We know what it is we need on the new server, what we don't know are the paths to a lot of this stuff. And again, these are specific dlls we are looking for, nothing that comes with an installer. Those are easy...


Webby

Share this post


Link to post
Share on other sites
search the registry. Once you find the name get its CLSID the serach in the CLSID directory for the CLSID and it will give you the path. THat's how cocreateinstance does it so it should be good for you!!.

Cheers
Chris

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this