Page 1 of 1

How to set VLC player as default app??

Posted: 04 Oct 2024 16:02
by Alekk
I am trying to make a script I can use to install VLC on new computers we are deploying. After running the script, I start ms-settings:defaultapps, and set all the default apps to what I prefer. However, only "Apps" show up in the list; I do not see a way to choose an installed program that's not an app.

I looked up how to add Windows Photo Viewer to the list, it turns out that was a simple registry entry

Code: Select all

[HKEY_CURRENT_USER\Software\Classes\.jpg] @="PhotoViewer.FileAssoc.Tiff"
Is there a simple way to add the VLC player to that list as well? I am really surprised setting VLC as a default player was not in the FAQ's...

Re: How to set VLC player as default app??

Posted: 09 Oct 2024 20:42
by Alekk
After a few days of research, I figured it out:

Code: Select all

Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\Software\Classes\ChromiumURL] @="Chromium Document" "FriendlyTypeName"="Media file" [HKEY_LOCAL_MACHINE\Software\Classes\ChromiumURL\shell] [HKEY_LOCAL_MACHINE\Software\Classes\ChromiumURL\shell\open] [HKEY_LOCAL_MACHINE\Software\Classes\ChromiumURL\shell\open\command] @="C:\\Progra~2\\VIDEOLAN\\VLC\\vlc.exe \"%1\"" [HKEY_LOCAL_MACHINE\SOFTWARE\Chromium\Capabilities] "ApplicationDescription"="VLC Media Player" "ApplicationIcon"="C:\\Progra~2\\VideoLAN\\VLC\\vlc.exe,0" "ApplicationName"="VLC" [HKEY_LOCAL_MACHINE\SOFTWARE\Chromium\Capabilities\FileAssociations] ".avi"="ChromiumURL" ".mov"="ChromiumURL" ".mp4"="ChromiumURL" ".mpg"="ChromiumURL" ".mpeg"="ChromiumURL" ".ogg"="ChromiumURL" ".3gp"="ChromiumURL" [HKEY_LOCAL_MACHINE\SOFTWARE\RegisteredApplications] "VideoLAN"="Software\\Chromium\\Capabilities"
After putting this into a .reg file and running it, I start ms-settings:defaultapps, and VLC media Player will appear in the list.
Not sure if it's the shortest way to do it, but it does work.