Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Installing MSIX packages through PowerShell fails to create user directory #647

Open
abenadar opened this issue Sep 26, 2024 · 0 comments
Labels
Needs-Triage Issue needs to be triaged by a member of the core team

Comments

@abenadar
Copy link

MSIX SDK

Describe the bug

One of our customers uses Windows Enterprise 22H2 (though older Versions display the same behaviour) for some managed devices and wants to deploy our app, signed by a developement certificate to allow distribution via MSIX and PowerShell (the app is build using the Windows App SDK and WinUI 3 in case that should matter). Multiple other customers with similar environments never had any issues with this porcess, but there seems to be something wrong which we couldn't troubleshoot despite our best efforts.

Installing the app through different means repectively shows a number of oddities:

If the app is installed through the App Installer:

The Folder at C:\Program Files\WindowsApps will not be removed upon uninstalling, leaving a dead directory;
Everything else appears as expected and the app works.
If the app is installed through PowerShell:

The app does not show up shell:AppsFolder, the Start Menu or Apps & Features;
The %appdata%/Local directory belonging to the app is not created;
The app is however listed when executing Get-AppxPackage, with the following entry:

    Name              : AppName
    Publisher         : CN=OurSigningAuthority
    Architecture      : X64
    ResourceId        : 
    Version           : 1.3.5.0
    PackageFullName   : AppName_1.3.5.0_x64__Signature
    InstallLocation   : C:\Program Files\WindowsApps\AppName_1.3.5.0_x64__Signature
    IsFramework       : False
    PackageFamilyName : AppName_Signature
    PublisherId       : Signature
    IsResourcePackage : False
    IsBundle          : False
    IsDevelopmentMode : False
    NonRemovable      : False
    IsPartiallyStaged : False
    SignatureKind     : Developer
    Status            : Ok

To Reproduce

I wasn't able to reproduce this at all, it occurs only on the managed machines of said client.

Platform

Windows 22H2 | WinUI 3 | Windows App SDK

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue needs to be triaged by a member of the core team label Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage Issue needs to be triaged by a member of the core team
Projects
None yet
Development

No branches or pull requests

1 participant