d2phap / ImageGlass

🏞 A lightweight, versatile image viewer
https://imageglass.org
Other
7.82k stars 500 forks source link

how do I set as Default photo viewer during installation? i know its possible because... #862

Closed Jieiku closed 4 years ago

Jieiku commented 4 years ago

System information:

To Reproduce

Steps to reproduce the behavior:

  1. perform silent install (START "" /WAIT MSIEXEC /i "%SystemRoot%\Setup\Files\ImageGlass_7.6.4.30_x64.msi" /qn)
  2. copy igconfig.xml to install directory, make sure it is writable.
  3. try to open a file and it opens in MS paint.

Actual behavior:

now windows should automatically know that it is the photo viewer, but it does not.

there does not seem to be an easy way to set it as the default photo app I have read through the few issue reports relevant such as: https://github.com/d2phap/ImageGlass/issues/400

there may not be a way to programmatically do it, but i am fairly certain it can be done automatically during install. for instance if I install VLC or firefox then they set them selves as the default application without intervention.

ECHO.
ECHO Installing Firefox . . .
START "" /WAIT "%SystemRoot%\Setup\Files\Firefox_x64.exe" /s
ECHO.
ECHO Installing VLC . . .
START "" /WAIT "%SystemRoot%\Setup\Files\vlc-3.0.11-win32.exe" /L=1033 /S
ECHO.
d2phap commented 4 years ago

Hi @xekon

You can write batch script and use ImageGlass command line utilities to register default extensions:

C:\path\to\ImageGlass\igtasks.exe regassociations "*.png;*.jpg;*.gif;"

The above step is just tell Windows that ImageGlass supports these extensions. In Windows 10, user need to go to Settings > Default apps > Photo viewer to choose the app they want.

fire-eggs commented 4 years ago

Microsoft made it more difficult in Windows 10 to associate default apps. ImageGlass is currently only able to set file extension associations, which does not make ImageGlass the default 'Photos' app.

Here are some links to Microsoft articles about setting default apps. Please let us know what you end up getting to work!

Default App Assoc - command line File assoc for IT pros Enterprise ready file assoc

Jieiku commented 4 years ago

@d2phap I tried your method to register extensions, it does not register it as the default Photo viewer for windows, only for some extensions. I understand users can manually set this, I am looking for a way that does it automatically, just like the silent installers for firefox and VLC do.

@fire-eggs I understand Microsoft made it more difficult in Windows 10, but it should be possible, both firefox and VLC successfully set themselves as the default application on a silent install, without any intervention:

ECHO.
ECHO Installing Firefox . . .
START "" /WAIT "%SystemRoot%\Setup\Files\Firefox_x64.exe" /s
ECHO.
ECHO Installing VLC . . .
START "" /WAIT "%SystemRoot%\Setup\Files\vlc-3.0.11-win32.exe" /L=1033 /S
ECHO.

vlc

Jieiku commented 4 years ago

using OEMDefaultAssociations.xml worked, in default apps it is still not selected as the default photo app, but images when double clicked are opening properly in ImageGlass now (instead of MS paint).

solved well enough for now, but would be nice if the ImageGlass installer could just become the default "Photo viewer" similarly to how VLC and Firefox are able to become default apps just by installing them.

I included it in my ntlite build under sources\$OEM$\$$\System32\OEMDefaultAssociations.xml

OEMDefaultAssociations.xml:

