1.4.3 - settings - integration - file association - add new ProgID

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

User avatar
user0
XnThusiast
Posts: 2060
Joined: Sat May 09, 2015 9:37 am

1.4.3 - settings - integration - file association - add new ProgID

Post by user0 »

XnViewMP 1.4.3 64bit
Windows11 (22H2), display resolution 3840x2160, win scaling 150%


Settings - Integration
ProgID keys for some formats (AVIF, JFIF, etc) are not created in registry when you click "Set file associations...".
Therefore, after association with XnViewMP, files of these types are not opened in the Viewer tab, only the Browser tab is opened.

Solution
for windows 10 and above
  1. register app in the system
    • run XnViewMP with admin rights
    • press 'Set file associations...' (in Settings > Integration) to create ProgID keys in registry
    • add missing keys, eg JFIF
      update path to match your case

      Code: Select all

      Windows Registry Editor Version 5.00
      
      [HKEY_CLASSES_ROOT\XnViewMP.jfif]
      @="JFIF Bitmap file"
      
      [HKEY_CLASSES_ROOT\XnViewMP.jfif\DefaultIcon]
      @="D:\\PROG\\portable\\graphic\\XnViewMP\\FileIcons\\jpg.ico"
      
      [HKEY_CLASSES_ROOT\XnViewMP.jfif\shell\open\command]
      @="\"D:\\PROG\\portable\\graphic\\XnViewMP\\xnviewmp.exe\" \"%1\""
      
      HKCR_XnViewMP.jfif_reg.zip
  2. set associations
    • use any method to set associations:
      • via windows
        - Settings > Default apps
        - Context menu > Open with
      • via 3rd party app
        - SetUserFTA

        Code: Select all

        SetUserFTA.exe xnAssociations.txt

        Code: Select all

        .arw, XnViewMP.arw
        .avif, XnViewMP.avif
        .bmp, XnViewMP.bmp
        .cbr, XnViewMP.cbr
        .cbz, XnViewMP.cbz
        .cr2, XnViewMP.cr2
        .cr3, XnViewMP.cr3
        .crw, XnViewMP.crw
        .cur, XnViewMP.cur
        .dds, XnViewMP.dds
        .dng, XnViewMP.dng
        .exr, XnViewMP.exr
        .gif, XnViewMP.gif
        .hdr, XnViewMP.hdr
        .heic, XnViewMP.heic
        .heif, XnViewMP.heif
        .ico, XnViewMP.ico
        .iff, XnViewMP.iff
        .jfif, XnViewMP.jfif
        .jif, XnViewMP.jif
        .jp2, XnViewMP.jp2
        .jpc, XnViewMP.jpc
        .jpe, XnViewMP.jpe
        .jpeg, XnViewMP.jpeg
        .jpg, XnViewMP.jpg
        .jxl, XnViewMP.jxl
        .jxr, XnViewMP.jxr
        .nef, XnViewMP.nef
        .pbm, XnViewMP.pbm
        .pcd, XnViewMP.pcd
        .pcx, XnViewMP.pcx
        .pef, XnViewMP.pef
        .pgm, XnViewMP.pgm
        .pic, XnViewMP.pic
        .png, XnViewMP.png
        .ppm, XnViewMP.ppm
        .psd, XnViewMP.psd
        .raf, XnViewMP.raf
        .ras, XnViewMP.ras
        .rle, XnViewMP.rle
        .sld, XnViewMP.sld
        .srf, XnViewMP.srf
        .tga, XnViewMP.tga
        .tif, XnViewMP.tif
        .tiff, XnViewMP.tiff
        .webp, XnViewMP.webp
        .xbm, XnViewMP.xbm
        .xpm, XnViewMP.xpm
        
        xnAssociations_SetUserFTA.zip


ref
Guide to Understanding ProgIDs and File Type Associations
Windows Application Registration Guide
How to configure file associations for IT Pros





Related
You do not have the required permissions to view the files attached to this post.
Last edited by user0 on Tue Dec 17, 2024 8:19 am, edited 19 times in total.
User avatar
xnview
Author of XnView
Posts: 45062
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: 1.4.3 - viewer - JFIF association

Post by xnview »

i don't know why Windows doesn't add correct keys in registry...
Pierre.
FKCapitalism2
Posts: 270
Joined: Sun Apr 23, 2023 5:14 am

Re: 1.4.3 - viewer - JFIF association

Post by FKCapitalism2 »

With portable version of XnViewMP i did not even have key "HKEY_CURRENT_USER\SOFTWARE\Classes\Applications\xnviewmp.exe". Solution "A" fixed my problem described here.