50 lines
1.3 KiB
Batchfile
50 lines
1.3 KiB
Batchfile
@echo off
|
|
echo Installing Recticel Print Service...
|
|
echo.
|
|
|
|
REM Check if running as Administrator
|
|
net session >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo ERROR: This script must be run as Administrator.
|
|
echo Right-click and select "Run as administrator"
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
REM Create installation directory
|
|
echo Creating installation directory...
|
|
if not exist "C:\RecticelPrintService" (
|
|
mkdir "C:\RecticelPrintService"
|
|
)
|
|
|
|
REM Copy files (assuming this script is in the same directory as the built application)
|
|
echo Copying application files...
|
|
copy "RecticelPrintService\bin\Release\*.*" "C:\RecticelPrintService\" /Y
|
|
|
|
REM Register custom protocol
|
|
echo Registering custom protocol...
|
|
reg import "recticel-print-protocol.reg"
|
|
|
|
if %errorlevel% equ 0 (
|
|
echo.
|
|
echo ✅ Installation completed successfully!
|
|
echo.
|
|
echo Service installed to: C:\RecticelPrintService\
|
|
echo Protocol registered: recticel-print://
|
|
echo.
|
|
echo Next steps:
|
|
echo 1. Configure your thermal label printer in Windows
|
|
echo 2. Set label size to 80mm x 110mm
|
|
echo 3. Test printing from the web interface
|
|
echo.
|
|
echo Press any key to exit...
|
|
pause >nul
|
|
) else (
|
|
echo.
|
|
echo ❌ Installation failed!
|
|
echo Please check if you're running as Administrator.
|
|
echo.
|
|
pause
|
|
)
|
|
|
|
exit /b 0 |