Update install_worker.cc
This commit is contained in:
parent
e266fb79fd
commit
7cc2443260
1 changed files with 20 additions and 0 deletions
|
@ -968,6 +968,22 @@ void AddNativeNotificationWorkItems(
|
||||||
notification_helper_path.value(), true);
|
notification_helper_path.value(), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AddWerHelperRegistration(HKEY root,
|
||||||
|
const base::FilePath& wer_helper_path,
|
||||||
|
WorkItemList* list) {
|
||||||
|
DCHECK(!wer_helper_path.empty());
|
||||||
|
|
||||||
|
std::wstring wer_registry_path = GetWerHelperRegistryPath();
|
||||||
|
|
||||||
|
list->AddCreateRegKeyWorkItem(root, wer_registry_path,
|
||||||
|
WorkItem::kWow64Default);
|
||||||
|
|
||||||
|
// The DWORD value is not important.
|
||||||
|
list->AddSetRegValueWorkItem(root, wer_registry_path, WorkItem::kWow64Default,
|
||||||
|
wer_helper_path.value().c_str(), DWORD{0},
|
||||||
|
/*overwrite=*/true);
|
||||||
|
}
|
||||||
|
|
||||||
void AddSetMsiMarkerWorkItem(const InstallerState& installer_state,
|
void AddSetMsiMarkerWorkItem(const InstallerState& installer_state,
|
||||||
bool set,
|
bool set,
|
||||||
WorkItemList* work_item_list) {
|
WorkItemList* work_item_list) {
|
||||||
|
@ -1126,6 +1142,10 @@ void AddFinalizeUpdateWorkItems(const base::Version& new_version,
|
||||||
// overwriting any of the following post-install tasks.
|
// overwriting any of the following post-install tasks.
|
||||||
AddDowngradeCleanupItems(new_version, list);
|
AddDowngradeCleanupItems(new_version, list);
|
||||||
|
|
||||||
|
AddWerHelperRegistration(
|
||||||
|
installer_state.root_key(),
|
||||||
|
GetWerHelperPath(installer_state.target_path(), new_version), list);
|
||||||
|
|
||||||
const std::wstring client_state_key = install_static::GetClientStateKeyPath();
|
const std::wstring client_state_key = install_static::GetClientStateKeyPath();
|
||||||
|
|
||||||
// Adds the command that needs to be used in order to cleanup any breaking
|
// Adds the command that needs to be used in order to cleanup any breaking
|
||||||
|
|
Loading…
Reference in a new issue