-
Notifications
You must be signed in to change notification settings - Fork 6
/
Disk2vhd.yml
26 lines (26 loc) · 1.1 KB
/
Disk2vhd.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
version: "2.02"
description: Disk2vhd. Simplifies the migration of physical systems into virtual machines (p2v.md).
homepage: https://docs.microsoft.com/en-us/sysinternals/downloads/disk2vhd
license:
identifier: Freeware
url: https://docs.microsoft.com/en-us/sysinternals/license-terms
url: https://download.sysinternals.com/files/Disk2vhd.zip
hash: c294d279bf98645f84452989f320b561bf58609e35d85de47ea19ef583880821
pre_install: |
$sysint = 'HKCU:\SOFTWARE\Sysinternals'
$fin = "$sysint\Disk2Vhd"
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\Disk2Vhd" -ErrorAction 'SilentlyContinue' -Force -Recurse
if ((Get-ChildItem $sysInt).Count -eq 0) { Remove-Item $sysInt -ErrorAction 'SilentlyContinue' -Force -Recurse }
}
bin: disk2vhd.exe
shortcuts:
- - disk2vhd.exe
- SysInternals\Disk2vhd
checkver: Disk2vhd\s+v([\d.]+)</h1
autoupdate:
url: https://download.sysinternals.com/files/Disk2vhd.zip