Windows Photo Viewer on Windows 11 24H2

jlsupremo

Member
Messages
42
Reaction score
4
I really want to be able to use the old Windows photo manager again to view image files, but I have already run several different .reg files found here on the forum or on the internet, and I have already run the parameters:
<Tweak name=".jpg\PhotoViewer.FileAssoc.Tiff">PhotoViewer.FileAssoc.Tiff</Tweak>
<Tweak name=".jpeg\PhotoViewer.FileAssoc.Tiff">PhotoViewer.FileAssoc.Tiff</Tweak>
<Tweak name=".png\PhotoViewer.FileAssoc.Tiff">PhotoViewer.FileAssoc.Tiff</Tweak>
<Tweak name=".bmp\PhotoViewer.FileAssoc.Tiff">PhotoViewer.FileAssoc.Tiff</Tweak>
<Tweak name=".gif\PhotoViewer.FileAssoc.Tiff">PhotoViewer.FileAssoc.Tiff</Tweak>
<Tweak name=".tiff\PhotoViewer.FileAssoc.Tiff">PhotoViewer.FileAssoc.Tiff</Tweak>
but none of them work on Windows 11 24H2, does anyone know how to do it?
 
I use the option in NTLite and it's good (Settings - Explorer - Restore Windows Photo Viewer)

Afterwards, you have to do it manually for each extension, so that it is the default program
Or use a "tweak", etc... I haven't seen a native option like with W10 (I believe) to have this program as default for image extensions
But didn't look for more than that either
 
Last edited:
I use the option in NTLite and it's good (Settings - Explorer - Restore Windows Photo Viewer)

That's an incomplete solution. NTLite only restores Photo Viewer for .jpg filenames (and not .jpeg):
Code:
                        <TweakGroup name="Explorer">
                                <Tweak name=".jpg\PhotoViewer.FileAssoc.Tiff">PhotoViewer.FileAssoc.Tiff</Tweak>
                        </TweakGroup

Afterwards, you have to do it manually for each extension, so that it is the default program
Or use a "tweak", etc... I haven't seen a native option like with W10 (I believe) to have this program as default for image extensions
But didn't look for more than that either
cristhian2k47 shared a complete solution here:
Restore Windows Photo Viewer with File Associations [Windows 10/11]

But I would use this OEMDefaultAssociations.xml instead of his version, to avoid breaking the original set of File Type Associations. The XML file replaces all FTA's, so it's important keep the other defaults at the same time.
 

Attachments

That's an incomplete solution. NTLite only restores Photo Viewer for .jpg filenames (and not .jpeg):
Code:
                        <TweakGroup name="Explorer">
                                <Tweak name=".jpg\PhotoViewer.FileAssoc.Tiff">PhotoViewer.FileAssoc.Tiff</Tweak>
                        </TweakGroup


cristhian2k47 shared a complete solution here:
Restore Windows Photo Viewer with File Associations [Windows 10/11]

But I would use this OEMDefaultAssociations.xml instead of his version, to avoid breaking the original set of File Type Associations. The XML file replaces all FTA's, so it's important keep the other defaults at the same time.
Unfortunately I've already done all of this, even using photoviewerassoc.reg from cristhian2k47's solution, on Windows 11 24H2 it doesn't work.
 
Just with the NTLite option, I have Photo Viewer offered for all image extensions
By default, no default program, if I remember correctly (with the Photo app removed)

Then to apply to all the extensions I want (for images and all other extensions)
I use the commands /Export-DefaultAppAssociations to save to a file and /Import-DefaultAppAssociations to apply in the image
And everything works great

jlsupremo And when you search for the app manually, you can't find it?

View attachment 12951
 
Só com a opção NTLite, tenho o Photo Viewer oferecido para todas as extensões de imagem
Por padrão, nenhum programa padrão, se bem me lembro (com o aplicativo Fotos removido)

Depois aplicar em todas as extensões que eu quiser (para imagens e todas as outras extensões)
Eu uso os comandos /Export-DefaultAppAssociations para salvar em um arquivo e /Import-DefaultAppAssociations para aplicar na imagem
E tudo funciona muito bem

jlsupremo E quando você procura o aplicativo manualmente, não consegue encontrá-lo?

View attachment 12951
Yes, it appears in Windows if I link it manually, but I want to create .iso images with the old photo viewer as the default for the most important photo extensions.

I apologize, but can you explain to me how to do /Export-DefaultAppAssociations and /Import-DefaultAppAssociations , I haven't tested that, where do I do this in Ntlite?
 
DISM /Import-DefaultAppAssociations creates the OEMDefaultAssociations.xml file on the image.
Which is what cristhian2k47 is doing in the first place.
 
On the other hand, the option to restore the viewer is not saved in the image (default option after installation)
Maybe nuhi has fixed this since, I haven't checked, it's still in my Online preset (and not in Offline)

For the commands, I use this (option not present in NTLite) :
Code:
To export : Dism.exe /Online /Export-DefaultAppAssociations:"D:\M11W\AppAssociations.xml"
To apply in image : Dism.exe /Image:D:\M11W\Mount /Import-DefaultAppAssociations:D:\M11W\AppAssociations.xml
With in mounted image for "import"
 
