PowerShell / DSC

This repo is for the DSC v3 project
MIT License
219 stars 30 forks source link

Support embedded resource manifests on Windows #560

Open SteveL-MSFT opened 1 month ago

SteveL-MSFT commented 1 month ago

Summary of the new feature / enhancement

Windows exe's can have resources embedded in them so they can ship/sign just one file. dsc would need to check every exe to see if it has an embedded resource manifest, but with caching, this should only be an expensive operation the first time for resource discovery and we can invalidate specific portions of the cache if a directory's modified date changes. The embedded resource manifest would take precedence over any external file equivalent.

Proposed technical implementation details (optional)

No response

anmenaga commented 1 month ago

Need an example of an embedded resource manifest please.

SteveL-MSFT commented 1 month ago

Need an example of an embedded resource manifest please.

The file format is exactly the same, but we need to use a win32 api to retrieve it. Looks like there is at least one crate that also does this https://docs.rs/native-windows-gui/latest/native_windows_gui/struct.EmbedResource.html

Embedded resource MIGHT solve the AppStore problem