XnViewMP - integration - file association

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

Moderators: xnview, Dreamer

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

XnViewMP - integration - file association

Post by user0 »

General - Integration

How to Set File Associations in Windows 10/11

1. Register app in the system
  • Installer version
    app will automatically register itself in registry during installation process
  • Portable version
    you have to manually register app in the system
    • run XnViewMP
    • press 'Set file associations...' (in Settings > Integration)
      to create ProgID keys in registry (HKCR hive)

      Code: Select all

      XnViewMP.arw
      XnViewMP.avif
      XnViewMP.bmp
      XnViewMP.cr2
      XnViewMP.cr3
      XnViewMP.crw
      XnViewMP.cur
      XnViewMP.dds
      XnViewMP.dng
      XnViewMP.emf
      XnViewMP.exr
      XnViewMP.gif
      XnViewMP.hdr
      XnViewMP.heic
      XnViewMP.heif
      XnViewMP.ico
      XnViewMP.iff
      XnViewMP.jfif
      XnViewMP.jif
      XnViewMP.jp2
      XnViewMP.jpc
      XnViewMP.jpe
      XnViewMP.jpeg
      XnViewMP.jpg
      XnViewMP.jxl
      XnViewMP.jxr
      XnViewMP.nef
      XnViewMP.pbm
      XnViewMP.pcd
      XnViewMP.pcx
      XnViewMP.pef
      XnViewMP.pgm
      XnViewMP.pic
      XnViewMP.png
      XnViewMP.ppm
      XnViewMP.psd
      XnViewMP.raf
      XnViewMP.ras
      XnViewMP.rle
      XnViewMP.rw2
      XnViewMP.sld
      XnViewMP.srf
      XnViewMP.tga
      XnViewMP.tif
      XnViewMP.tiff
      XnViewMP.webp
      XnViewMP.wmf
      XnViewMP.xbm
      XnViewMP.xpm
      
    • (OPTIONAL) additional ProgID keys can be added manually
      if you associate a filetype with application and there is no corresponding ProgID in the registry,
      the application icon and default filetype description will be used.

      If you want to use custom icon/filetype description you can add new ProgID, eg ABC filetype
      update paths to match your case

      Code: Select all

      Windows Registry Editor Version 5.00
      
      [HKEY_CLASSES_ROOT\XnViewMP.abc]
      @="ABC Bitmap file"
      
      [HKEY_CLASSES_ROOT\XnViewMP.abc\DefaultIcon]
      @="D:\\PROG\\portable\\graphic\\XnViewMP\\FileIcons\\generic.ico"
      
      [HKEY_CLASSES_ROOT\XnViewMP.abc\shell\open\command]
      @="\"D:\\PROG\\portable\\graphic\\XnViewMP\\xnviewmp.exe\" \"%1\""
      
      HKCR_XnViewMP.abc_reg.zip
2. Set File Associations
      use any method to set associations:
  • Windows
    manually assign each image extension, one by one
    • Settings > Default apps
    • Context menu > Open with
  • 3rd party app
    Windows 11 introduced much stricter enforcement of default app associations compared to Windows 10 and some methods may no longer work.
    • SetUserFTA 1.8.3/4 (free Personal edition)
      allows to set associations in batch

      Code: Select all

      SetUserFTA.exe xnAssociations.txt

      Code: Select all

      .arw, XnViewMP.arw
      .avif, XnViewMP.avif
      .bmp, XnViewMP.bmp
      .cr2, XnViewMP.cr2
      .cr3, XnViewMP.cr3
      .crw, XnViewMP.crw
      .cur, XnViewMP.cur
      .dds, XnViewMP.dds
      .dng, XnViewMP.dng
      .emf, XnViewMP.emf
      .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
      .rw2, XnViewMP.rw2
      .sld, XnViewMP.sld
      .srf, XnViewMP.srf
      .tga, XnViewMP.tga
      .tif, XnViewMP.tif
      .tiff, XnViewMP.tiff
      .webp, XnViewMP.webp
      .wmf, XnViewMP.wmf
      .xbm, XnViewMP.xbm
      .xpm, XnViewMP.xpm
      
      xnAssociations_txt.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 Thu Jan 15, 2026 8:24 am, edited 31 times in total.
User avatar
xnview
Author of XnView
Posts: 47202
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: 345
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.