From a41f6ef5aa561ce48ae146186e38ff6beeef0944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Climent?= Date: Mon, 25 Mar 2024 15:56:45 +0100 Subject: [PATCH] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 3e18390..779cb90 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,9 @@ Usage instructions: > [!WARNING] > The `CreateAppInstaller()` WinRT function does not exist. `CreatePackageManager()` must be used instead. +> [!CAUTION] +> If an elevated process initializes WinGet with the `WindowsPackageManagerStandardFactory()` class, the method `CreatePackageManager()` will crash. The class `WindowsPackageManagerElevatedFactory()` must be used instead + # Usage example The following example can be found on the `Demo Console App` project on this same repository.