evanw
Posts: 11
Joined: Thu Jan 24, 2013 2:12 am

Windows Installer prompts for Repair after 3rd-party updates

Hello,

I'm currently using Advanced Installer for my primary installation deployment, but the software updates are being handled by a separate 3rd-party application. Through the software update process, my software's program files may be replaced, added, or removed depending on the update.

I've had an intermittent problem that occurs after software updates; when I open a filetype associated with my application (this association is set via Advanced Installer), I'm prompted by the Windows Installer to locate my original installation executable to run a repair installation.

Image

If I do not locate the installer executable for the repair, and error message is displayed and the file will not be opened.

Image

I've read of a similar issue with a user trying to access an installed application from a different user account, and from what I understand from that post is that the Windows Installer runs a repair installation if it detects that resources are missing. Is this due to the file association method?

Can you please provide input on what I can do in this situation to fix this issue? Please let me know if I can provide additional details.

Thank you for your support.

Evan
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Windows Installer prompts for Repair after 3rd-party upd

Hi Evan,

The auto-repair is indeed triggered by the OS because it detects that resources installed by the package have been altered, or removed. This
is the normal behavior, recommend to be enabled by default in MSI packages.

The problem is that your method of deploying updates its not following Microsoft standards. To deploy a new version of your DLLs or EXE files it is recommended
you create a new setup package, withe version number increased, as explained in this article.

After you get the new MSI/EXE that upgrades the last one you can deploy it with your updater, if it supports deploying it.

You should now that we have an updater capable of deploying your package too, for which you don't have pay something else as you already have a license for Advanced Installer.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
evanw
Posts: 11
Joined: Thu Jan 24, 2013 2:12 am

Re: Windows Installer prompts for Repair after 3rd-party upd

I'm currently using wyUpdate to handle automatic updates within my application, mainly because of its solid integration with .NET user interfaces. I am updating my version numbers, but perhaps this is not compatible with the installation established by Advanced Installer.

Even though it is recommended to be enabled by default in MSI packages, is it possible to disable this auto-repair?

Thanks,

Evan
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Windows Installer prompts for Repair after 3rd-party upd

Hi Evan,

Updating the version numbers of the DLLs is not enough, the OS required for an update to install the new DLLs, i.e. a new MSI package.
Even though it is recommended to be enabled by default in MSI packages, is it possible to disable this auto-repair?
Go to Organization page, select each feature one by one, not the components, and set the radio button "Disable Advertise". Rebuild and test the package.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
evanw
Posts: 11
Joined: Thu Jan 24, 2013 2:12 am

Re: Windows Installer prompts for Repair after 3rd-party upd

Thank you very much for the assistance, I will try out this recommendation. I'll also spend some more time evaluating the Advanced Installer updater component.
evanw
Posts: 11
Joined: Thu Jan 24, 2013 2:12 am

Re: Windows Installer prompts for Repair after 3rd-party upd

Unfortunately I rebuilt my installer with "Disable Advertise" selected, but after updating my software I am again being presented with a prompt to run the Windows Installer repair. Any other suggestions?
evanw
Posts: 11
Joined: Thu Jan 24, 2013 2:12 am

Re: Windows Installer prompts for Repair after 3rd-party upd

As a workaround, I'm using Advanced Installer's "Registry" features to add my own file association registry keys, which appears to be a suitable fix for the time being. Do let me know if there is a better fix available, but in the meantime, this will work fine.

Return to “Common Problems”