Closed Bug 1682511 Opened 4 years ago Closed 4 years ago

Record the WER runtime exception module in the Windows registry

Categories

(Toolkit :: Crash Reporting, task)

Unspecified
Windows
task

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox89 --- fixed

People

(Reporter: gsvelto, Assigned: gsvelto)

References

Details

Attachments

(1 file)

Once the WER runtime exception module is ready we'll need to record its location in the Windows registry. Specifically the full path to the module's DLL needs to be recorded under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\RuntimeExceptionHelperModules on native 32/64-bit Windows or under HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\Windows Error Reporting\ 32-bit apps running under 64-bit Windows

Since this will be rolled out with updates we need to make sure that this is also done while updating and not just upon the first installation.

Blocks: 1682516
Blocks: 1682518

The registry entry must be a DWORD with data set to 0x00000000 and the name containing the module's full path.

Assignee: nobody → gsvelto
Status: NEW → ASSIGNED

Molly I need some help hacking the Windows installer. I need to write a registry key upon installation (and upon upgrade too). It will point to the newly installed Windows Error Reporting module DLL as per comment 0. Ideally this key should also be deleted when uninstalling.

My NSIS-fu is a bit rusty so scouring our installer files I kind-of figured that adding the key should happen somewhere in here but I should also do it in PostUpdate. I'm also not sure where removing the key during uninstallation should go, maybe here? Does this make sense or am I on the wrong track?

Flags: needinfo?(mhowell)

You're definitely on the right track. Just as a matter of organization, I'd suggest putting this next to where the accessibility DLL registrations are handled, so here in the installer, here in PostUpdate, and here in the uninstaller. I was also going to mention PushFilesToCheck, but I see you've already got that handled, so I think that should do it.

Flags: needinfo?(mhowell)
Attachment #9207753 - Attachment description: Bug 1682511 - Add the WER module to the installer and record its path in the Windows registry → Bug 1682511 - Add the WER module to the installer and record its path in the Windows registry r=mhowell
Blocks: 1697895
Pushed by gsvelto@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/caab7d97ad51 Add the WER module to the installer and record its path in the Windows registry r=mhowell
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
See Also: → 1703641
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: