Kommandon för att installera Comate 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 Baidu.Comate -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Baidu.Comate -e --silentwinget uninstall --id Baidu.Comate -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Aktuell användare
Tyst installation
Comate-win32-x64-user-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
Comate-win32-x64-user-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\comate"- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E1BCCBB0-0C31-40C1-AB8D-2AE2E6C3C2F2}}_is1
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-comate.ps1
$url = 'https://comate-ide.cdn.bcebos.com/download/stable/b0a3898a5a5ca92be2dc09a8bb0f91d341925e3a-273608800/Comate-win32-x64-user-setup.exe'
$sha256 = 'DB460A6AF777FE4DD5D0607F870137A8F312353F16CDC97991F3A902EB4460C8'
$file = Join-Path $env:TEMP 'Comate-win32-x64-user-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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait