success = installer->Install(path, &app_id);
if (!success && storage->Contains(app_id)) {
g_print("trying to update %s\n", app_id.c_str());
success = installer->Install(path, &app_id);
if (!success && storage->Contains(app_id)) {
g_print("trying to update %s\n", app_id.c_str());
} else if (uninstall_id) {
success = installer->Uninstall(uninstall_id);
} else if (reinstall_path) {
} else if (uninstall_id) {
success = installer->Uninstall(uninstall_id);
} else if (reinstall_path) {
} else if (debugging_port >= 0) {
#if defined(SHARED_PROCESS_MODE)
// Deal with the case "xwalkctl -d PORT_NUMBER"
} else if (debugging_port >= 0) {
#if defined(SHARED_PROCESS_MODE)
// Deal with the case "xwalkctl -d PORT_NUMBER"