Register a COM object using InstallShield

2019-02-12 22:56发布

问题:

I am using InstallShield 2011. I have a COM object that needs registered during installation. I cant seem to find anywhere where it instructs you on how to do this. Does anyone have any ideas?

Thanks

EDIT:

回答1:

Create a component and add your COM dll/ocx to it and right click it to mark it as key file if needed. Then right click the file and select "Extract COM". You should see a bunch of progress messages as it harvests the various registry entries. Build your installer and test it on a clean machine.



回答2:

Please see Rod Maupin's blog《COM Extraction/Registration in an InstallShield Project》 http://www.installationdeveloper.com/3028/com-extractionregistration-in-an-installshield-project/



回答3:

There is a manual method of registering COM described here. It also shows a method, which is not recommended, to register automatically during build.

(Google for "Configuring COM Registration Settings Manually" if the link stops working).

EDIT:

  • The link has indeed stopped working - it seems Installshield's knowledge base is now login only. What a shame.
  • Adding a link to Flexera's (Installshield owner) helpnet home page: http://helpnet.flexerasoftware.com/. Click on the "Help Libraries" links in the left column for online help (nice looking stuff that looks like it is made with RoboHelp).
  • Might as well add a direct link to a similar topic: Configuring COM Registration Settings Manually.