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
- :
- Best practice for unregistering old DLL/OCX files
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 26, 2011
05:09 PM
Best practice for unregistering old DLL/OCX files
I am recreating an installer and the old version was not written properly, it removed all evidence of the installed package from the registry, I don't know why. So there is no way for me to call to have it Uninstall first like you'd normally do.
So as part of the new one I need to remove the old files/folder and one of the files is an Activex control and I would like to Unregister it first. The new installer is an MSI so is the best practice here to just do a custom action to regsvr32? That didn't seem like the best way which is why I'm asking here and I didn't see a way from InstallScript, as a custom action, to unregister dll/ocx files either.
I am going to be recreating several other installers here as well so in case I run into this again I'd like to use the correct/best method to do this.
Thanks,
J
So as part of the new one I need to remove the old files/folder and one of the files is an Activex control and I would like to Unregister it first. The new installer is an MSI so is the best practice here to just do a custom action to regsvr32? That didn't seem like the best way which is why I'm asking here and I didn't see a way from InstallScript, as a custom action, to unregister dll/ocx files either.
I am going to be recreating several other installers here as well so in case I run into this again I'd like to use the correct/best method to do this.
Thanks,
J
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 28, 2011
12:48 PM
Yes if you are trying to remove or unregister old files as part of your new installer, then a custom action is the only best way by calling to regsvr32