@echo off
setlocal
title MCom - CineCom
cd /d "%~dp0"
set "TARGET=%~dp0..\..\repos\mcom-cinecom\target\release\cinecom.exe"

if not exist "%TARGET%" (
  echo [MCom] CineCom no esta instalado en este equipo.
  echo Abriendo la pagina de instalacion...
  start "" "http://127.0.0.1:8092/app/app-prod-cinecom"
  endlocal
  exit /b 0
)

start "" "%TARGET%"
endlocal
