Commands for installing disk4n6 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 SecurityRonin.disk4n6 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SecurityRonin.disk4n6 -e --silentwinget uninstall --id SecurityRonin.disk4n6 -e --silentBy installer
64-bit · MSI · All users
Silent install
msiexec /i disk4n6-0.8.5-x86_64-pc-windows-msvc.msi /qn /norestartWrite a log
msiexec /i disk4n6-0.8.5-x86_64-pc-windows-msvc.msi /qn /norestart /l*v "%TEMP%\disk4n6-install.log"Uninstall
msiexec /x {8070E28A-3AA7-4E3A-A13D-3B66D1EF6C3E} /qn /norestart- MSI product code
- {8070E28A-3AA7-4E3A-A13D-3B66D1EF6C3E}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8070E28A-3AA7-4E3A-A13D-3B66D1EF6C3E}
- UpgradeCode
- {B3879878-4F54-4C90-B475-3EB8DFF5AF1F}
- Install folder
- %ProgramFiles%/disk4n6/bin
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-disk4n6.ps1
$url = 'https://github.com/SecurityRonin/disk-forensic/releases/download/v0.8.5/disk4n6-0.8.5-x86_64-pc-windows-msvc.msi'
$sha256 = 'D05801D51CACFB70956ED3BA8120F24C19EA94E7D0583125769D6BF67D3D6BD1'
$file = Join-Path $env:TEMP 'disk4n6-0.8.5-x86_64-pc-windows-msvc.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait