@echo off
chcp 65001 >nul
title Ambrosia Nativo Setup v2.8.4
net session >nul 2>&1
if not "%errorlevel%"=="0" (
  powershell.exe -NoProfile -Command "Start-Process -FilePath '%~f0' -Verb RunAs"
  exit /b
)
powershell.exe -NoProfile -ExecutionPolicy Bypass -Sta -File "%~dp0scripts\setup-moderno.ps1"
if errorlevel 1 (
  echo.
  echo O Ambrosia Setup nao foi concluido. Leia a mensagem acima.
  pause
  exit /b 1
)
exit /b 0
