-
Notifications
You must be signed in to change notification settings - Fork 6
/
Sync.yml
38 lines (38 loc) · 1.34 KB
/
Sync.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: "2.2"
description: Sync. Direct the operating system to flush all file system data to disk in order to insure that it is stable and won't be lost in case of a system failure.
homepage: https://docs.microsoft.com/en-us/sysinternals/downloads/sync
license:
identifier: Freeware
url: https://docs.microsoft.com/en-us/sysinternals/license-terms
notes: Sync needs to be executed within elevated prompt or using sudo.
suggest:
sudo: gsudo
url: https://download.sysinternals.com/files/Sync.zip
hash: 4d9025fb54e4ad07084d544b1e5457fa0827d37a77296e4160f5f4ddd244a3a5
pre_install: |
$sysint = 'HKCU:\SOFTWARE\Sysinternals'
$fin = "$sysint\Sync"
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\Sync" -ErrorAction 'SilentlyContinue' -Force -Recurse
if ((Get-ChildItem $sysInt).Count -eq 0) { Remove-Item $sysInt -ErrorAction 'SilentlyContinue' -Force -Recurse }
}
architecture:
64bit:
bin:
- sync64.exe
- - sync64.exe
- sync
32bit:
bin: sync.exe
arm64:
bin:
- sync64a.exe
- - sync64a.exe
- sync
checkver: Sync\s+v([\d.]+)</h1
autoupdate:
url: https://download.sysinternals.com/files/Sync.zip