File Association Needs Re-Install - Advanced Installer Community
JRowland
Posts: 11
Joined: Mon Sep 12, 2016 3:18 pm

File Association Needs Re-Install

Hi,

I have a bit of a problem with File Associations that I hope you can help with. Essentially we have an installer for a program that can open files with either of two different extensions. When installing as an Admin User (Windows 10) this works fine and double clicking a file opens the application as required, however when installing as a Standard User there is a problem The installation prompts for an Admin password at the start, then seems to run through fine, but when an associated file is double clicked it prompts that it needs to run the MSI again, browsing to the MSI does do some sort of reconfiguration and the association then works fine. Clearly that is an extra, slightly awkward, step that I would prefer the users not to have to do.

Regards,
Jonathan
Capture.PNG
Capture.PNG (21.66 KiB) Viewed 10289 times
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: File Association Needs Re-Install

Hello Jonathan,

This happens when resources are missing from the target machine and a repair is triggered by Windows Installer. This is the case when, for example you have a machine installations but you deploy files in user specific locations (for example Application Data). When another user logs on, if in the "Organisation" page, the files deployed to a user location are in the same feature as the file association, Windows Installer detects the missing files and the self healing mechanism is triggered. Please have a look on the following topics: File association after update ; File Associations - Please wait while windows configures
Hope this helps!

Best regards,
Sorin
Last edited by Sorin on Mon May 15, 2017 2:35 pm, edited 2 times in total.
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JRowland
Posts: 11
Joined: Mon Sep 12, 2016 3:18 pm

Re: File Association Needs Re-Install

Thanks,

The file association is part of the main feature but the only things I can see that is probably user specific is some registry settings in HK_CU, possibly they should be somewhere else? They are all related to the installation of a required OCX file that is in Common Files and setup to Auto Register & Self register native library. Might there be a better way to install this file?

Also I noticed that to set 'do not delete extracted MSI nd CAB file' I need to build to an EXE rather than an MSI otherwise that option is not available to tick.

Finally there is an option in Install Parameters to set installation type. Currently I have this set to per machine if user is administrator, per user otherwise. Could this have any impact?

Regards,
Jonathan
JRowland
Posts: 11
Joined: Mon Sep 12, 2016 3:18 pm

Re: File Association Needs Re-Install

Hi again.

I tried the don't delete the MSI option and had a different oddity. The install looked OK but when running the auto-repair on double clicking the associated file (or running repair from the control panel) I get an cab file has an invalid signature message, although it is signed and mentioned the initial install ran without error.

Regards,
Jonathan
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: File Association Needs Re-Install

Hello,
JRowland wrote:
The file association is part of the main feature but the only things I can see that is probably user specific is some registry settings in HK_CU, possibly they should be somewhere else? They are all related to the installation of a required OCX file that is in Common Files and setup to Auto Register & Self register native library. Might there be a better way to install this file?
Creating a new feature for the component which contains the OCX should disable the repair.
JRowland wrote: Also I noticed that to set 'do not delete extracted MSI nd CAB file' I need to build to an EXE rather than an MSI otherwise that option is not available to tick.
This is a Bootstrapper feature, thus only available for EXE setups. The MSI and CAB are extracted from the EXE setup and this option will allow your package to be repaired or modified if required by the user or by a patch.
JRowland wrote: Finally there is an option in Install Parameters to set installation type. Currently I have this set to per machine if user is administrator, per user otherwise. Could this have any impact?
No. The only impact will be if you choose per user only install type. But in this way the file association will be available only for the user who installed the application. The product won't be available for all users.

Regarding the problem you encounter with the invalid signature message, could you please send us the .AIP (project) and a download link of the setup installation which reproduces this issue to support at advancedinstaller dot com so we can investigate them?

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JRowland
Posts: 11
Joined: Mon Sep 12, 2016 3:18 pm

Re: File Association Needs Re-Install

Thanks again,

I have moved the OCX file and associated registry settings to a separate feature and that worked very well. I did it in two parts, first moved the files to a new feature and then the registry keys to the same feature as I couldn't recall how I added them initially (it may have been a simple import of keys or automatically in some way from the OCX?).

The invalid signature problem did not occur today, although I do not know why but I can still send the files if you would like to check anyway?

Regards,
Jonathan
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: File Association Needs Re-Install

You are always welcome!

These keys are automaticaly created by Advanced Installer when registring the OCX if you selected Auto Register option for your OCX file from Registration Tab
Of course you could send us the files to investigate them

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: File Association Needs Re-Install

Hello,

We have analysed you project and setup file. The project appears to be configured properly and the installation is successful.

Let us know if there is any problem in order to further investigate the issue.

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JRowland
Posts: 11
Joined: Mon Sep 12, 2016 3:18 pm

Re: File Association Needs Re-Install

Thanks for the help,
Jonathan
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: File Association Needs Re-Install

You are always welcome!

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”