Commands for installing TKey SSH Agent 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 Tillitis.TKeySSHAgent -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Tillitis.TKeySSHAgent -e --silentwinget uninstall --id Tillitis.TKeySSHAgent -e --silentBy installer
64-bit · MSI · en-US
Silent install
msiexec /i tkey-ssh-agent-1.1.1.0.msi /qn /norestartWrite a log
msiexec /i tkey-ssh-agent-1.1.1.0.msi /qn /norestart /l*v "%TEMP%\tkey-ssh-agent-install.log"PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-tkey-ssh-agent.ps1
$url = 'https://github.com/tillitis/tillitis-key1-apps/releases/download/v1.1.1/tkey-ssh-agent-1.1.1.0.msi'
$sha256 = '778FDA7C676906127969E660D5E5D3FD7CC5E2FD55E48A766C2C94F949422C21'
$file = Join-Path $env:TEMP 'tkey-ssh-agent-1.1.1.0.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