-
Notifications
You must be signed in to change notification settings - Fork 6
/
Handle.yml
35 lines (35 loc) · 1.24 KB
/
Handle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
version: "5.0"
description: Handle. Displays information about open handles for any process in the system. (What file or directory has process opened.)
homepage: https://docs.microsoft.com/en-us/sysinternals/downloads/handle
license:
identifier: Freeware
url: https://docs.microsoft.com/en-us/sysinternals/license-terms
url: https://download.sysinternals.com/files/Handle.zip
hash: 279aaf8eccb6f79147f4dcc6ba091fb895c4cb8b199a0dd186a4c76bc519d2cd
pre_install: |
$sysint = 'HKCU:\SOFTWARE\Sysinternals'
$fin = "$sysint\Handle"
New-Item $sysint, $fin -ErrorAction 'SilentlyContinue' | Out-Null
Set-ItemProperty -Path $fin -Name 'EulaAccepted' -Value 1 -Type 'DWord' -Force | Out-Null
pre_uninstall: |
if ($purge) {
$sysInt = 'HKCU:\SOFTWARE\Sysinternals'
Remove-Item "$sysInt\Handle" -ErrorAction 'SilentlyContinue' -Force -Recurse
if ((Get-ChildItem $sysInt).Count -eq 0) { Remove-Item $sysInt -ErrorAction 'SilentlyContinue' -Force -Recurse }
}
architecture:
64bit:
bin:
- handle64.exe
- - handle64.exe
- handle
32bit:
bin: handle.exe
arm64:
bin:
- handle64a.exe
- - handle64a.exe
- handle
checkver: Handle\s+v([\d.]+)</h1
autoupdate:
url: https://download.sysinternals.com/files/Handle.zip