Commands for installing Dr. Memory 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 DynamoRIO.drmemory -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DynamoRIO.drmemory -e --silentwinget uninstall --id DynamoRIO.drmemory -e --silentBy installer
32-bit · MSI · All users · en-US
Silent install
msiexec /i DrMemory-Windows-2.6.20434.msi /qn /norestartWrite a log
msiexec /i DrMemory-Windows-2.6.20434.msi /qn /norestart /l*v "%TEMP%\dr-memory-install.log"Uninstall
msiexec /x {67675AD6-1FB0-4DE1-9ECF-84997515025E} /qn /norestart- MSI product code
- {67675AD6-1FB0-4DE1-9ECF-84997515025E}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{67675AD6-1FB0-4DE1-9ECF-84997515025E}
- UpgradeCode
- {1A8D7CEE-2ABA-4462-B0D6-86F26715128E}
- Install folder
- %ProgramFiles(x86)%/Dr. Memory
- DisplayVersion
- 2.6.20434
32-bit · ZIP
No installation needed (portable)
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-dr-memory.ps1
$url = 'https://github.com/DynamoRIO/drmemory/releases/download/cronbuild-2.6.20434/DrMemory-Windows-2.6.20434.msi'
$sha256 = 'BD6E6EB2BFE466F839B1641E8CA8822AAC1FDBF9E4A835ABD34041A86CD7D531'
$file = Join-Path $env:TEMP 'DrMemory-Windows-2.6.20434.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