Kommandoer til at installere newbee_ocr_cli uden spørgsmål, fjerne programmet igen og finde det fra udrulningsværktøjer. En kommando vises kun, når den er sikker: fra manifestet eller som installationsteknologiens dokumenterede standard.
Relateret vejledning: Parametre til lydløs installation: MSI, NSIS, Inno · Afinstaller et program via registreringsdatabasen
Med winget
PowerShell
winget install --id ChenZibo.NewbeeOCRCLI -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ChenZibo.NewbeeOCRCLI -e --silentwinget uninstall --id ChenZibo.NewbeeOCRCLI -e --silentPr. installationsfil
64-bit · MSI · Alle brugere · en-US
Lydløs installation
msiexec /i newbee_ocr_cli-x86_64-pc-windows-msvc.msi /qn /norestartSkriv en log
msiexec /i newbee_ocr_cli-x86_64-pc-windows-msvc.msi /qn /norestart /l*v "%TEMP%\newbee-ocr-cli-install.log"Afinstallation
msiexec /x {61D634E6-CA9A-408A-82DB-CEB65274043A} /qn /norestart- MSI-produktkode
- {61D634E6-CA9A-408A-82DB-CEB65274043A}
- Afinstallationsnøgle i registreringsdatabasen
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{61D634E6-CA9A-408A-82DB-CEB65274043A}
- UpgradeCode
- {C95EFE3A-1A02-46B3-9A9A-D3B190F5217C}
- Installationsmappe
- %ProgramFiles%\newbee_ocr_cli
PowerShell: download, kontrollér, installér
Downloader den officielle fil, kontrollerer dens SHA256 og installerer lydløst.
install-newbee-ocr-cli.ps1
$url = 'https://github.com/zibo-chen/newbee-ocr-cli/releases/download/v0.2.3/newbee_ocr_cli-x86_64-pc-windows-msvc.msi'
$sha256 = '1DA0470F3CC1017DA5B15591258AC1AAB95F01C60A725C68CFB224DB9DA4B385'
$file = Join-Path $env:TEMP 'newbee_ocr_cli-x86_64-pc-windows-msvc.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait