mirror of
https://github.com/marticliment/WinGet-API-from-CSharp
synced 2026-06-21 13:57:37 +00:00
Update README.md
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user