-
Notifications
You must be signed in to change notification settings - Fork 6
/
RegHide.yml
22 lines (22 loc) · 1017 Bytes
/
RegHide.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
version: 1.0.0.0
description: RegHide. Creates a registry key that cannot be opened with Regedit.
homepage: https://docs.microsoft.com/en-us/sysinternals/downloads/reghide
license:
identifier: Freeware
url: https://docs.microsoft.com/en-us/sysinternals/license-terms
url: https://download.sysinternals.com/files/RegHide.zip
hash: e5c8c70322295696c3c27a1dd6915e7704aa6d2dbcd2c05d4f5ad77381c73a8b
pre_install: |
$sysint = 'HKCU:\SOFTWARE\Sysinternals'
$fin = "$sysint\Reghide"
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\Reghide" -ErrorAction 'SilentlyContinue' -Force -Recurse
if ((Get-ChildItem $sysInt).Count -eq 0) { Remove-Item $sysInt -ErrorAction 'SilentlyContinue' -Force -Recurse }
}
bin: RegHide.exe
autoupdate:
url: https://download.sysinternals.com/files/RegHide.zip