MattFW
Posts: 18
Joined: Fri Jul 06, 2007 4:54 am

Modifying file structure post install prompting for repair.

I'm working on an installer (MSI archived in to a booststrapper EXE) currently that installs an application to the Program Files directory, with 4 Features all of which are 'Installed by default', 'Installed Locally', and have had 'Disable Advertise' checked in their properties panes. What I'm finding is that if I install the product and change the name of one of its installed folders on disk (tested on XP and Vista), then double click a registered file type to open the application, I am being prompted to reinstall the app. I thought that the Disable Advertise option would prevent this from happening? The folder doesn't contain any registered components such as DLLs, it just contains flat binary files used by the application directly.

Ideally I don't want the Windows Installer ever prompting for repair as I've found users tend to misplace their installers and end up unable to launch the app from double clicking a file without contacting us for a new download. Is there a setting somewhere that might be causing this behaviour?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Modifying file structure post install prompting for repair.

Hi Matt,

The auto-repair is automatically enabled in Windows Installer when creating a file association. You can bypass this behavior by creating the file association from the registries. Here is an article that discusses creating file associations using registry.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
MattFW
Posts: 18
Joined: Fri Jul 06, 2007 4:54 am

Re: Modifying file structure post install prompting for repair.

Thanks for the info, that explains it then as I'm registering the file type via the installer. A question on the direct registry key solution: Would that work on versions of Windows from XP through 7, and would it require elevated permissions? HKEY_CLASSES_ROOT looks like it requires admin access to edit and I'd rather avoid my users having to use admin logins.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Modifying file structure post install prompting for repair.

Hello,

Yes, it should work on Windows XP through 7. As for the admin access requirement, yes, this solution involves it. But nothing really changes since admin privileges were a requirement even before, when the file association was being done through Windows Installer.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”