diff --git a/lib/base.php b/lib/base.php
index ec08ccc67be00207dbff381d10501a9ade1dd092..e6355013c737c344db41ea9cb0b642b2772c91c3 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -480,8 +480,10 @@ class OC
         if (OC_Util::issetlocaleworking() == false) {
             OC_Log::write('core', 'setting locate to en_US.UTF-8 failed. Support is probably not installed on your system', OC_Log::ERROR);
         }
-	if (OC_Appconfig::getValue('core', 'backgroundjobs_mode', 'ajax') == 'ajax') {
-		OC_Util::addScript('backgroundjobs');
+	if (OC_Config::getValue('installed', false)) {
+		if (OC_Appconfig::getValue('core', 'backgroundjobs_mode', 'ajax') == 'ajax') {
+			OC_Util::addScript('backgroundjobs');
+		}
 	}
     }