Commands for installing DiskMend without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id DiskMend.DiskMend -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DiskMend.DiskMend -e --silentwinget uninstall --id DiskMend.DiskMend -e --silentBy installer
64-bit · EXE (NSIS) · Current user · en-US
Silent install
DiskMend-Setup-1.0.24.exe /SCustom folder
DiskMend-Setup-1.0.24.exe /S /D=C:\Apps\diskmend- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\6f1c2a5e-4d1b-5c7a-9e3f-d15c0e11d001
32-bit · EXE (NSIS) · Current user · en-US
Silent install
DiskMend-Setup-x86-1.0.24.exe /SCustom folder
DiskMend-Setup-x86-1.0.24.exe /S /D=C:\Apps\diskmend- Uninstall registry key
- HKCU\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\6f1c2a5e-4d1b-5c7a-9e3f-d15c0e11d001
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-diskmend.ps1
$url = 'https://github.com/mhrgndz/diskmend-releases/releases/download/v1.0.24/DiskMend-Setup-1.0.24.exe'
$sha256 = 'FD9C5B2E93C47EC0DC49D35EB5AFE69BC2B5D071F84E46C1170C93B7D7B02667'
$file = Join-Path $env:TEMP 'DiskMend-Setup-1.0.24.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-diskmend.ps1
$url = 'https://github.com/mhrgndz/diskmend-releases/releases/download/v1.0.24/DiskMend-Setup-x86-1.0.24.exe'
$sha256 = 'E62A2CC2ADC4F4CFF4BCF7E49DB5CFEBE80253D013BBF965B9411F45C297EA81'
$file = Join-Path $env:TEMP 'DiskMend-Setup-x86-1.0.24.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait