VLC Windows 7 file association issue + fix

Feature requests for VLC.
zachdms
New Cone
New Cone
Posts: 6
Joined: 04 Jan 2008 05:25

VLC Windows 7 file association issue + fix

Postby zachdms » 13 May 2009 03:12

Since VLC is never guaranteed to be admin, the current file association dialogs don't always work - especially on Vista and Windows 7 due to UAC. It might be good to pop an error when the file association code gets access denied, or when the user is not an admin?

It would also be easily possible for VLC to register for the built-in "Open With" (also used in the "Default Programs:Associate a File Type" tool) and "Default Programs:Set your default programs" tools using the following registry settings I cobbled together based upon VLC 0.9.9. I did this as a favor for a friend who particularly likes you all - I hope you find it helpful. It should be relatively self-explanatory, but if you have questions let me know.

Note that these registry keys can be added on any version of Win32 - they're simply only used on Windows Vista and Windows 7.

Cheers,
-Zach
speaking for myself only

===VLC: Set your default programs support keys===
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\RegisteredApplications]
"VLC"="Software\\Clients\\Media\\VLC\\Capabilities"

[HKEY_LOCAL_MACHINE\Software\Clients\Media\VLC\Capabilities]
"ApplicationName"="VideoLAN Client"
"ApplicationDescription"="VLC media player"

[HKEY_LOCAL_MACHINE\Software\Clients\Media\VLC\Capabilities\FileAssociations]
".a52"="VLC.a52"
".aac"="VLC.aac"
".ac3"="VLC.ac3"
".asf"="VLC.asf"
".asx"="VLC.asx"
".avi"="VLC.avi"
".b4s"="VLC.b4s"
".bin"="VLC.bin"
".cue"="VLC.cue"
".divx"="VLC.divx"
".dts"="VLC.dts"
".dv"="VLC.dv"
".flac"="VLC.flac"
".flv"="VLC.flv"
".gxf"="VLC.gxf"
".m1v"="VLC.m1v"
".m2ts"="VLC.m2ts"
".m2v"="VLC.m2v"
".m3u"="VLC.m3u"
".m4a"="VLC.m4a"
".m4p"="VLC.m4p"
".m4v"="VLC.m4v"
".mka"="VLC.mka"
".mkv"="VLC.mkv"
".mod"="VLC.mod"
".mov"="VLC.mov"
".mp1"="VLC.mp1"
".mp2"="VLC.mp2"
".mp3"="VLC.mp3"
".mp4"="VLC.mp4"
".mpeg"="VLC.mpeg"
".mpeg1"="VLC.mpeg1"
".mpeg2"="VLC.mpeg2"
".mpeg4"="VLC.mpeg4"
".mpg"="VLC.mpg"
".mts"="VLC.mts"
".mxf"="VLC.mxf"
".oga"="VLC.oga"
".ogg"="VLC.ogg"
".ogm"="VLC.ogm"
".ogv"="VLC.ogv"
".ogx"="VLC.ogx"
".oma"="VLC.oma"
".pls"="VLC.pls"
".spx"="VLC.spx"
".ts"="VLC.ts"
".vlc"="VLC.vlc"
".vob"="VLC.vob"
".wav"="VLC.wav"
".wma"="VLC.wma"
".wmv"="VLC.wmv"
".xm"="VLC.xm"
".xspf"="VLC.xspf"



===VLC Open With support===
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.a52\OpenWithProgIds]
"VLC.a52"=hex(0):

[HKEY_CLASSES_ROOT\.AAC\OpenWithProgIds]
"VLC.aac"=hex(0):

[HKEY_CLASSES_ROOT\.ac3\OpenWithProgIds]
"VLC.ac3"=hex(0):

[HKEY_CLASSES_ROOT\.asf\OpenWithProgIds]
"VLC.asf"=hex(0):

[HKEY_CLASSES_ROOT\.asx\OpenWithProgIds]
"VLC.asx"=hex(0):

[HKEY_CLASSES_ROOT\.avi\OpenWithProgIds]
"VLC.avi"=hex(0):

[HKEY_CLASSES_ROOT\.B4S\OpenWithProgIds]
"VLC.b4s"=hex(0):

