Using a single seat setup i had problems with Mediaportal autostarting too fast, resulting in it could not find the TV server when entering My TV.
I had to restart Mediaportal for it to work again, causing some irritation
I made the script below to wait for the SQL and TV services to start before running Mediaportal. Maybe someone else has some use for it also.
First run Mediaportal setup and uncheck the "Autostart MediaPortal when windows starts" option in "General".
Use notepad and paste the code below in to it and save as a .cmd file, for instance "startmp.cmd" .
Copy the script to your Startup folder on the Start menu.
Important: You have to edit the path between the quotes on the last line to match your Mediaportal installation directory path (Check propertys on your Mediaportal start icon and copy the path from there).
note by infinityloop
I had to restart Mediaportal for it to work again, causing some irritation
I made the script below to wait for the SQL and TV services to start before running Mediaportal. Maybe someone else has some use for it also.
First run Mediaportal setup and uncheck the "Autostart MediaPortal when windows starts" option in "General".
Use notepad and paste the code below in to it and save as a .cmd file, for instance "startmp.cmd" .
Copy the script to your Startup folder on the Start menu.
Important: You have to edit the path between the quotes on the last line to match your Mediaportal installation directory path (Check propertys on your Mediaportal start icon and copy the path from there).
Code:
@echo off
rem script to wait for SQL Server and TV Service to start before running MediaPortal.
echo Waiting for SQL Server to start...
:NOSQL
sc query MSSQL$SQLEXPRESS | FIND "RUNNING"
if errorlevel 1 goto NOSQL
echo.
echo Waiting for TV Service to start...
:NOTVSERICE
sc query TVService | FIND "RUNNING"
if errorlevel 1 goto NOTVSERICE
echo.
echo Starting MediaPortal!
start /D"X:\THE PATH TO YOUR MEDIAPORTAL DIRECTORY" mediaportal.exe
note by infinityloop
startup delay feature has been added to mediaportal which should fix this problem ::here::