Commit e9435219 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Do correctly [22243] for windows context menu. Sorry.

parent be1cc2c0
...@@ -226,16 +226,22 @@ FunctionEnd ...@@ -226,16 +226,22 @@ FunctionEnd
;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;
!macro AddContextMenu EXT !macro AddContextMenu EXT
WriteRegStr HKCR ${EXT}\shell\PlayWithVLC "" "Play with VLC media player" Push $R0
WriteRegStr HKCR ${EXT}\shell\PlayWithVLC\command "" '$INSTDIR\vlc.exe --started-from-file --no-playlist-enqueue "%1"' ReadRegStr $R0 HKCR ${EXT} ""
WriteRegStr HKCR $R0\shell\PlayWithVLC "" "Play with VLC media player"
WriteRegStr HKCR $R0\shell\PlayWithVLC\command "" '$INSTDIR\vlc.exe --started-from-file --no-playlist-enqueue "%1"'
WriteRegStr HKCR ${EXT}\shell\AddToPlaylistVLC "" "Add to VLC media player's Playlist" WriteRegStr HKCR $R0\shell\AddToPlaylistVLC "" "Add to VLC media player's Playlist"
WriteRegStr HKCR ${EXT}\shell\AddToPlaylistVLC\command "" '$INSTDIR\vlc.exe --started-from-file --playlist-enqueue "%1"' WriteRegStr HKCR $R0\shell\AddToPlaylistVLC\command "" '$INSTDIR\vlc.exe --started-from-file --playlist-enqueue "%1"'
Pop $R0
!macroend !macroend
!macro DeleteContextMenu EXT !macro DeleteContextMenu EXT
DeleteRegKey HKCR ${EXT}\shell\PlayWithVLC Push $R0
DeleteRegKey HKCR ${EXT}\shell\AddToPlaylistVLC ReadRegStr $R0 HKCR ${EXT} ""
DeleteRegKey HKCR $R0\shell\PlayWithVLC
DeleteRegKey HKCR $R0\shell\AddToPlaylistVLC
Pop $R0
!macroend !macroend
;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment