-
Notifications
You must be signed in to change notification settings - Fork 6
/
VolumeID.yml
30 lines (30 loc) · 1.14 KB
/
VolumeID.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
version: "2.1"
description: VolumeID. Changes the ids of FAT and NTFS disks (floppies or hard drives).
homepage: https://docs.microsoft.com/en-us/sysinternals/downloads/volumeid
license:
identifier: Freeware
url: https://docs.microsoft.com/en-us/sysinternals/license-terms
url: https://download.sysinternals.com/files/VolumeId.zip
hash: 4b478c68c79300538d8a92538fe07797a6dbda2c444095a3cfafe159103f6c10
pre_install: |
$sysint = 'HKCU:\SOFTWARE\Sysinternals'
$fin = "$sysint\VolumeID"
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\VolumeID" -ErrorAction 'SilentlyContinue' -Force -Recurse
if ((Get-ChildItem $sysInt).Count -eq 0) { Remove-Item $sysInt -ErrorAction 'SilentlyContinue' -Force -Recurse }
}
architecture:
64bit:
bin:
- Volumeid64.exe
- - Volumeid64.exe
- Volumeid
32bit:
bin: Volumeid.exe
checkver: VolumeID\s+v([\d.]+)</h1
autoupdate:
url: https://download.sysinternals.com/files/VolumeId.zip