<?xml version="1.0" encoding="UTF-8"?>
<DefaultAssociations>
  <Association Identifier=".fbx" ProgId="AppXmgw6pxxs62rbgfp9petmdyb4fx7rnd4k" ApplicationName="Mixed Reality Viewer" ApplyOnUpgrade="true" />
  <Association Identifier=".glb" ProgId="AppXmgw6pxxs62rbgfp9petmdyb4fx7rnd4k" ApplicationName="Mixed Reality Viewer" ApplyOnUpgrade="true" />
  <Association Identifier=".gltf" ProgId="AppXmgw6pxxs62rbgfp9petmdyb4fx7rnd4k" ApplicationName="Mixed Reality Viewer" ApplyOnUpgrade="true" />
  <Association Identifier=".obj" ProgId="AppXmgw6pxxs62rbgfp9petmdyb4fx7rnd4k" ApplicationName="Mixed Reality Viewer" ApplyOnUpgrade="true" />
  <Association Identifier=".ply" ProgId="AppXmgw6pxxs62rbgfp9petmdyb4fx7rnd4k" ApplicationName="Mixed Reality Viewer" ApplyOnUpgrade="true" />
  <Association Identifier=".stl" ProgId="AppXmgw6pxxs62rbgfp9petmdyb4fx7rnd4k" ApplicationName="Mixed Reality Viewer" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXvhc4p7vz4b485xfp46hhk3fq3grkdgjg;AppXr0rz9yckydawgnrx5df1t9s57ne60yhn"  />
  <Association Identifier=".3mf" ProgId="AppXr0rz9yckydawgnrx5df1t9s57ne60yhn" ApplicationName="Print 3D" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXvhc4p7vz4b485xfp46hhk3fq3grkdgjg;AppX4r6v2fg5b2qwg1jprp713smfp4wb02yp" />
  <Association Identifier=".oxps" ProgId="Windows.XPSReachViewer" ApplicationName="XPS Viewer" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX86746z2101ayy2ygv3g96e4eqdf8r99j" />
  <Association Identifier=".wsb" ProgId="Windows.Sandbox" ApplicationName="Windows Sandbox" />
  <Association Identifier=".xps" ProgId="Windows.XPSReachViewer" ApplicationName="XPS Viewer" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX86746z2101ayy2ygv3g96e4eqdf8r99j" />
  <Association Identifier="bingmaps" ProgId="AppXp9gkwccvk6fa6yyfq3tmsk8ws2nprk1p" ApplicationName="Maps" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXde453qzh223ys1wt2jpyxz3z4cn10ngt;AppXsmrmb683pb8qxt0pktr3q27hkbyjm8sb" />
  <Association Identifier=".txt" ProgId="txtfile" ApplicationName="Notepad" ApplyOnUpgrade="true" />
  <Association Identifier=".epub" ProgId="FirefoxHTML-308046B0AF4A39CB" ApplicationName="Firefox" ApplyOnUpgrade="true" />
  <Association Identifier=".htm" ProgId="FirefoxHTML-308046B0AF4A39CB" ApplicationName="Firefox" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX6k1pws1pa7jjhchyzw9jce3e6hg6vn8d" />
  <Association Identifier=".html" ProgId="FirefoxHTML-308046B0AF4A39CB" ApplicationName="Firefox" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX6k1pws1pa7jjhchyzw9jce3e6hg6vn8d" />
  <Association Identifier=".pdf" ProgId="FirefoxHTML-308046B0AF4A39CB" ApplicationName="Firefox" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXk660crfh0gw7gd9swc1nws708mn7qjr1;AppX86746z2101ayy2ygv3g96e4eqdf8r99j" />
  <Association Identifier=".url" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" ApplyOnUpgrade="true" />
  <Association Identifier=".website" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" ApplyOnUpgrade="true" />
  <Association Identifier="http" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXehk712w0hx4w5b8k25kg808a9h84jamg" />
  <Association Identifier="https" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXz8ws88f5y0y5nyrw1b3pj7xtm779tj2t" />
  <Association Identifier="mailto" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" ApplyOnUpgrade="true" />
  <Association Identifier="microsoft-edge" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" ApplyOnUpgrade="true"/>
  <Association Identifier="microsoft-edge-holographic" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" ApplyOnUpgrade="true"/>
  <Association Identifier="ms-xbl-3d8b930f" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" ApplyOnUpgrade="true"/>
  <Association Identifier=".3fr" ProgId="ImageGlass.AssocFile.3FR" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".ari" ProgId="ImageGlass.AssocFile.ARI" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".arw" ProgId="ImageGlass.AssocFile.ARW" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".b64" ProgId="ImageGlass.AssocFile.B64" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".bay" ProgId="ImageGlass.AssocFile.BAY" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".bmp" ProgId="ImageGlass.AssocFile.BMP" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype;Paint.Picture" />
  <Association Identifier=".cap" ProgId="ImageGlass.AssocFile.CAP" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".cr2" ProgId="ImageGlass.AssocFile.CR2" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".crw" ProgId="ImageGlass.AssocFile.CRW" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".cur" ProgId="ImageGlass.AssocFile.CUR" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".cut" ProgId="ImageGlass.AssocFile.CUT" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".dcr" ProgId="ImageGlass.AssocFile.DCR" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".dcs" ProgId="ImageGlass.AssocFile.DCS" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".dds" ProgId="ImageGlass.AssocFile.DDS" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".dib" ProgId="ImageGlass.AssocFile.DIB" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype;Paint.Picture" />
  <Association Identifier=".dng" ProgId="ImageGlass.AssocFile.DNG" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".drf" ProgId="ImageGlass.AssocFile.DRF" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".eip" ProgId="ImageGlass.AssocFile.EIP" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".emf" ProgId="ImageGlass.AssocFile.EMF" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".erf" ProgId="ImageGlass.AssocFile.ERF" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".exif" ProgId="ImageGlass.AssocFile.EXIF" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".exr" ProgId="ImageGlass.AssocFile.EXR" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".fff" ProgId="ImageGlass.AssocFile.FFF" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".gif" ProgId="ImageGlass.AssocFile.GIF" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype;giffile" />
  <Association Identifier=".gpr" ProgId="ImageGlass.AssocFile.GPR" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".hdr" ProgId="ImageGlass.AssocFile.HDR" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".heic" ProgId="ImageGlass.AssocFile.HEIC" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".ico" ProgId="ImageGlass.AssocFile.ICO" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".iiq" ProgId="ImageGlass.AssocFile.IIQ" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".jfif" ProgId="ImageGlass.AssocFile.JFIF" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype;pjpegfile" />
  <Association Identifier=".jpe" ProgId="ImageGlass.AssocFile.JPE" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype;jpegfile" />
  <Association Identifier=".jpeg" ProgId="ImageGlass.AssocFile.JPEG" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype;jpegfile" />
  <Association Identifier=".jpg" ProgId="ImageGlass.AssocFile.JPG" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype;jpegfile" />
  <Association Identifier=".jxr" ProgId="ImageGlass.AssocFile.JXR" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype;wdpfile" />
  <Association Identifier=".k25" ProgId="ImageGlass.AssocFile.K25" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".kdc" ProgId="ImageGlass.AssocFile.KDC" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".mdc" ProgId="ImageGlass.AssocFile.MDC" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".mef" ProgId="ImageGlass.AssocFile.MEF" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".mos" ProgId="ImageGlass.AssocFile.MOS" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".mrw" ProgId="ImageGlass.AssocFile.MRW" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".nef" ProgId="ImageGlass.AssocFile.NEF" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".nrw" ProgId="ImageGlass.AssocFile.NRW" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".obm" ProgId="ImageGlass.AssocFile.OBM" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".orf" ProgId="ImageGlass.AssocFile.ORF" ApplicationName="ImageGlass" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".pbm" ProgId="ImageGlass.AssocFile.PBM" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".pcx" ProgId="ImageGlass.AssocFile.PCX" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".pef" ProgId="ImageGlass.AssocFile.PEF" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".pgm" ProgId="ImageGlass.AssocFile.PGM" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".png" ProgId="ImageGlass.AssocFile.PNG" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype;pngfile" />
  <Association Identifier=".ppm" ProgId="ImageGlass.AssocFile.PPM" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".psb" ProgId="ImageGlass.AssocFile.PSB" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".psd" ProgId="ImageGlass.AssocFile.PSD" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".ptx" ProgId="ImageGlass.AssocFile.PTX" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".pxn" ProgId="ImageGlass.AssocFile.PXN" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".r3d" ProgId="ImageGlass.AssocFile.R3D" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".raf" ProgId="ImageGlass.AssocFile.RAF" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".raw" ProgId="ImageGlass.AssocFile.RAW" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".rw2" ProgId="ImageGlass.AssocFile.RW2" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".rwl" ProgId="ImageGlass.AssocFile.RWL" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".rwz" ProgId="ImageGlass.AssocFile.RWZ" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".sr2" ProgId="ImageGlass.AssocFile.SR2" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".srf" ProgId="ImageGlass.AssocFile.SRF" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".srw" ProgId="ImageGlass.AssocFile.SRW" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".svg" ProgId="ImageGlass.AssocFile.SVG" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".tga" ProgId="ImageGlass.AssocFile.TGA" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".tif" ProgId="ImageGlass.AssocFile.TIF" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX86746z2101ayy2ygv3g96e4eqdf8r99j;AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;TIFImage.Document" />
  <Association Identifier=".tiff" ProgId="ImageGlass.AssocFile.TIFF" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX86746z2101ayy2ygv3g96e4eqdf8r99j;AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;TIFImage.Document" />
  <Association Identifier=".wdp" ProgId="ImageGlass.AssocFile.WDP" ApplicationName="ImageGlass" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppX9vdwcvrwnbettpahnt26jswq0n8hgyah;Paint.Paint;Microsoft.PhotoManager.imagetype" />
  <Association Identifier=".webp" ProgId="ImageGlass.AssocFile.WEBP" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".wmf" ProgId="ImageGlass.AssocFile.WMF" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".wpg" ProgId="ImageGlass.AssocFile.WPG" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".x3f" ProgId="ImageGlass.AssocFile.X3F" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".xbm" ProgId="ImageGlass.AssocFile.XBM" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".xpm" ProgId="ImageGlass.AssocFile.XPM" ApplicationName="ImageGlass" ApplyOnUpgrade="true"/>
  <Association Identifier=".3g2" ProgId="VLC.3G2" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt;WMP11.AssocFile.3G2" />
  <Association Identifier=".3gp" ProgId="VLC.3GP" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt;WMP11.AssocFile.3GP" />
  <Association Identifier=".3gp2" ProgId="VLC.3GP2" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="WMP11.AssocFile.3G2" />
  <Association Identifier=".3gpp" ProgId="VLC.3GPP" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt;WMP11.AssocFile.3GP" />
  <Association Identifier=".aac" ProgId="VLC.AAC" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".ac3" ProgId="VLC.AC3" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".adt" ProgId="VLC.ADT" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".adts" ProgId="VLC.ADTS" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".aiff" ProgId="VLC.AIFF" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".amr" ProgId="VLC.AMR" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".asf" ProgId="VLC.ASF" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".ASS" ProgId="VLC.ASS" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".asx" ProgId="VLC.ASX" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".avi" ProgId="VLC.AVI" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt;WMP11.AssocFile.AVI" />
  <Association Identifier=".CDA" ProgId="VLC.CDA" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".ec3" ProgId="VLC.EC3" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".flac" ProgId="VLC.FLAC" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".idx" ProgId="VLC.IDX" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".m1v" ProgId="VLC.M1V" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".m2t" ProgId="VLC.M2T" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="WMP11.AssocFile.M2TS" />
  <Association Identifier=".m2ts" ProgId="VLC.M2TS" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="WMP11.AssocFile.M2TS" />
  <Association Identifier=".m3u" ProgId="VLC.M3U" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".m4a" ProgId="VLC.M4A" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".M4P" ProgId="VLC.M4P" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".m4r" ProgId="VLC.M4R" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".m4v" ProgId="VLC.M4V" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt;WMP11.AssocFile.MP4"/>
  <Association Identifier=".mka" ProgId="VLC.MKA" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".mkv" ProgId="VLC.MKV" ApplicationName="VLC media player" ApplyOnUpgrade="true"  OverwriteIfProgIdIs="WMP11.AssocFile.MKV"/>
  <Association Identifier=".mod" ProgId="VLC.MOD" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="WMP11.AssocFile.MPEG" />
  <Association Identifier=".mov" ProgId="VLC.MOV" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt;WMP11.AssocFile.MOV" />
  <Association Identifier=".MP2" ProgId="VLC.MP2" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".mp2v" ProgId="VLC.MP2V" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".mp3" ProgId="VLC.MP3" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".mp4" ProgId="VLC.MP4" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt;WMP11.AssocFile.MP4" />
  <Association Identifier=".mp4v" ProgId="VLC.MP4V" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt;WMP11.AssocFile.MP4" />
  <Association Identifier=".mpa" ProgId="VLC.MPA" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".MPE" ProgId="VLC.MPE" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="WMP11.AssocFile.MPEG" />
  <Association Identifier=".mpeg" ProgId="VLC.MPEG" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="WMP11.AssocFile.MPEG" />
  <Association Identifier=".mpg" ProgId="VLC.MPG" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="WMP11.AssocFile.MPEG" />
  <Association Identifier=".mpv2" ProgId="VLC.MPV2" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="WMP11.AssocFile.MPEG" />
  <Association Identifier=".mts" ProgId="VLC.MTS" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="WMP11.AssocFile.M2TS" />
  <Association Identifier=".oga" ProgId="VLC.OGA" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".ogg" ProgId="VLC.OGG" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".ogm" ProgId="VLC.OGM" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".ogv" ProgId="VLC.OGV" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".ogx" ProgId="VLC.OGX" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".opus" ProgId="VLC.OPUS" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".QT" ProgId="VLC.QT" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".RA" ProgId="VLC.RA" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".RAM" ProgId="VLC.RAM" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".SRT" ProgId="VLC.SRT" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".SSA" ProgId="VLC.SSA" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".SUB" ProgId="VLC.SUB" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".tod" ProgId="VLC.TOD" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".TS" ProgId="VLC.TS" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="WMP11.AssocFile.TTS" />
  <Association Identifier=".TTML" ProgId="VLC.TTML" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".TTS" ProgId="VLC.TTS" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="WMP11.AssocFile.TTS" />
  <Association Identifier=".VTT" ProgId="VLC.VTT" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".wav" ProgId="VLC.WAV" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".wax" ProgId="VLC.WAX" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".webm" ProgId="VLC.WEBM" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".wm" ProgId="VLC.WM" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt;WMP11.AssocFile.ASF" />
  <Association Identifier=".wma" ProgId="VLC.WMA" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".wmv" ProgId="VLC.WMV" ApplicationName="VLC media player" ApplyOnUpgrade="true" OverwriteIfProgIdIs="AppXhjhjmgrfm2d7rd026az898dy2p1pcsyt;WMP11.AssocFile.WMV" />
  <Association Identifier=".wmx" ProgId="VLC.WMX" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".WPL" ProgId="VLC.WPL" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".wvx" ProgId="VLC.WVX" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".xvid" ProgId="VLC.XVID" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier=".zpl" ProgId="VLC.ZPL" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier="mswindowsmusic" ProgId="VLC.NUL" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
  <Association Identifier="mswindowsvideo" ProgId="VLC.NUL" ApplicationName="VLC media player" ApplyOnUpgrade="true" />
</DefaultAssociations>
d2phap commented 4 years ago

@xekon Honestly, I don't know how to set it as default app automatically, also open for contribution :)

Jieiku commented 4 years ago

Woa, actually If you use the above OEMDefaultAssociations.xml then it DOES become the default photo viewer application. Initially I only set some extensions, but since adding the remaining ones a clean install of windows is now showing ImageGlass as the default photo viewer!

d2phap commented 4 years ago

Thanks @xekon for the information!