Last edited:
In regedit I found where to change it, but it is protected and it is not possible to make changes, I believe because of this HASH

[HKEY_USERS\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\UserChoice]
"ProgId"="AppX4mntx4h978m1v9gtzv0ewksfd6pmwsre"
"Hash"="xxxxxxxxxxxxxxxx"

[HKEY_USERS\xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\UserChoice]
"ProgId"="PhotoViewer.FileAssoc.Tiff"
"Hash"="xxxxxxxxxxxxxxxx"
 
You have the same keys here : HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts
I can modified them

For me :
Code:
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\OpenWithList]

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\OpenWithProgids]
"Paint.Picture"=hex(0):
"PhotoViewer.FileAssoc.Tiff"=hex(0):

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.bmp\UserChoice]
"ProgId"="PhotoViewer.FileAssoc.Tiff"
"Hash"="duhzVaOfobA="
 
On the other hand, the option to restore the viewer is not saved in the image (default option after installation)
Maybe nuhi has fixed this since, I haven't checked, it's still in my Online preset (and not in Offline)

For the commands, I use this (option not present in NTLite) :
Code:
To export : Dism.exe /Online /Export-DefaultAppAssociations:"D:\M11W\AppAssociations.xml"
To apply in image : Dism.exe /Image:D:\M11W\Mount /Import-DefaultAppAssociations:D:\M11W\AppAssociations.xml
With in mounted image for "import"
I don't know if the command could be wrong, but even with DISM 24H2 doesn't change the program or the XML is wrong.

Dism /Online /Import-DefaultAppAssociations:C:\OEMDefaultAssociations.xml
 

Attachments

Tested now and I have this
Code:
Microsoft Windows [version 10.0.26100.1742]
(c) Microsoft Corporation. Tous droits réservés.

C:\Users\tistou>Dism.exe /Online /Export-DefaultAppAssociations:"C:\Users\tistou\Desktop\AppAssociations.xml"

Outil Gestion et maintenance des images de déploiement
Version : 10.0.26100.1150

Version de l’image : 10.0.26100.1742

L’opération a réussi.

C:\Users\tistou>

<?xml version="1.0" encoding="UTF-8"?>
<DefaultAssociations>
<Association Identifier=".3g2" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".3gp" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".3gp2" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".3gpp" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".aac" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".ac3" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".adt" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".adts" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".amr" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".asf" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".avi" ProgId="Winamp.File.AVI" ApplicationName="Winamp" />
<Association Identifier=".bmp" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Visionneuse de photos Windows" />
<Association Identifier=".cab" ProgId="WinRAR" ApplicationName="WinRAR" />
<Association Identifier=".divx" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".ec3" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".emf" ProgId="AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj" ApplicationName="Paint" />
<Association Identifier=".flac" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".gif" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Visionneuse de photos Windows" />
<Association Identifier=".ico" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Visionneuse de photos Windows" />
<Association Identifier=".inf" ProgId="AppXzwr976v2e060wada4gabrk1x69h2dbwy" ApplicationName="Bloc-notes" />
<Association Identifier=".ini" ProgId="AppXhk4des8gf2xat3wtyzc5q06ny78jhkqx" ApplicationName="Bloc-notes" />
<Association Identifier=".jpeg" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Visionneuse de photos Windows" />
<Association Identifier=".jpg" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Visionneuse de photos Windows" />
<Association Identifier=".log" ProgId="AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw" ApplicationName="Bloc-notes" />
<Association Identifier=".m1v" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".m2t" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".m2ts" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".m2v" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".m3u" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".m4a" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".m4r" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".m4v" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".mka" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".mkv" ProgId="Winamp.File.MKV" ApplicationName="Winamp" />
<Association Identifier=".mod" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".mov" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".mp2v" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".mp3" ProgId="Winamp.File.MP3" ApplicationName="Winamp" />
<Association Identifier=".mp4" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".mp4v" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".mpa" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".mpe" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".mpeg" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".mpg" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".mpv2" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".mts" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".oga" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".ogg" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".ogm" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".ogv" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".ogx" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".opus" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".png" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Visionneuse de photos Windows" />
<Association Identifier=".ps1" ProgId="AppXxf01pj590w7z9mxmyv3nx0a9ewj3e51g" ApplicationName="Bloc-notes" />
<Association Identifier=".psd1" ProgId="AppXc9vj55m1n3559gcjff0scsqeket80zp7" ApplicationName="Bloc-notes" />
<Association Identifier=".psm1" ProgId="AppX1b0e9ytcwx0wcmvkdey0h6af04t1ta3z" ApplicationName="Bloc-notes" />
<Association Identifier=".rar" ProgId="WinRAR" ApplicationName="WinRAR" />
<Association Identifier=".rle" ProgId="AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj" ApplicationName="Paint" />
<Association Identifier=".scp" ProgId="AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw" ApplicationName="Bloc-notes" />
<Association Identifier=".tif" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Visionneuse de photos Windows" />
<Association Identifier=".tiff" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Visionneuse de photos Windows" />
<Association Identifier=".tod" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".ts" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".tts" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".txt" ProgId="AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw" ApplicationName="Bloc-notes" />
<Association Identifier=".url" ProgId="InternetShortcut" ApplicationName="Navigateur Internet" />
<Association Identifier=".wav" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".webm" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".wm" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".wma" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".wmf" ProgId="AppXcesbfs704v2mjbts9dkr42s9vmrhxbkj" ApplicationName="Paint" />
<Association Identifier=".wmv" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".WPL" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".wtx" ProgId="AppX4ztfk9wxr86nxmzzq47px0nh0e58b8fw" ApplicationName="Bloc-notes" />
<Association Identifier=".xml" ProgId="xmlfile" ApplicationName="Microsoft Edge" />
<Association Identifier=".xvid" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier=".zip" ProgId="WinRAR.ZIP" ApplicationName="WinRAR" />
<Association Identifier=".zpl" ProgId="AppXqj98qxeaynz6dv4459ayz6bnqxbyaqcs" ApplicationName="Lecteur multimédia" />
<Association Identifier="mswindowsmusic" ProgId="AppXtggqqtcfspt6ks3fjzyfppwc05yxwtwy" ApplicationName="Lecteur multimédia" />
</DefaultAssociations>
You are missing the line
Code:
<?xml version="1.0" encoding="UTF-8"?>
 
