Update README.md

This commit is contained in:
Martí Climent
2024-09-26 23:13:10 +02:00
committed by GitHub
parent 867cad5af0
commit c464d01c19
-2
View File
@@ -20,8 +20,6 @@ However, under certain scenarios (for example, Unpackaged, self-contained AppSdk
In such case, it may be needed to use the `WindowsPackageManagerStandardFactory()` class, but modifying the CreateInstance method as shown [here (this is how it works on UniGetUI)](https://github.com/marticliment/UniGetUI/blob/9d73f284edfd0e9c26a2a8d3d72187180ea3af23/src/WindowsPackageManager.Interop/WindowsPackageManager/WindowsPackageManagerStandardFactory.cs#L23-L29) so that the undocumented `CLSCTX.CLSCTX_ALLOW_LOWER_TRUST_REGISTRATION` flag is passed to `PInvoke.CoCreateInstance`.
DISCLAIMER: I am no COM expert so I don't know the potential side effects of this undocumented flag. Use at your own risk.
<br>
# Usage example