Commands for installing cosbrowser without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With 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 --silentBy installer
64-bit · EXE (NSIS) · All users
Silent install
cosbrowser-setup-2.13.1.exe /SCustom folder
cosbrowser-setup-2.13.1.exe /S /D=C:\Apps\cosbrowser- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\1eba6458-8298-5f4a-b899-8235107f65a2
32-bit · EXE (NSIS) · All users
Silent install
cosbrowser-setup-2.13.1.exe /SCustom folder
cosbrowser-setup-2.13.1.exe /S /D=C:\Apps\cosbrowser- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\1eba6458-8298-5f4a-b899-8235107f65a2
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
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