Příkazy pro instalaci programu Anytype bez dotazů, jeho odinstalaci a detekci v nástrojích pro nasazení. Příkaz je uveden jen tehdy, když je přesně známý: z manifestu nebo ze zdokumentovaných parametrů technologie instalátoru.
Související návod: Parametry tiché instalace: MSI, NSIS, Inno Setup · Odinstalace programu přes registr nebo PowerShell
Přes winget
PowerShell
winget install --id AnyAssociation.Anytype -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AnyAssociation.Anytype -e --silentwinget uninstall --id AnyAssociation.Anytype -e --silentPodle instalátoru
64bit · EXE (NSIS)
Tichá instalace
"Anytype Setup 0.57.7.exe" /SVlastní složka
"Anytype Setup 0.57.7.exe" /S /D=C:\Apps\anytype- Klíč odinstalace v registru
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\425256e4-03e3-5ba0-b070-d372039ec7ab
PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-anytype.ps1
$url = 'https://anytype-release.fra1.cdn.digitaloceanspaces.com/Anytype%20Setup%200.57.7.exe'
$sha256 = 'EB77AD0E98FC46F50D5D121C6E49B5AB0F65DA10134E93E973F89DBD7E972D6C'
$file = Join-Path $env:TEMP 'Anytype Setup 0.57.7.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