XnViewMP - integration - file association

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

Moderators: xnview, Dreamer

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

XnViewMP - integration - file association

Post by user0 »

How to Set File Associations in Windows 10/11

1. Register app in the system
  • Default registration
    • 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 'Register application' button (in Settings > Integration)
    by default app registers itself for the following filetypes:

    Code: Select all

    .arw
    .avif
    .bmp
    .cr2
    .cr3
    .crw
    .cur
    .dds
    .dng
    .emf
    .exr
    .gif
    .hdr
    .heic
    .heif
    .ico
    .iff
    .jfif
    .jif
    .jp2
    .jpc
    .jpe
    .jpeg
    .jpg
    .jxl
    .jxr
    .nef
    .pbm
    .pcd
    .pcx
    .pef
    .pgm
    .pic
    .png
    .ppm
    .psd
    .raf
    .ras
    .rle
    .rw2
    .sld
    .srf
    .tga
    .tif
    .tiff
    .webp
    .wmf
    .xbm
    .xpm
    
  • (optional) add extra filetypes
    To properly associate app with additional filetypes, the corresponding registry keys must be created in registry (in addition to 'default' keys).
    Example for two test extensions (.abc and .xyz):

    Code: Select all

    Windows Registry Editor Version 5.00
    
    
    ; --- 1. Declare File Associations 
    [HKEY_LOCAL_MACHINE\SOFTWARE\XnViewMP\Capabilities\FileAssociations]
    ".abc"="XnViewMP.abc"
    ".xyz"="XnViewMP.xyz"
    
    ; --- 2. Register Application Capabilities
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Applications\xnviewmp.exe\SupportedTypes]
    ".abc"=""
    ".xyz"=""
    
    ; --- 3. Define ProgIDs
    [HKEY_LOCAL_MACHINE\Software\Classes\.abc]
    @="XnViewMP.abc"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XnViewMP.abc\DefaultIcon]
    @="C:\\Program Files\\XnViewMP\\FileIcons\\generic.ico"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XnViewMP.abc\shell\open\command]
    @="\"C:\\Program Files\\XnViewMP\\xnviewmp.exe\" \"%1\""
    
    
    [HKEY_LOCAL_MACHINE\Software\Classes\.xyz]
    @="XnViewMP.xyz"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XnViewMP.xyz\DefaultIcon]
    @="C:\\Program Files\\XnViewMP\\FileIcons\\generic.ico"
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\XnViewMP.xyz\shell\open\command]
    @="\"C:\\Program Files\\XnViewMP\\xnviewmp.exe\" \"%1\""
    


2. Set File Associations
      use any method to set associations:
  • Windows
    manually assign each image extension, one by one
    • Settings > Apps > Default apps
    • File Explorer > 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





Related
You do not have the required permissions to view the files attached to this post.
Last edited by user0 on Tue Feb 24, 2026 10:44 am, edited 36 times in total.