-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Windows eventlog messages file into new standalone DLL. (#487)
The Windows EventLog service opens the MessageFile when any process is viewing events, such as when running `Get-WinEvent` in PS or using the Event Viewer MMC snap-in. Before this change, the service would open `iotedged.exe`, which in turn would prevent `Uninstall-SecurityDaemon` from deleting it and break uninstall / reinstall / upgrade scenarios. This change moves the message resource into a new standalone DLL `iotedged_eventlog_messages.dll` that is installed into a separate `ProgramData` directory. Failing to remove this DLL in the uninstaller and failing to overwrite it in the installer are not considered fatal errors. This is because the message IDs don't change frequently, so a stale message file from a previous install causes little or no harm.
- Loading branch information
Showing
8 changed files
with
98 additions
and
29 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[package] | ||
name = "iotedged-eventlog-messages" | ||
version = "0.1.0" | ||
authors = ["Azure IoT Edge Devs"] | ||
publish = false | ||
|
||
[lib] | ||
crate-type = ["cdylib"] | ||
|
||
[target.'cfg(windows)'.build-dependencies] | ||
version-compare = "0.0.6" | ||
winreg = "0.5.1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
// Copyright (c) Microsoft. All rights reserved. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters