Kommandon för att installera Coderex 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 Coderex.Coderex -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Coderex.Coderex -e --silentwinget uninstall --id Coderex.Coderex -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Aktuell användare
Tyst installation
Coderex-0.3.48-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
Coderex-0.3.48-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\coderex"PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-coderex.ps1
$url = 'https://releases.coderex.com/0.3.48/Coderex-0.3.48-Setup.exe'
$sha256 = '3BEF4D1454680CAE52252A36625ED05D514C94F32AC6A3A4F05808B14A822B06'
$file = Join-Path $env:TEMP 'Coderex-0.3.48-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