-
Notifications
You must be signed in to change notification settings - Fork 6
/
BgInfo.yml
38 lines (38 loc) · 1.58 KB
/
BgInfo.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
37
38
version: "4.32"
description: BgInfo. Automatically generates desktop backgrounds that include important information about the system including IP addresses, computer name, network adapters, and more.
homepage: https://docs.microsoft.com/en-us/sysinternals/downloads/bginfo
license:
identifier: Freeware
url: https://docs.microsoft.com/en-us/sysinternals/license-terms
url: https://download.sysinternals.com/files/BGInfo.zip
hash: c15b4c6cb8bd33f941a727316776aa068fc0c3d95159b6989ec6c520ae259fcc
pre_install: |
$sysint = 'HKCU:\SOFTWARE\Sysinternals'
$fin = "$sysint\BGInfo"
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) {
$winInt = 'HKCU:\SOFTWARE\Winternals'
$sysInt = 'HKCU:\SOFTWARE\Sysinternals'
Remove-Item "$sysInt\BGInfo", "$winInt\BGInfo" -ErrorAction 'SilentlyContinue' -Force -Recurse
if ((Get-ChildItem $sysInt -ErrorAction 'SilentlyContinue').Count -eq 0) { Remove-Item $sysInt -ErrorAction 'SilentlyContinue' -Force -Recurse }
if ((Get-ChildItem $winInt -ErrorAction 'SilentlyContinue').Count -eq 0) { Remove-Item $winInt -ErrorAction 'SilentlyContinue' -Force -Recurse }
}
architecture:
64bit:
bin:
- Bginfo64.exe
- - Bginfo64.exe
- Bginfo
shortcuts:
- - Bginfo64.exe
- SysInternals\BgInfo
32bit:
bin: Bginfo.exe
shortcuts:
- - Bginfo.exe
- SysInternals\BgInfo
checkver: BgInfo\s+v([\d.]+)</h1
autoupdate:
url: https://download.sysinternals.com/files/BGInfo.zip