i can't installed one appxbunlde for every local Users on my windows11 system. what should i do?

li dong 0 Reputation points
2023-12-18T02:51:05.3433333+00:00

i can't installed one appxbunlde for every local Users on my windows11 system. what should i do?

i use vs2022-(Windows application package project) to created one appxbundle,reference a .net6.0 c# program.

step1: i use as follow command to install

Add-AppxProvisionedPackage -Online -PackagePath "D:\asd\AppX\Package_1.0.0.0_x86.msixbundle" -SkipLicense

now all local users can be installed the app.

step2: i use as follow command to uninstall

$getProvisionedAppxPackage = Get-ProvisionedAppxPackage -Online | Where-Object { $_.DisplayName -eq "9111c31f-e85d-4176-a0d8-efcee95dca17" }

Remove-AppxProvisionedPackage -Online -AllUsers -PackageName $getProvisionedAppxPackage.PackageName

Remove-AppxPackage -AllUsers -Package $getProvisionedAppxPackage.PackageName

step3: run step1 again

i found only current user that appxbundle is installed.

step4: run step2 again,run step1 again

i found all use that appxbundle is installed,it normal.

i want all user to install successfuly every times.

so what should i do? is it a windows bug?

log (event viewer Microsoft-Windows-AppXDeploymentServer/Operational):

Deployment Register operation (target volume C:) for package 9111c31f-e85d-4176-a0d8-efcee95dca17_1.0.0.0_neutral_~_xs0e7hfrdh760 from (AppxBundleManifest.xml) failed with error 0x80073CF1. For help diagnosing app deployment issues, see http://go.microsoft.com/fwlink/?LinkId=235160.

API Rejected package: 9111c31f-e85d-4176-a0d8-efcee95dca17_1.0.0.0_x86__xs0e7hfrdh760, Reason: AppX deployment operation failed with error 0x0 from 5

Unable to install bundle C:\Program Files\WindowsApps\9111c31f-e85d-4176-a0d8-efcee95dca17_1.0.0.0_neutral_~_xs0e7hfrdh760\AppxMetadata\AppxBundleManifest.xml. There is no suitable application package for x64 architecture.

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. AllenLiu-MSFT 49,316 Reputation points Microsoft External Staff
    2023-12-19T06:07:51.82+00:00

    Hi, @li dong

    Thank you for posting in Microsoft Q&A forum.

    To install an appxbundle for all local users on a Windows 11 system, you can use the Add-AppxPackage PowerShell command instead of Add-AppxProvisionedPackage. The Add-AppxProvisionedPackage command installs the package for new users only, while the Add-AppxPackage command installs the package for all users on the system. Here's an example command:

    Add-AppxPackage -Path "D:\asd\AppX\DMSCloudClientPackage_1.0.0.0_x86.msixbundle"
    

    To uninstall the package, you can use the Remove-AppxPackage command:

    Remove-AppxPackage -Package "9111c31f-e85d-4176-a0d8-efcee95dca17_1.0.0.0_x86__xs0e7hfrdh760"
    

    Note that you need to specify the package name in the Remove-AppxPackage command, not the provisioned package object. Also, make sure to use the correct package name and architecture for your appxbundle.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".


  2. li dong 0 Reputation points
    2023-12-19T06:58:12.1333333+00:00

    00000000000

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.