Kommandon för att installera CoPrA 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 ColorLogic.CoPrA -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ColorLogic.CoPrA -e --silentwinget uninstall --id ColorLogic.CoPrA -e --silentPer installationsfil
64-bitars · ZIP · Alla användare · en-US
Tyst installation
CoPrA-11.1.3-win-x64.zip /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-- Avinstallationsnyckel i registret
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{6B165BEE-E715-4EEF-A2D9-F2ED52500333}_is1
- Installationsmapp
- %ProgramFiles%\CoPrA 11
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-copra.ps1
$url = 'https://www.colorlogic.de/seiten/download/CoPrA-11.1.3-win-x64.zip'
$sha256 = '0D0581B6EAF355C45CED1EFEC79315AEC258AAA1F5B1B34B19C01037FC6E29CE'
$file = Join-Path $env:TEMP 'CoPrA-11.1.3-win-x64.zip'
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