jcyr
Posts: 9
Joined: Sun Apr 18, 2010 8:23 pm

File association with mixed mode install

I have a mixed-mode install package that installs different exe's with the same name depending on whether the target system is 32 or 64 bit. The problem I'm encountering is that I can't create the same association for both install flavors. I can create a file association for file type .xyz to the 64 bit exe, but then I am blocked from creating an association for file type .xyz for the 32 bit exe. Advanced installer gives me a 'this extension is already associated' error!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File association with mixed mode install

Hi Jean,

I'm afraid this is not possible from Files Association page. The only solution is to see what registry entries are created by a single file association and create those manually, from Registry page. Here you can customize them to create the registry for both files, with the customized install path.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jcyr
Posts: 9
Joined: Sun Apr 18, 2010 8:23 pm

Re: File association with mixed mode install

Ok, we can create the registry entries manually. Whenever a file association is created or changed, we must notify the system that a change has been made by calling SHChangeNotify, specifying the SHCNE_ASSOCCHANGED event. If this is not done, the Shell may not recognize any changes made until the system restarts.

So... How would we do that call to SHChangeNotify after the registry entries are created, and after they are deleted during an uninstall?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File association with mixed mode install

Hello,

In order to achieve this you can create your own custom action which will call the SHChangeNotify function. Also, the custom action should run as "Deferred with no impersonation" and should be scheduled after "Install Execution Stage -> Add Resources" action group (on install) and after "Install Execution Stage -> Remove Resources" action group (on uninstall).

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Peter R
Posts: 16
Joined: Tue Oct 31, 2006 6:36 pm

Re: File association with mixed mode install

Going through manual registry entries and custom actions seems like a lot of work for something that is (a) much better supported by Advanced Installer for a non-mixed installer, and (b) something that is very commonly needed, because most or at least many installers now will be mixed 32/64 bit mode.

Why can't Advanced Installer hide these complexities from the user? You have a nice Wizard for mixed installers, rather than forcing users to create mixed installers from scratch (which would be a real pain). Please add file associations to the Wizard, or provide a similar simple way to accomplish this very common task.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File association with mixed mode install

Hello,

We've added this improvement on our TODO list and maybe we'll consider this in a future version of Advanced Installer. Thank you for your suggestion.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
markr002
Posts: 21
Joined: Mon Dec 20, 2010 5:38 pm

Re: File association with mixed mode install

We need this capability too. Honestly, it seems really strange that this feature doesn't already exist.
markr002
Posts: 21
Joined: Mon Dec 20, 2010 5:38 pm

Re: File association with mixed mode install

I've found that, in practice, it doesn't seem to be necessary to make a call out to SHChangeNotify with a custom action.

In all of our tests, creating the HKCR registry entries was sufficient and was always immediately recognized by the OS after installation.

I still feel that AI's File Associations mechanism should be smart enough to handle mixed 32/64 bit installations. Otherwise users may not even realize that it's note working property in mixed installs.

Regards,

Mark R.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File association with mixed mode install

Hello Mark,

I increased the priority for this improvement and hopefully we will find a resolution soon. However, I'm afraid I cannot give you an ETA for this improvement at this moment.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

Re: File association with mixed mode install

I need this, too.

Only to find that I cannot get the file association to work. In general, I'm very impressed with Advanced Installer, but disappointed that I'm having to get down into the weeds to try accomplish something as basic as a file association.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: File association with mixed mode install

Hello,

We apologize for this inconvenience. This improvement is on our TODO list and for surely will be available in a future version of Advanced Installer. Unfortunately, I cannot give you an ETA for now. We will notify you when this will be available.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: File association with mixed mode install

Hello,

The improvement to add same extension for both version (32 and 64-bit) of application when using a mixed installation package has been added in version 11.0 of Advanced Installer released on March 13th, 2014.

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

Return to “Common Problems”