Index: src/wp-admin/includes/class-plugin-upgrader.php
===================================================================
--- src/wp-admin/includes/class-plugin-upgrader.php	(revision 48740)
+++ src/wp-admin/includes/class-plugin-upgrader.php	(working copy)
@@ -132,6 +132,14 @@
 			add_action( 'upgrader_process_complete', 'wp_clean_plugins_cache', 9, 0 );
 		}
 
+		$type = 'install';
+
+		if ( ! empty( $this->skin->overwrite ) ) {
+			if ( in_array( $this->skin->overwrite, array( 'update-plugin', 'downgrade-plugin' ), true ) ) {
+				$type = $this->skin->overwrite;
+			}
+		}
+
 		$this->run(
 			array(
 				'package'           => $package,
@@ -140,7 +148,7 @@
 				'clear_working'     => true,
 				'hook_extra'        => array(
 					'type'   => 'plugin',
-					'action' => 'install',
+					'action' => $type,
 				),
 			)
 		);
Index: src/wp-admin/includes/class-theme-upgrader.php
===================================================================
--- src/wp-admin/includes/class-theme-upgrader.php	(revision 48740)
+++ src/wp-admin/includes/class-theme-upgrader.php	(working copy)
@@ -245,6 +245,14 @@
 			add_action( 'upgrader_process_complete', 'wp_clean_themes_cache', 9, 0 );
 		}
 
+		$type = 'install';
+
+		if ( ! empty( $this->skin->overwrite ) ) {
+			if ( in_array( $this->skin->overwrite, array( 'update-theme', 'downgrade-theme' ), true ) ) {
+				$type = $this->skin->overwrite;
+			}
+		}
+
 		$this->run(
 			array(
 				'package'           => $package,
@@ -253,7 +261,7 @@
 				'clear_working'     => true,
 				'hook_extra'        => array(
 					'type'   => 'theme',
-					'action' => 'install',
+					'action' => $type,
 				),
 			)
 		);
