Polecenia do instalacji programu WithSecure Elements Agent bez pytań, do jego usuwania i do wykrywania w narzędziach wdrożeniowych. Polecenie jest podane tylko wtedy, gdy jest pewne: pochodzi z manifestu albo z udokumentowanych ustawień domyślnych technologii instalatora.
Powiązany poradnik: Parametry cichej instalacji: MSI, NSIS, Inno Setup · Odinstalowanie programu przez rejestr lub PowerShell
Przez 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 --silentWedług instalatora
64-bit · MSI · en-US
Cicha instalacja
msiexec /i ElementsAgentOfflineInstaller.msi /qn /norestart /quietZapis dziennika
msiexec /i ElementsAgentOfflineInstaller.msi /qn /norestart /quiet /l*v "%TEMP%\withsecure-elements-agent-install.log"Odinstalowanie
msiexec /x {26E3718A-7CCD-40E0-BE8B-7F1E756A05F5} /qn /norestart- Kod produktu MSI
- {26E3718A-7CCD-40E0-BE8B-7F1E756A05F5}
- Klucz odinstalowania w rejestrze
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{26E3718A-7CCD-40E0-BE8B-7F1E756A05F5}
PowerShell: pobierz, zweryfikuj, zainstaluj
Pobiera oficjalny plik, sprawdza jego SHA256 i instaluje go po cichu.
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