-
Notifications
You must be signed in to change notification settings - Fork 6
/
PsFile.yml
36 lines (36 loc) · 1.31 KB
/
PsFile.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
36
version: "1.04"
description: PsFile. Lists files and directories opened remotely.
homepage: https://docs.microsoft.com/en-us/sysinternals/downloads/psfile
license:
identifier: Freeware
url: https://docs.microsoft.com/en-us/sysinternals/license-terms
architecture:
64bit:
url: https://live.sysinternals.com/PsFile64.exe
hash: be922312978a53c92a49fefd2c9f9cc098767b36f0e4d2e829d24725df65bc21
bin:
- PsFile64.exe
- - PsFile64.exe
- PsFile
32bit:
url: https://live.sysinternals.com/PsFile.exe
hash: 4243dc8b991f5f8b3c0f233ca2110a1e03a1d716c3f51e88faf1d59b8242d329
bin: PsFile.exe
pre_install: |
$sysint = 'HKCU:\SOFTWARE\Sysinternals'
$fin = "$sysint\PsFile"
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\PsFile" -ErrorAction 'SilentlyContinue' -Force -Recurse
if ((Get-ChildItem $sysInt).Count -eq 0) { Remove-Item $sysInt -ErrorAction 'SilentlyContinue' -Force -Recurse }
}
checkver: PsFile\s+v([\d.]+)</h1
autoupdate:
architecture:
64bit:
url: https://live.sysinternals.com/PsFile64.exe
32bit:
url: https://live.sysinternals.com/PsFile.exe