Kommandon för att installera Win-CodexBar 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 Finesssee.Win-CodexBar -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Finesssee.Win-CodexBar -e --silentwinget uninstall --id Finesssee.Win-CodexBar -e --silentPer installationsfil
64-bitars · EXE (Inno Setup) · Aktuell användare
Tyst installation
CodexBar-0.70.0-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Egen mapp
CodexBar-0.70.0-Setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\win-codexbar"- Avinstallationsnyckel i registret
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\WinCodexBar_is1
- DisplayVersion
- 0.70.0
PowerShell: ladda ner, kontrollera, installera
Laddar ner den officiella filen, kontrollerar dess SHA256 och installerar tyst.
install-win-codexbar.ps1
$url = 'https://github.com/nesszer/Win-CodexBar/releases/download/v0.70.0/CodexBar-0.70.0-Setup.exe'
$sha256 = 'F7ABCD53106E9FDFE7E49BC47FBBF33057A98C710B47B5C77ABE36D5D0C7D800'
$file = Join-Path $env:TEMP 'CodexBar-0.70.0-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