[HKEY_CLASSES_ROOT\.bin\OpenWithProgIds]
"VLC.bin"=hex(0):

[HKEY_CLASSES_ROOT\.cue\OpenWithProgIds]
"VLC.cue"=hex(0):

[HKEY_CLASSES_ROOT\.divx\OpenWithProgIds]
"VLC.divx"=hex(0):

[HKEY_CLASSES_ROOT\.dts\OpenWithProgIds]
"VLC.dts"=hex(0):

[HKEY_CLASSES_ROOT\.dv\OpenWithProgIds]
"VLC.dv"=hex(0):

[HKEY_CLASSES_ROOT\.FLAC\OpenWithProgIds]
"VLC.flac"=hex(0):

[HKEY_CLASSES_ROOT\.FLV\OpenWithProgIds]
"VLC.flv"=hex(0):

[HKEY_CLASSES_ROOT\.gxf\OpenWithProgIds]
"VLC.gxf"=hex(0):

[HKEY_CLASSES_ROOT\.m1v\OpenWithProgIds]
"VLC.m1v"=hex(0):

[HKEY_CLASSES_ROOT\.m2ts\OpenWithProgIds]
"VLC.m2ts"=hex(0):

[HKEY_CLASSES_ROOT\.m2v\OpenWithProgIds]
"VLC.m2v"=hex(0):

[HKEY_CLASSES_ROOT\.m3u\OpenWithProgIds]
"VLC.m3u"=hex(0):

[HKEY_CLASSES_ROOT\.m4a\OpenWithProgIds]
"VLC.m4a"=hex(0):

[HKEY_CLASSES_ROOT\.m4p\OpenWithProgIds]
"VLC.m4p"=hex(0):

[HKEY_CLASSES_ROOT\.m4v\OpenWithProgIds]
"VLC.m4v"=hex(0):

[HKEY_CLASSES_ROOT\.mka\OpenWithProgIds]
"VLC.mka"=hex(0):

[HKEY_CLASSES_ROOT\.mkv\OpenWithProgIds]
"VLC.mkv"=hex(0):

[HKEY_CLASSES_ROOT\.mod\OpenWithProgIds]
"VLC.mod"=hex(0):

[HKEY_CLASSES_ROOT\.mov\OpenWithProgIds]
"VLC.mov"=hex(0):

[HKEY_CLASSES_ROOT\.MP1\OpenWithProgIds]
"VLC.mp1"=hex(0):

[HKEY_CLASSES_ROOT\.mp2\OpenWithProgIds]
"VLC.mp2"=hex(0):

[HKEY_CLASSES_ROOT\.mp3\OpenWithProgIds]
"VLC.mp3"=hex(0):

[HKEY_CLASSES_ROOT\.mp4\OpenWithProgIds]
"VLC.mp4"=hex(0):

[HKEY_CLASSES_ROOT\.mpeg\OpenWithProgIds]
"VLC.mpeg"=hex(0):

[HKEY_CLASSES_ROOT\.mpeg1\OpenWithProgIds]
"VLC.mpeg1"=hex(0):

[HKEY_CLASSES_ROOT\.mpeg2\OpenWithProgIds]
"VLC.mpeg2"=hex(0):

[HKEY_CLASSES_ROOT\.mpeg4\OpenWithProgIds]
"VLC.mpeg4"=hex(0):

[HKEY_CLASSES_ROOT\.mpg\OpenWithProgIds]
"VLC.mpg"=hex(0):

[HKEY_CLASSES_ROOT\.mts\OpenWithProgIds]
"VLC.mts"=hex(0):

[HKEY_CLASSES_ROOT\.mxf\OpenWithProgIds]
"VLC.mxf"=hex(0):

[HKEY_CLASSES_ROOT\.oga\OpenWithProgIds]
"VLC.oga"=hex(0):

[HKEY_CLASSES_ROOT\.OGG\OpenWithProgIds]
"VLC.ogg"=hex(0):

[HKEY_CLASSES_ROOT\.ogm\OpenWithProgIds]
"VLC.ogm"=hex(0):

[HKEY_CLASSES_ROOT\.ogv\OpenWithProgIds]
"VLC.ogv"=hex(0):

