ssearles
Posts: 65
Joined: Tue Oct 30, 2007 12:54 pm

(Re)Registering a newer DLL

I've got an existing installer that I'm trying to upgrade. Part of that upgrade is the replacement and reregistering a DLL with a newer version. Now the previous installer had successfully registered the older version without a problem, and the newer installer for a brand new installation works fine with the new DLL.

The issue is when I try to upgrade an older installation, with the reinstall of the new MSI... I'm trying to find a bullet proof way to make sure the old DLL is replaced and reregistered without user interaction.


Has anyone run into this before or have a preferred/proven method I can use?


Thank in advance,
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: (Re)Registering a newer DLL

Hi,

If the old installation registered the DLL, it should also unregister it when uninstalled. To uninstall the old version when running your installer you can try one of the approaches explained here. If the uninstall of the old version doesn't unregister the DLL, you can try using a custom action in the new package to unregister it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ssearles
Posts: 65
Joined: Tue Oct 30, 2007 12:54 pm

Re: (Re)Registering a newer DLL

Ok, so if my older installer did it via a Custom Action (basically to run the regsvr32 command), but my new installer actually has the new DLL directly embedded, I should use a Custom Action again to unreg it, but the AI to register the new one?


Just wanted to make sure I'm understand you :)
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: (Re)Registering a newer DLL

Hello,
Ok, so if my older installer did it via a Custom Action (basically to run the regsvr32 command), but my new installer actually has the new DLL directly embedded, I should use a Custom Action again to unreg it, but the AI to register the new one?
Yes, this is correct.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
clintc
Posts: 3
Joined: Thu Jun 10, 2010 2:49 pm

Re: (Re)Registering a newer DLL

Please ignore

Return to “Common Problems”