mirror of
https://github.com/Alex313031/thorium.git
synced 2025-01-10 03:47:44 -03:00
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);
|
||||
}
|
||||
|
||||
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,
|
||||
bool set,
|
||||
WorkItemList* work_item_list) {
|
||||
|
@ -1126,6 +1142,10 @@ void AddFinalizeUpdateWorkItems(const base::Version& new_version,
|
|||
// overwriting any of the following post-install tasks.
|
||||
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();
|
||||
|
||||
// Adds the command that needs to be used in order to cleanup any breaking
|
||||
|
|
Loading…
Reference in a new issue