[HKEY_CLASSES_ROOT\.ogx\OpenWithProgIds]
"VLC.ogx"=hex(0):

[HKEY_CLASSES_ROOT\.oma\OpenWithProgIds]
"VLC.oma"=hex(0):

[HKEY_CLASSES_ROOT\.pls\OpenWithProgIds]
"VLC.pls"=hex(0):

[HKEY_CLASSES_ROOT\.spx\OpenWithProgIds]
"VLC.spx"=hex(0):

[HKEY_CLASSES_ROOT\.ts\OpenWithProgIds]
"VLC.ts"=hex(0):

[HKEY_CLASSES_ROOT\.vlc\OpenWithProgIds]
"VLC.vlc"=hex(0):

[HKEY_CLASSES_ROOT\.vob\OpenWithProgIds]
"VLC.vob"=hex(0):

[HKEY_CLASSES_ROOT\.wav\OpenWithProgIds]
"VLC.wav"=hex(0):

[HKEY_CLASSES_ROOT\.wma\OpenWithProgIds]
"VLC.wma"=hex(0):

[HKEY_CLASSES_ROOT\.wmv\OpenWithProgIds]
"VLC.wmv"=hex(0):

[HKEY_CLASSES_ROOT\.xm\OpenWithProgIds]
"VLC.xm"=hex(0):

[HKEY_CLASSES_ROOT\.xspf\OpenWithProgIds]
"VLC.xspf"=hex(0):

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC Windows 7 file association issue + fix

Postby Jean-Baptiste Kempf » 13 May 2009 09:22

Please provide a patch against the install script!
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

zachdms
New Cone
New Cone
Posts: 6
Joined: 04 Jan 2008 05:25

Re: VLC Windows 7 file association issue + fix

Postby zachdms » 14 May 2009 22:28

Sorry, I can't do that. I *can* provide advice and insight, but that's about as far as I can go. :)

It should be pretty easy for anyone to wire this up.

heat84
Blank Cone
Blank Cone
Posts: 25
Joined: 25 Jul 2007 08:51
Operating System: Windows 7

Re: VLC Windows 7 file association issue + fix

Postby heat84 » 01 Jun 2009 13:22

Its not working for me. Maybe because I'm running the 64 bit version of Windows 7? I can't imagine why that would make a difference though.

I assume I'm supposed to copy everything into a text file (or 2) and change the extension(s) to .reg? I did that and it said successfully imported into registry but it didn't take.


Edit:I checked the registry and the second part (===VLC Open With support===) is in there but not the first part. I have each part in seperate .reg files. I guess I could've put them in one if I deleted ===VLC Open With support=== and the second Windows Registry Editor Version 5.00

Edit2: I logged in as Administrator and the first part was added to the registry but the associations are only acknowledged in Administrator mode. When I switch back to normal user mode, everything is still associated with WMP. I guess I'll try rebooting. Seems too stupid work but who knows.

Edit3: Nope rebooting didn't work. Something to do with UAC I guess. I loathe its Linux counterpart (SELinux) so I can't imagine liking it. Well, I hate parts of it anyway.

DGMurdockIII
Big Cone-huna
Big Cone-huna
Posts: 534
Joined: 14 Sep 2006 16:46
VLC version: y
Operating System: windows 10 64bit Pro
Contact:

Re: VLC Windows 7 file association issue + fix

Postby DGMurdockIII » 13 Jun 2009 06:18

ok

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: VLC Windows 7 file association issue + fix

Postby VLC_help » 14 Jun 2009 14:30


FoolOfATook
New Cone
New Cone
Posts: 5
Joined: 29 Sep 2014 03:51
VLC version: 2.1.5
Operating System: Windows 7 x64 SP1

Re: VLC Windows 7 file association issue + fix

Postby FoolOfATook » 21 Jul 2015 03:22

Wow. You are a saviour.

FLAC never associated properly, not on install, and it didn't exist in "Set up associations" within the program. Not for 2.1.5 nor 2.1.0; possible bug with those versions, where this part of the code was somehow left out?

Anyways thanks for giving me VLC context menu options back for FLAC files :D (for future reference, W7x64, didn't have to close/restart anything)


Return to “VLC media player Feature Requests”

Who is online

Users browsing this forum: No registered users and 4 guests