[vlc-devel] [PATCH] Add a context menu handler for .iso files

Dag Wieers dag at wieers.com
Mon Sep 26 22:33:33 CEST 2016


Various ISO file formats are natively supported by VideoLAN client.
So having a context-menu to play them directly is very useful and easier
than having to open them from VLC, or having to drag them to the GUI.
---
 extras/package/win32/msi/extensions.wxs |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/extras/package/win32/msi/extensions.wxs
b/extras/package/win32/msi/extensions.wxs
index d535679..8c2ee0e 100644
--- a/extras/package/win32/msi/extensions.wxs
+++ b/extras/package/win32/msi/extensions.wxs
@@ -807,6 +807,14 @@
                         <Verb Id='enqueue' Command='Enqueue in VLC media
player' TargetFile="vlc.exe" Argument="--started-from-file
--playlist-enqueue "%1"" />
                     </Extension>
                 </ProgId>
+                <RegistryValue Root="HKLM" Key="Software\Clients\Media\
VLC\Capabilities\FileAssociations" Name=".iso" Value="VLC.iso.Document"
Type="string" />
+                <RegistryValue Root="HKCR"
Key="Applications\vlc.exe\SupportedTypes"
Name=".iso" Value="" Type="string" />
+                <ProgId Id='VLC.iso.Document' Description='Video File'
Icon='vlc.ico' Advertise='no'>
+                    <Extension Id='iso'>
+                        <Verb Id='open' Command='Play with VLC media
player' TargetFile="vlc.exe" Argument="--started-from-file
--no-playlist-enqueue "%1"" />
+                        <Verb Id='enqueue' Command='Enqueue in VLC media
player' TargetFile="vlc.exe" Argument="--started-from-file
--playlist-enqueue "%1"" />
+                    </Extension>
+                </ProgId>
                 <RegistryValue Root="HKLM" Key="Software\Clients\Media\
VLC\Capabilities\FileAssociations" Name=".m3u" Value="VLC.m3u.Document"
Type="string" />
                 <RegistryValue Root="HKCR"
Key="Applications\vlc.exe\SupportedTypes"
Name=".m3u" Value="" Type="string" />
                 <ProgId Id='VLC.m3u.Document' Description='Video File'
Icon='vlc.ico' Advertise='no'>
--
1.7.1

-- 
Dag
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20160926/f9258a32/attachment.html>


More information about the vlc-devel mailing list