if %errorlevel% equ 0 ( echo Installation successful. echo Registering network scanner (adjust IP as needed)... "C:\Program Files (x86)\Epson Software\Epson Scan 2\EpsonScan2Settings.exe" /ADD /IP "192.168.1.100" /NAME "Epson_Scan_Office" ) else ( echo Installation failed. Check %LOGFILE% exit /b %errorlevel% )
REM 64-bit system reg query "HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall" /s /f "Epson Scan 2" REM Then run the uninstaller silently "C:\Program Files (x86)\Epson Software\Epson Scan 2\Uninstall.exe" /VERYSILENT /SUPPRESSMSGBOXES epson scan 2 silent install
if not exist %INSTALLER% ( echo Installer not found. exit /b 1 ) if %errorlevel% equ 0 ( echo Installation successful
Or directly find the product GUID:
You can pre-deploy a settings.db or registry keys (model-specific – test before mass deployment). For SCCM (Script Installer deployment) Installation program: Check %LOGFILE% exit /b %errorlevel% ) REM 64-bit
@echo off setlocal enabledelayedexpansion set INSTALLER="%~dp0epsonscan2_6313_x64.exe" set LOGFILE="%temp%\epson_scan2_install.log"
wmic product where "name like 'Epson Scan 2'" call uninstall /nointeractive Epson Scan 2 often requires scanner registration. You can deploy registry settings or use epsonscan2settings.exe (if included). 6.1. Register a network scanner (via CLI) After install, run: