Kommandon för att installera cosbrowser 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 Tencent.COSBrowser -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Tencent.COSBrowser -e --silentwinget uninstall --id Tencent.COSBrowser -e --silentPer installationsfil
64-bitars · EXE (NSIS) · Alla användare
Tyst installation
cosbrowser-setup-2.13.1.exe /SEgen mapp
cosbrowser-setup-2.13.1.exe /S /D=C:\Apps\cosbrowser- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\1eba6458-8298-5f4a-b899-8235107f65a2
32-bitars · EXE (NSIS) · Alla användare
Tyst installation
cosbrowser-setup-2.13.1.exe /SEgen mapp
cosbrowser-setup-2.13.1.exe /S /D=C:\Apps\cosbrowser- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\1eba6458-8298-5f4a-b899-8235107f65a2
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-cosbrowser.ps1
$url = 'https://cos5.cloud.tencent.com/cosbrowser/cosbrowser-setup-2.13.1.exe'
$sha256 = 'CC74B73F3AE8AFF66DC61179043639BCA1778DE026B6E9B2165280E8641980A7'
$file = Join-Path $env:TEMP 'cosbrowser-setup-2.13.1.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-cosbrowser.ps1
$url = 'https://cos5.cloud.tencent.com/cosbrowser/cosbrowser-setup-2.13.1.exe'
$sha256 = 'CC74B73F3AE8AFF66DC61179043639BCA1778DE026B6E9B2165280E8641980A7'
$file = Join-Path $env:TEMP 'cosbrowser-setup-2.13.1.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