This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Tips/Suggestions for registering COM components
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
Feb 11, 2011
05:12 PM
Tips/Suggestions for registering COM components
I inherited an installer from a past colleague and I have some questions around how he implemented the registering of some COM components (DLL and OCX files). He pushed them out to their own respective merge modules, created custom actions that execute regsvr32.exe on the files (one for installing and one for uninstalling with /u), and then included them in the main installer and calls these custom actions in the main installer.
If this behavior needed for COM components? Is there an better and/or easier way to do this? I know Installshield supports COM extraction during the build process... would that be better than calling this EXE?
I'm trying to tidy up some of the stuff in it as well as fixing defects and there have been a few around this where, if the installer fails for whatever reason and rollback occurs, these register/unregister CAs fail.... and worse, if the file is removed for whatever reason, the application won't uninstall at all because it can't unregister the file!
If this behavior needed for COM components? Is there an better and/or easier way to do this? I know Installshield supports COM extraction during the build process... would that be better than calling this EXE?
I'm trying to tidy up some of the stuff in it as well as fixing defects and there have been a few around this where, if the installer fails for whatever reason and rollback occurs, these register/unregister CAs fail.... and worse, if the file is removed for whatever reason, the application won't uninstall at all because it can't unregister the file!
(1) Reply
Feb 11, 2011
05:42 PM
Good instincts! If COM extraction works in your situation, it's preferable to running regsvr32 for (among other things) the reason you mention: no automatic rollback for installation or uninstallation...