Page 1 of 1

BUG: Can't set file type associations in XnView...

Posted: Sat Jun 17, 2023 11:52 am
by ghost zero
Image

We can't set file type associations in XnView, the options are grayed out. It works fine on Win7 but not on Win11. Normally, I want to click the "the most used" button option. Please fix.

Re: BUG: Can't set file type associations in XnView...

Posted: Tue Jun 20, 2023 2:31 pm
by xnview
you need to use associations in windows settings

Re: BUG: Can't set file type associations in XnView...

Posted: Tue Jun 20, 2023 7:34 pm
by ghost zero
but it is a big hassle to have to manually set associations in windows settings. can you fix it to make the xnview association options work in win11, to be more convenient? normally, i want to simply click the "the most used" button option.

Re: BUG: Can't set file type associations in XnView...

Posted: Thu Jun 22, 2023 1:02 pm
by xnview
ghost zero wrote: Tue Jun 20, 2023 7:34 pm but it is a big hassle to have to manually set associations in windows settings. can you fix it to make the xnview association options work in win11, to be more convenient? normally, i want to simply click the "the most used" button option.
It's no more possible

Re: BUG: Can't set file type associations in XnView...

Posted: Fri Jun 23, 2023 8:04 am
by ghost zero
why isn't it possible?

Re: BUG: Can't set file type associations in XnView...

Posted: Fri Jun 23, 2023 9:04 am
by xnview
Since Windows 10, it's not more possible from windows api

Re: BUG: Can't set file type associations in XnView...

Posted: Sun Jun 25, 2023 7:13 pm
by Darknight
Is it possible to make an Export and Import Custom Default App Associations like this:
https://www.elevenforum.com/t/export-an ... s-11.5305/

?

Re: BUG: Can't set file type associations in XnView...

Posted: Mon Jun 26, 2023 3:45 am
by user0
looks like a solution for MP as well

Re: BUG: Can't set file type associations in XnView...

Posted: Mon Jun 26, 2023 8:26 am
by Darknight
Unfortunately it doesn't work. I tested. :(
The answer to why is here: https://www.dedoimedo.com/computers/win ... assoc.html

"From Windows 10 20H2, none of these solutions really work for an existing user. If you want to make changes, you can, except, the system will totally ignore them. Moreover, Windows now also assigns a hash to any program & file association, and this hash is used to verify that the change is legit, i.e., done by the user. So you can't really go about manually mucking through the registry, because Windows will ignore your manual changes, as they won't match the hash. How is the hash computed, beats me."

Re: BUG: Can't set file type associations in XnView...

Posted: Mon Jun 26, 2023 4:36 pm
by user0
there is a solution for XnVIew MP version (for win 10 and above), similar approach may work for XnVIew Classic as well
1.4.3 - settings - integration - file association - add new ProgID

Re: BUG: Can't set file type associations in XnView...

Posted: Thu Nov 02, 2023 12:33 pm
by Tetsuoo
I had issues launching XnView MP from Windows Explorer with any type of image file, SetUserFTA saved the day using your example. Thank you :)
(I'm going to put that into a BAT file so next time I need that trick I won't need to search in the forum again xD )

Note: I'm using Windows 10 21H2 and using the settings didn't work; this trick is easier anyway

Re: BUG: Can't set file type associations in XnView...

Posted: Fri Jul 19, 2024 7:23 pm
by kimi
xnview wrote: Thu Jun 22, 2023 1:02 pm
ghost zero wrote: Tue Jun 20, 2023 7:34 pm but it is a big hassle to have to manually set associations in windows settings. can you fix it to make the xnview association options work in win11, to be more convenient? normally, i want to simply click the "the most used" button option.
It's no more possible
Hi Pierre, I agree with you about the hassle of file type associations on Windows 10 and 11. However, there are still some well-known programs accomplishing bulk file type associations using their on settings menu on Windows 10/11, such as WinRAR. Can you make comments on that in order to make the same with XnView?

Re: BUG: Can't set file type associations in XnView...

Posted: Fri Nov 08, 2024 11:34 pm
by j7n
There appears to be list of protected extensions. On a new Windows installation the ".bmp" extension cannot be changed, but ".reg" can be changed normally. Have people found where this list is to hack it?

Edit: On Server 2022 only these extensions are protected. Strangely, some important ones like EXE are not. Many image extensions like PSD DDS are not on the list, and neither is RAR and 7Z.

.3g2 .3gp .3gp2 .3gpp .aac .adt .adts .avi .bmp .dib .flac .gif .htm .html .jfif .jpe .jpeg .jpg .m2t .m2ts .m3u .m4a .m4v .mkv .mod .mov .MP2 .mp3 .mp4 .mp4v .mpa .MPE .mpeg .mpg .mpv2 .mts .pdf .png .tif .tiff .TS .TTS .txt .url .wav .website .wm .wma .wmv .WPL

I have deleted/renamed OEMDefaultAssociations.dll‎‎
Removed the Deny permission and then deleted all subkeys from HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
On later builds there is also a driver service HKLM\SYSTEM\CurrentControlSet\Services\UCPD (start := 4)