rscott78
Posts: 7
Joined: Wed Aug 28, 2013 1:02 pm

File marked as "Update when newer" gets deleted on update

I've got an installer that installs a "Plugin.dll" when the main program is installed. This plugin.dll is marked as version 2.0.0.0 when viewed in the file system.

The user can optionally purchase an upgrade to Plugin.dll which has its own installer. Upon installation, the existing Plugin.dll is replaced with a new version marked as 3.5.0.0. All is great here.

If I then release a new version of my main program as a "Major Upgrade," the Plugin.dll will be deleted from the installation folder when everything is said and done. The only way to get it back is to re-run the installer and choose the "Repair" option. The Plugin.dll in the upgrade installer is still the original version 2.0.0.0 and has the operation set to "Overwrite only if the existing file is older."

My intent is that when the user has the 3.5.0.0 version of Plugin.dll installed, the updates to the main program will ignore it and continue on as normal -- thus leaving the upgraded 3.5.0.0 version alone.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: File marked as "Update when newer" gets deleted on updat

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

This may happen due to a well known Windows Installer bug. Can you please enable the " "Do not overwrite existing file" option, from "File Operations Tab", for the related file and see if the behavior still persist?

You can also take a look on our DLL file disappers during an upgrade thread which debates a similar issue.

Let us know if this helps, otherwise please give us more details about your scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”