@echo off cd /d %~dp0 echo Installing OPC UA Robot Control Dashboard... echo. REM Check if conda is available where conda >nul 2>nul if %ERRORLEVEL% NEQ 0 ( echo ERROR: Conda is not installed or not in PATH echo Please install Anaconda or Miniconda first pause exit /b 1 ) echo Checking if environment 'opcua_com' exists... REM Check if environment exists using conda info --envs conda info --envs | findstr "opcua_com" >nul 2>&1 if %ERRORLEVEL% EQU 0 ( echo Environment 'opcua_com' found, updating... conda env update -f environment.yml if %ERRORLEVEL% NEQ 0 ( echo WARNING: Failed to update environment, but continuing... ) else ( echo Environment updated successfully! ) ) else ( echo Environment 'opcua_com' not found, creating... conda env create -f environment.yml if %ERRORLEVEL% NEQ 0 ( echo ERROR: Failed to create environment echo Please check the environment.yml file pause exit /b 1 ) else ( echo Environment created successfully! ) ) echo. echo Environment 'opcua_com' is ready! echo You can now run EXEC.bat to start the dashboard. echo. pause