Kommandon för att installera LiveAgent utan frågor, ta bort programmet igen och identifiera det i distributionsverktyg. Ett kommando visas bara när det är säkert: från manifestet eller som installationsteknikens dokumenterade standard.
Relaterad guide: Parametrar för tyst installation: MSI, NSIS, Inno · Avinstallera program via registret eller PowerShell
Med winget
PowerShell
winget install --id Stack-Cairn.LiveAgent -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Stack-Cairn.LiveAgent -e --silentwinget uninstall --id Stack-Cairn.LiveAgent -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare
Tyst installation
LiveAgent-v2.0.19-Windows-x64-Setup.exe /SEgen mapp
LiveAgent-v2.0.19-Windows-x64-Setup.exe /S /D=C:\Apps\liveagent- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\LiveAgent
- Installationsmapp
- %LocalAppData%\LiveAgent
64-bitars · MSI · Alla användare
Tyst installation
msiexec /i LiveAgent-v2.0.19-Windows-x64.msi /qn /norestartSkriv en logg
msiexec /i LiveAgent-v2.0.19-Windows-x64.msi /qn /norestart /l*v "%TEMP%\liveagent-install.log"Avinstallation
msiexec /x {45864372-DCEA-4C05-BAFA-E24305C9EA09} /qn /norestart- MSI-produktkod
- {45864372-DCEA-4C05-BAFA-E24305C9EA09}
- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{45864372-DCEA-4C05-BAFA-E24305C9EA09}
- UpgradeCode
- {5D56E0D3-9926-5493-A176-8C01F12BA19A}
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-liveagent.ps1
$url = 'https://github.com/Stack-Cairn/LiveAgent/releases/download/v2.0.19/LiveAgent-v2.0.19-Windows-x64-Setup.exe'
$sha256 = '84B8B0A8F7ECBB367777402C61B7134DD7520FA0C56F489911E02708CE57E207'
$file = Join-Path $env:TEMP 'LiveAgent-v2.0.19-Windows-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-liveagent.ps1
$url = 'https://github.com/Stack-Cairn/LiveAgent/releases/download/v2.0.19/LiveAgent-v2.0.19-Windows-x64.msi'
$sha256 = '060071A1A655E0F85D4A5CB28405CBC68C44EFC4EF1C55B6B60E8CC630470D29'
$file = Join-Path $env:TEMP 'LiveAgent-v2.0.19-Windows-x64.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