Kommandon för att installera Agent Console 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 CylCastillo.AgentConsole -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id CylCastillo.AgentConsole -e --silentwinget uninstall --id CylCastillo.AgentConsole -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Aktuell användare · en-US
Tyst installation
Agent.Console_0.94.0_x64-setup.exe /SEgen mapp
Agent.Console_0.94.0_x64-setup.exe /S /D=C:\Apps\agent-console- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Agent Console
- Installationsmapp
- %LocalAppData%\Agent Console
- DisplayVersion
- 0.94.0
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-agent-console.ps1
$url = 'https://github.com/cyl-castillo/agent-console/releases/download/v0.94.0/Agent.Console_0.94.0_x64-setup.exe'
$sha256 = '57EB78B8ECFAC8170E7778F171E489F01B1BE78E5954E6FE28CA75526EBF6592'
$file = Join-Path $env:TEMP 'Agent.Console_0.94.0_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