Index: install.php
===================================================================
RCS file: /cvs/drupal/drupal/install.php,v
retrieving revision 1.35
diff -u -p -r1.35 install.php
--- install.php	24 Jan 2007 14:48:35 -0000	1.35
+++ install.php	29 Jan 2007 10:48:21 -0000
@@ -533,7 +533,6 @@ function install_complete($profile) {
   // Bootstrap newly installed Drupal, while preserving existing messages.
   $messages = $_SESSION['messages'];
   drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
-  menu_rebuild();
   $_SESSION['messages'] = $messages;
 
   // Build final page.
@@ -548,6 +547,7 @@ function install_complete($profile) {
     $profile_message = $function();
   }
 
+  menu_rebuild();
   // If the profile returned a welcome message, use that instead of default.
   if (isset($profile_message)) {
     $output .= $profile_message;
