diff --git a/pathauto.install b/pathauto.install
index 23babee..ac6dd6b 100644
--- a/pathauto.install
+++ b/pathauto.install
@@ -60,9 +60,7 @@ function pathauto_update_8001() {
  * Converts patterns from configuration objects to configuration entities.
  */
 function pathauto_update_8100(&$sandbox) {
-  if (!\Drupal::service('module_handler')->moduleExists('ctools')) {
-    throw new UpdateException('Install Chaos tools suite (https://www.drupal.org/project/ctools) before running this database update.');
-  }
+  \Drupal::service('module_installer')->install(['ctools']);
 
   $messages = array();
   $entity_manager = \Drupal::service('entity.manager');
