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