My Umbraco site has a recurring task which runs every 60 mins. The problem is when Umbraco is not installed yet, the task block the installation process.
I'm trying to detect the status of my Umbraco site by this:
var isApplicationInstalled = uQuery.RootNodeId != -1;
if (isApplicationInstalled)
{
// run the task
}
But uQuery.RootNodeId
seems to always return -1
and the task has never run.
How to detect that Umbraco site is installed and it's connected to the database?