diff --git a/thali/install/install.js b/thali/install/install.js
index <HASH>..<HASH> 100644
--- a/thali/install/install.js
+++ b/thali/install/install.js
@@ -164,16 +164,14 @@ function uninstallPluginsIfNecessary(weAddedPluginsFile, appRootDirectory) {
   return fs.readFileAsync(weAddedPluginsFile).catch(function(err) {
     if (err) {
       if (err.code == FILE_NOT_FOUND) {
-        return false;
+        return Promise.resolve(false);
       }
-
       return Promise.reject(err);
     }
-
-    return true;
+    return Promise.resolve(true);
   }).then(function(doWeNeedToUninstall) {
     if (!doWeNeedToUninstall) {
-      return;
+      return Promise.resolve();
     }
     console.log('Trying to remove previously installed Thali Cordova plugin');
     var pluginRemoveCommand = 'cordova plugin remove org.thaliproject.p2p';
Fixed an error with installation edge case.