Skip to content

Commit

Permalink
Support the rldb:// URL protocol
Browse files Browse the repository at this point in the history
(Hopefully) fixes #5
  • Loading branch information
gucci-on-fleek committed Jun 22, 2022
1 parent c284f12 commit f73c3f2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions runtime_directory/sandbox_run.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ kill -Name *Lockdown*
& "$lockdown_extract_dir\setup.exe" /s "/f1$PSScriptRoot\setup.iss" "/f2$PSScriptRoot\..\setup.log" # If we don't give a log file path, this doesn't work
Wait-Process -Name "setup"

# Support use of the `rldb://` URL protocol
New-PSDrive -PSProvider registry -Root HKEY_CLASSES_ROOT -Name HKCR
Set-ItemProperty -Path "HKCR:\rldb\shell\open\command" -Name "(Default)" -Value ('"' + $PSScriptRoot + '\withdll.exe" "/d:' + $PSScriptRoot + '\GetSystemMetrics-Hook.dll" ' + $lockdown_runtime + ' "%1"')

./withdll /d:GetSystemMetrics-Hook.dll $lockdown_runtime

0 comments on commit f73c3f2

Please sign in to comment.