免互動安裝EPSON Scan OCR Component、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id EPSON.Scan.OCRComponent -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id EPSON.Scan.OCRComponent -e --silentwinget uninstall --id EPSON.Scan.OCRComponent -e --silent依安裝檔
32位元 · ZIP
靜默安裝
msiexec /i epson665103eu.exe /qn /norestart解除安裝
msiexec /x {C37347BC-7549-47A6-8E7A-806A6751981E} /qn /norestart- MSI產品代碼
- {C37347BC-7549-47A6-8E7A-806A6751981E}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{C37347BC-7549-47A6-8E7A-806A6751981E}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-epson-scan-ocr-component.ps1
$url = 'https://download.epson-europe.com/pub/download/6651/epson665103eu.exe'
$sha256 = 'BFEF0A13B70F27A20B4B046477804AEC3B3A1D6C20D50B978739EDF6EE2B79D2'
$file = Join-Path $env:TEMP 'epson665103eu.exe'
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