Index: wp-includes/functions.php
===================================================================
--- wp-includes/functions.php	(revision 18542)
+++ wp-includes/functions.php	(working copy)
@@ -2779,7 +2779,7 @@
  * @param string|array $args Optional arguments to control behavior.
  */
 function _default_wp_die_handler( $message, $title = '', $args = array() ) {
-	$defaults = array( 'response' => 500 );
+	$defaults = array( 'response' => 500, 'inline_styles' => false );
 	$r = wp_parse_args($args, $defaults);
 
 	$have_gettext = function_exists('__');
@@ -2817,7 +2817,19 @@
 			nocache_headers();
 			header( 'Content-Type: text/html; charset=utf-8' );
 		}
-	
+
+		if ( ! $r['inline_styles'] ) {
+			// Attempt to find the admin url
+			if ( defined( 'WP_SITEURL' ) && '' != WP_SITEURL )
+				$admin_dir = WP_SITEURL . '/wp-admin/';
+			elseif ( function_exists( 'get_bloginfo' ) && '' != get_bloginfo( 'wpurl' ) )
+				$admin_dir = get_bloginfo( 'wpurl' ) . '/wp-admin/';
+			elseif ( strpos( $_SERVER['PHP_SELF'], 'wp-admin' ) !== false )
+				$admin_dir = '';
+			else
+				$r['inline_styles'] = true; // If we couldn't find the admin url for the install stylesheet, use the minimal inline styling anyway.
+		}
+
 		if ( empty($title) )
 			$title = $have_gettext ? __('WordPress &rsaquo; Error') : 'WordPress &rsaquo; Error';
 	
@@ -2833,6 +2845,7 @@
 <head>
 	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 	<title><?php echo $title ?></title>
+<?php if ( $r['inline_styles'] ) : ?>
 	<style type="text/css">
 		html {
 			background: #f9f9f9;
@@ -2865,6 +2878,13 @@
 		body { font-family: Tahoma, arial; }
 		<?php endif; ?>
 	</style>
+<?php else : ?>
+	<link rel="stylesheet" href="<?php echo $admin_dir; ?>css/install.css" type="text/css" />
+	<?php if ( 'rtl' == $text_direction ) : ?>
+	<link rel="stylesheet" href="<?php echo $admin_dir; ?>css/install-rtl.css" type="text/css" />
+	<?php endif; ?>
+<?php endif; //$r['inline_styles'] ?>
+	
 </head>
 <body id="error-page">
 <?php endif; // !function_exists( 'did_action' ) || !did_action( 'admin_head' ) ?>
