Příkazy pro instalaci programu WithSecure Elements Agent 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 WithSecure.ElementsAgent -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id WithSecure.ElementsAgent -e --silentwinget uninstall --id WithSecure.ElementsAgent -e --silentPodle instalátoru
64bit · MSI · en-US
Tichá instalace
msiexec /i ElementsAgentOfflineInstaller.msi /qn /norestart /quietZapsat protokol
msiexec /i ElementsAgentOfflineInstaller.msi /qn /norestart /quiet /l*v "%TEMP%\withsecure-elements-agent-install.log"Odinstalace
msiexec /x {26E3718A-7CCD-40E0-BE8B-7F1E756A05F5} /qn /norestart- Kód produktu MSI
- {26E3718A-7CCD-40E0-BE8B-7F1E756A05F5}
- Klíč odinstalace v registru
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{26E3718A-7CCD-40E0-BE8B-7F1E756A05F5}
PowerShell: stáhnout, ověřit, nainstalovat
Stáhne oficiální soubor, ověří SHA256 a program nainstaluje v tichém režimu.
install-withsecure-elements-agent.ps1
$url = 'https://download.withsecure.com/PSB/latest/ElementsAgentOfflineInstaller.msi'
$sha256 = '8E4CC33DBDD4D6D37CE4AB4AB5D93EC14D4946D0961E3E5241E9679048E6F4E7'
$file = Join-Path $env:TEMP 'ElementsAgentOfflineInstaller.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', '/quiet' -Wait