Commands for installing Annotator 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 Snijderlab.Annotator -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Snijderlab.Annotator -e --silentwinget uninstall --id Snijderlab.Annotator -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
Annotator_1.2.1_x64-setup.exe /SCustom folder
Annotator_1.2.1_x64-setup.exe /S /D=C:\Apps\annotator- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Annotator
64-bit · MSI · All users
Silent install
msiexec /i Annotator_1.2.1_x64_en-US.msi /qn /norestartWrite a log
msiexec /i Annotator_1.2.1_x64_en-US.msi /qn /norestart /l*v "%TEMP%\annotator-install.log"Uninstall
msiexec /x {CD54010F-22D5-4D73-BBF3-D0BEC5AB75CE} /qn /norestart- MSI product code
- {CD54010F-22D5-4D73-BBF3-D0BEC5AB75CE}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{CD54010F-22D5-4D73-BBF3-D0BEC5AB75CE}
- UpgradeCode
- {7EEB6BC5-23EA-51E1-B28D-FC9633D3F90D}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-annotator.ps1
$url = 'https://github.com/snijderlab/annotator/releases/download/v1.2.1/Annotator_1.2.1_x64-setup.exe'
$sha256 = '8E33ECE379158DB40133992A0BF176B67F1C802EDBA409DD28FCE687D2C88452'
$file = Join-Path $env:TEMP 'Annotator_1.2.1_x64-setup.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-annotator.ps1
$url = 'https://github.com/snijderlab/annotator/releases/download/v1.2.1/Annotator_1.2.1_x64_en-US.msi'
$sha256 = '0DC50728D0D487B5AAD1B3F73498C2FD9579BDD311DA453385ABE4DEFD5677F6'
$file = Join-Path $env:TEMP 'Annotator_1.2.1_x64_en-US.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