我試圖以編程方式安裝軟件包。我需要創建包管理器實例。這是投擲E_ACESSDENIED!Windows通用應用程序部署問題
Windows.Management.Deployment.PackageManager packageManager = new Windows.Management.Deployment.PackageManager();
例外:
System.UnauthorizedAccessException: 'Access is denied. (Exception from
HRESULT: 0x80070005 (E_ACCESSDENIED))'
我在管理帳戶。這個API有什麼問題?
中添加按照下面的答案清單管理包的能力和它的工作: https://stackoverflow.com/questions/38721521/findpackagesforcurrentpublisher-in-windows-10-for-pc –