"Open With...", but not be the default application? - Advanced Installer Community
ZaXa
Posts: 4
Joined: Mon Sep 08, 2014 9:21 pm

"Open With...", but not be the default application?

I have an image viewer application that primarily associates with a hand full of fairly unique extensions, however for my user's benefit it can also open things like JPGs, GIFs, etc. I created an installer today in 11.4.1 and added associations for those extensions. I have not set any of them as "Be the default application" or added a "Default Program" entry for any of the extensions.

Yet after I run the installer on Windows 7, all of the GIFs, JPGs, etc are by default associated with my program. If I uninstall they are all missing their default associations again and I have to reset them.

So I'm trying to figure out if this is a bug, expected behavior, or something I am doing wrong.

Thanks,

Matt Sheats
ZaXa Software, LLC
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: "Open With...", but not be the default application?

Hello Matt and welcome to Advanced Installer forums,

Go to Organization page and try setting the component of the file association to "Permanent". This option is in the Attributes section.
If you have trouble finding the component, just select the file association in the File Associations page list and press F8.
So I'm trying to figure out if this is a bug, expected behavior, or something I am doing wrong.
You're doing nothing wrong but all declared resources and settings are removed at uninstall time by default. You wouldn't want your clients having something left on their computer they don't want, now would you ;)

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ZaXa
Posts: 4
Joined: Mon Sep 08, 2014 9:21 pm

Re: "Open With...", but not be the default application?

Sorry I wasn't very clear. The problem isn't the uninstall. I do wish for the extension associations to be removed when the application is uninstalled. My problem is all of my extensions are being set such that my application is the default application even though I am not specifying that option.

I do not set a Default Applicatoion setting or check any of the "set as default" checkboxes for the extensions, yet after running the installer all the GIFs, TIFs, JPGs etc try to open in my software instead of the system's previously default image viewer.

That is the real problem I am having. My understanding from the docs is that if I install without setting the Default App that things would just show up in the Open With... menu. But instead all the extensions now use my app as a default.

Thanks, Matt
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: "Open With...", but not be the default application?

Hello Matt,

Does this behavior manifest on several (clean) machines?

If so, can you please send us the project file (.AIP), a verbose log and the details of the machines you've tested this on so we can investigate?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hovedsjef
Posts: 14
Joined: Wed Dec 14, 2011 2:22 pm

Re: "Open With...", but not be the default application?

Really looking forward to the answer of this one. I have the exact same problem, only in my installer I am supporting PDF files. Even Mihai's description of how he has tried to make this work matches exactly mine.

I want Windows to be CAPABLE of opening PDF files in my application and listed under "Open with...", but I most definitely do not want my application to "steal" the default program assignment from being Adobe Reader (or whatever the user might use as their PDF reader).

If you aren't finding the solution with Mihai's AIP file, please let me know so I can provide you with my sample. My problem is reproducible in any clean, fresh virtual computer running Win7 that I use to test with.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: "Open With...", but not be the default application?

Hello,

First of all I apologize for my delayed reply. I've tested the scenario and I was able to replicate the behavior. I'm afraid this is the Windows Installer default behavior. Our "File Associations" page uses Windows Installer support for creating file extensions by using the "Extension" and "ProgId" table. It seems that, on Windows 7, when installing a file association of a new application for an existing extension Windows Installer set the new installed application as default program for the existing extension. Unfortunately, we didn't found any workaround in order to avoid this limitation.

The only solution, in order to avoid this behavior on Windows 7 machines, would be to create from scratch the registries required to install the file association.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hovedsjef
Posts: 14
Joined: Wed Dec 14, 2011 2:22 pm

Re: "Open With...", but not be the default application?

Yes that's exactly what I ended up doing - creating registries from scratch. That works.

Return to “Common Problems”