Commands for installing DTrace 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 Microsoft.DTrace -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.DTrace -e --silentwinget uninstall --id Microsoft.DTrace -e --silentBy installer
64-bit · MSI · en-US
Silent install
msiexec /i DTrace.amd64.msi /qn /norestartWrite a log
msiexec /i DTrace.amd64.msi /qn /norestart /l*v "%TEMP%\dtrace-install.log"Uninstall
msiexec /x {6403795B-BDDC-42F2-9DEC-A46464475C72} /qn /norestart- MSI product code
- {6403795B-BDDC-42F2-9DEC-A46464475C72}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6403795B-BDDC-42F2-9DEC-A46464475C72}
ARM64 · MSI · en-US
Silent install
msiexec /i DTrace.arm64.msi /qn /norestartWrite a log
msiexec /i DTrace.arm64.msi /qn /norestart /l*v "%TEMP%\dtrace-install.log"Uninstall
msiexec /x {6403795B-BDDC-42F2-9DEC-A46464475C72} /qn /norestart- MSI product code
- {6403795B-BDDC-42F2-9DEC-A46464475C72}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6403795B-BDDC-42F2-9DEC-A46464475C72}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-dtrace.ps1
$url = 'https://download.microsoft.com/download/7/9/d/79d6b79a-5836-4118-a9b7-60bc77c97bf7/DTrace.amd64.msi'
$sha256 = '379FA23FB3D0C079A58D9989FAF4435AE3B9109032B0CF1E84695EAC445E8804'
$file = Join-Path $env:TEMP 'DTrace.amd64.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 install-dtrace.ps1
$url = 'https://download.microsoft.com/download/7/9/d/79d6b79a-5836-4118-a9b7-60bc77c97bf7/DTrace.arm64.msi'
$sha256 = '8FDCC2717B1CF3ACA01D4B59BDD812E6461F92A452253FAD992A1F12C3737DF6'
$file = Join-Path $env:TEMP 'DTrace.arm64.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