Why won't App Installer install signed MSIX?

Andrew Schmidt 31 Reputation points
2021-08-30T23:27:22.233+00:00

I am developing a WinUI3 MSIX -based application. I have a valid code signing certificate that has signed the MSIX. When I double click the MSIX to install with App Installer, on the first screen it verifies the app as a Trusted App (see first attached screenshot). However, when I click the Install button, the installation fails with the error message "This app package is not supported for installation by App Installer because it uses certain restricted capabilities." (See the second attached screenshot) The install is being attempted on Windows 10 Enterprise 21H1 OS build 19043.1165. - Why won't the App Installer install this MSIX package? I thought the most recent Windows 10 release would install a properly signed MSIX without being denied for using so-called restricted capabilities. - Why does the first App Installer screen verify this package as a trusted app and indicate the package can be installed, only to abort the installation indicating that the package has not been verified? - To add more confusion, the MSIX installs successfully from PowerShell with the command Add-AppxPackage -Path '.\TrustedAccess-WinUI3 (Package)_1.0.0.0_x64.msix'. Why does App Installer fail, while PowerShell Add-AppxPackage succeeds? ![127743-trusted-access-appinstaller-screen-1.png][1] ![127627-trusted-access-appinstaller-screen-2.png][2] [1]: /api/attachments/127743-trusted-access-appinstaller-screen-1.png?platform=QnA [2]: /api/attachments/127627-trusted-access-appinstaller-screen-2.png?platform=QnA

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,170 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Xiaopo Yang - MSFT 11,496 Reputation points Microsoft Vendor
    2021-08-31T01:29:10.497+00:00

    According to the issue, perhaps the MSIX is not signed from the Store yet and as such it must be sideloaded as a developer tool.


  2. Andrew Schmidt 31 Reputation points
    2021-08-31T23:27:32.803+00:00

    This Microsoft documentation says that app with restricted capabilities can be sideloaded. So the App Installer should be able to install this MSIX package.

    0 comments No comments

  3. Anonymous
    2022-03-06T15:12:57.497+00:00

    From what I understand, the Desktop App Installer (the application you use when you double-click on an MSIX file) doesn't support installing apps with restrictions, even when signed, even when the PC is in developer mode.

    However, you can add it programmatically using the PackageManager WinRT type, as described here: https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/grant-identity-to-nonpackaged-apps#register-your-sparse-package-at-run-time

    0 comments No comments