Index: install.php
===================================================================
--- install.php	(revision 3974)
+++ install.php	(working copy)
@@ -104,6 +104,10 @@
 <td><input name="weblog_title" type="text" id="weblog_title" size="25" /></td>
 </tr>
 <tr>
+<th><?php _e('Your username:'); ?></th>
+	<td><input name="admin_username" type="text" id="admin_username" size="25" /></td>
+</tr>
+<tr>
 <th><?php _e('Your e-mail:'); ?></th>
 	<td><input name="admin_email" type="text" id="admin_email" size="25" /></td>
 </tr>
@@ -120,8 +124,11 @@
 
 // Fill in the data we gathered
 $weblog_title = stripslashes($_POST['weblog_title']);
+$admin_username = stripslashes($_POST['admin_username']);
 $admin_email = stripslashes($_POST['admin_email']);
 // check e-mail address
+if (empty($admin_username)) {
+	die (__("<strong>ERROR</strong>: please type your username"));}
 if (empty($admin_email)) {
 	die (__("<strong>ERROR</strong>: please type your e-mail address"));
 } else if (!is_email($admin_email)) {
@@ -177,7 +184,7 @@
 $random_password = substr(md5(uniqid(microtime())), 0, 6);
 $display_name_array = explode('@', $admin_email);
 $display_name = $display_name_array[0];
-$wpdb->query("INSERT INTO $wpdb->users (ID, user_login, user_pass, user_email, user_registered, display_name, user_nicename) VALUES ( '1', 'admin', MD5('$random_password'), '$admin_email', NOW(), '$display_name', 'admin')");
+$wpdb->query("INSERT INTO $wpdb->users (ID, user_login, user_pass, user_email, user_registered, display_name, user_nicename) VALUES ( '1', '$admin_username', MD5('$random_password'), '$admin_email', NOW(), '$display_name', '$admin_username')");
 $wpdb->query("INSERT INTO $wpdb->usermeta (user_id, meta_key, meta_value) VALUES ({$wpdb->insert_id}, '{$table_prefix}user_level', '10');");
 $admin_caps = serialize(array('administrator' => true));
 $wpdb->query("INSERT INTO $wpdb->usermeta (user_id, meta_key, meta_value) VALUES ({$wpdb->insert_id}, '{$table_prefix}capabilities', '{$admin_caps}');");
@@ -189,7 +196,7 @@
 
 You can log in to the administrator account with the following information:
 
-Username: admin
+Username: $admin_username
 Password: %2\$s
 
 We hope you enjoy your new weblog. Thanks!
@@ -205,12 +212,12 @@
 
 <p><em><?php _e('Finished!'); ?></em></p>
 
-<p><?php printf(__('Now you can <a href="%1$s">log in</a> with the <strong>username</strong> "<code>admin</code>" and <strong>password</strong> "<code>%2$s</code>".'), '../wp-login.php', $random_password); ?></p>
+<p><?php printf(__('Now you can <a href="%1$s">log in</a> with the <strong>username</strong> "<code>'.$admin_username.'</code>" and <strong>password</strong> "<code>%2$s</code>".'), '../wp-login.php', $random_password); ?></p>
 <p><?php _e('<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you. If you lose it, you will have to delete the tables from the database yourself, and re-install WordPress. So to review:'); ?>
 </p>
 <dl>
 <dt><?php _e('Username'); ?></dt>
-<dd><code>admin</code></dd>
+<dd><code><?php echo $admin_username ?></code></dd>
 <dt><?php _e('Password'); ?></dt>
 <dd><code><?php echo $random_password; ?></code></dd>
 	<dt><?php _e('Login address'); ?></dt>
