VLC Windows 7 file association issue + fix
Posted: 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):
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):