--- install.inc (Drupal Version 6.12)
+++ install.inc (Drupal Version 6.12-patched)
@@ -676,6 +676,12 @@
   }
 
   require_once($profile_file);
+  
+  // Agument the maximum execution time
+  
+  if ((int)ini_get('max_execution_time') < 240) {
+    set_time_limit(240);
+  }
 
   // Get a list of modules required by this profile.
   $function = $profile .'_profile_modules';