Tested now and I have this

You are missing the line
Code:
<?xml version="1.0" encoding="UTF-8"?>
Sorry, I just checked that this line is correct in the first line of the file, and DISM does not give an error and runs correctly.
<?xml version="1.0" encoding="UTF-8"?>
<DefaultAssociations>
<Association Identifier=".bmp" ProgId="PhotoViewer.FileAssoc.Bitmap" ApplicationName="Windows Photo Viewer" />
<Association Identifier=".gif" ProgId="PhotoViewer.FileAssoc.Gif" ApplicationName="Windows Photo Viewer" />
<Association Identifier=".ico" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Windows Photo Viewer" />
<Association Identifier=".jfif" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Windows Photo Viewer" />
<Association Identifier=".jpe" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Windows Photo Viewer" />
<Association Identifier=".jpeg" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Windows Photo Viewer" />
<Association Identifier=".jpg" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Windows Photo Viewer" />
<Association Identifier=".png" ProgId="PhotoViewer.FileAssoc.Tiff" ApplicationName="Windows Photo Viewer" />
</DefaultAssociations>


Ferramenta de Gerenciamento e Manutenção de Imagens de Implantação
Versão: 10.0.26100.1150

Versão da Imagem: 10.0.26100.1882

A operação foi concluída com êxito.
 
You mean there is no error when you apply the XML to the image, but when you install Windows, the default programs are not present (those of the XML)?

You can try to use the NTLite option to restore the Viewer in Online (or check that this option is activated in NTLite)
For me, everything works
 
I don't know if the command could be wrong, but even with DISM 24H2 doesn't change the program or the XML is wrong.

Dism /Online /Import-DefaultAppAssociations:C:\OEMDefaultAssociations.xml
DISM /Import-DefaultAppAssociations doesn't work for a live system, it's intended for a clean install. You current user profile's settings won't be updated by this command.

1. Load your image.
2. From Registry, load photoviewerassoc.reg
3. From Post-Setup (Before logon), Add / File -> OEMDefaultAssociations.xml
4. Change the added file's Destination to "\Windows\System32"

View attachment 12953


View attachment 12954
 

Attachments

That's an incomplete solution. NTLite only restores Photo Viewer for .jpg filenames (and not .jpeg):
Code:
                        <TweakGroup name="Explorer">
                                <Tweak name=".jpg\PhotoViewer.FileAssoc.Tiff">PhotoViewer.FileAssoc.Tiff</Tweak>
                        </TweakGroup
I didn't see, so for info, NTLite applies the same thing as the photoviewerassoc.reg file for extensions, from what nuhi told me

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Photo Viewer\Capabilities\FileAssociations]
".bmp"="PhotoViewer.FileAssoc.Tiff"
".dib"="PhotoViewer.FileAssoc.Tiff"
".gif"="PhotoViewer.FileAssoc.Tiff"
".jfif"="PhotoViewer.FileAssoc.Tiff"
".jpe"="PhotoViewer.FileAssoc.Tiff"
".jpeg"="PhotoViewer.FileAssoc.Tiff"
".jpg"="PhotoViewer.FileAssoc.Tiff"
".jxr"="PhotoViewer.FileAssoc.Tiff"
".png"="PhotoViewer.FileAssoc.Tiff"
".tif"="PhotoViewer.FileAssoc.Tiff"
".tiff"="PhotoViewer.FileAssoc.Tiff"
".wdp"="PhotoViewer.FileAssoc.Tiff"
Just .cr2 and .ico were missing (will be added soon)
 
Thanks. I checked the updated image after applying the Settings change, and you're right that most of the missing reg keys and OEMDefaultAssociations are restored. I'll update the other thread to simply use the built-in feature.
 
Back
Top