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

Dag Wieers dag at wieers.com
Tue Oct 4 11:00:42 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/NSIS/helpers/extensions.nsh |    1 +
 extras/package/win32/msi/extensions.wxs          |    8 ++++++++
 2 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/extras/package/win32/NSIS/helpers/extensions.nsh b/extras/package/win32/NSIS/helpers/extensions.nsh
index d86b194..f2c27c2 100644
--- a/extras/package/win32/NSIS/helpers/extensions.nsh
+++ b/extras/package/win32/NSIS/helpers/extensions.nsh
@@ -173,6 +173,7 @@ FunctionEnd
   !insertmacro ${_action} Video ".flv"
   !insertmacro ${_action} Video ".gvi"
   !insertmacro ${_action} Video ".gxf"
+  !insertmacro ${_action} Video ".iso"
   !insertmacro ${_action} Video ".m1v"
   !insertmacro ${_action} Video ".m2t"
   !insertmacro ${_action} Video ".m2v"
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



More information about the vlc-devel mailing list