Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\vlc]
@="URL:VLC Protocol"
"URL Protocol"=""

[HKEY_CLASSES_ROOT\vlc\DefaultIcon]
@="C:\\Program Files\\VideoLAN\\VLC\\vlc.exe,0"

[HKEY_CLASSES_ROOT\vlc\shell]

[HKEY_CLASSES_ROOT\vlc\shell\open]

[HKEY_CLASSES_ROOT\vlc\shell\open\command]
@="powershell.exe -ExecutionPolicy Bypass -NoProfile -WindowStyle Hidden -Command \"& { $u = '%1'.Trim('\\\"').Trim().TrimEnd('/'); $u = $u -replace '^vlc://',''; $u = $u -replace '^https://','http://'; $u = [System.Uri]::UnescapeDataString($u); $v = (Get-ItemProperty 'HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\vlc.exe' -ErrorAction SilentlyContinue).'(default)'; if (!$v -or !(Test-Path $v)) { $v = 'C:\\Program Files\\VideoLAN\\VLC\\vlc.exe' }; if (!(Test-Path $v)) { $v = 'C:\\Program Files (x86)\\VideoLAN\\VLC\\vlc.exe' }; if (Test-Path $v) { Start-Process -FilePath $v -ArgumentList ('\\\"' + $u + '\\\"') } }\""
