-
Notifications
You must be signed in to change notification settings - Fork 26
/
PrivacyEraser.yml
49 lines (49 loc) · 1.81 KB
/
PrivacyEraser.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
39
40
41
42
43
44
45
46
47
48
49
version: 6.15.0.5128
description: Privacy Eraser. Internet history, browsing history and past computer activities cleaner
homepage: https://www.cybertronsoft.com/products/privacy-eraser/
license: Freeware
url: https://www.cybertronsoft.com/download/privacy-eraser-portable.zip
hash: 0310bf3bd7c60b2fe7c870fc685cf5f42ef1e8ba3e43183c58bc8b5ab7d7dc97
pre_install: |
Test-Persistence 'Config.xml' -ScriptBlock {
Write-UserMessage 'File' $currentFileDir 'does not exists. Creating.' -Warning
$delimeter = "`r`n"
$entryTemplate = ' <Item id="%%key%%" value="%%value%%"/>'
$start = @('<?xml version="1.0" encoding="utf-8" standalone="yes" ?>', '<PrivacyEraser>', ' <Settings>')
$end = @(' </Settings>', '</PrivacyEraser>')
$ents = $()
$entries = @{
'SET_LOAD_AT_WINDOWS_STARTUP' = 'False'
'SET_AUTO_CLEAN_AT_WINDOWS_STARTUP' = 'False'
'SET_AUTOMATICALLY_CHECK_FOR_UPDATES' = 'False'
}
foreach ($entry in $entries.Keys) {
$ents += , ($entryTemplate -replace '%%key%%', $entry) -replace '%%value%%', $entries.Item($entry)
}
#### Create file string
$finalFile = $start -join $delimeter
$finalFile += $delimeter
$finalFile += $ents -join $delimeter
$finalFile += $delimeter
$finalFile += $end -join $delimeter
#### Set File
Out-UTF8File $currentFileDir $finalFile
}
architecture:
64bit:
shortcuts:
- - PrivacyEraser64.exe
- Privacy Eraser
32bit:
shortcuts:
- - PrivacyEraser.exe
- Privacy Eraser
persist:
- Registry Backups
- Config.xml
- Portable.xml
checkver:
url: https://www.cybertronsoft.com/download/privacy-eraser/update.xml
xpath: /PrivacyEraser/Version
autoupdate:
url: https://www.cybertronsoft.com/download/privacy-eraser-portable.zip