How can I get my application license.xml on Mircrosoft Store

Fred pi 0 Reputation points
2024-11-07T02:45:46.87+00:00

We need to let someone to preload our Store App package to Windows 11 image using DISM /Add-ProvisionedAppxPackages command, how can we generate the XML license file for the /LicensePath switch?

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,137 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hania Lian 18,806 Reputation points Microsoft Vendor
    2024-11-07T03:27:10.88+00:00

    Hello,

    You typically need to follow these steps:

    Acquire the License File: When you obtain your app package from the Microsoft Store, it usually comes with a license file. This file is necessary for the deployment process.

    Export the License File: If you are the developer, you can export the license file from the Microsoft Store Developer Center. Here’s how:

    Sign in to the Microsoft Store Developer Center.

    Navigate to your app and go to the App Management section.

    Look for the App Packages or Distribution section where you can download the app package and the associated license file.

    Use the License File with DISM: Once you have the license file, you can use it with the DISM command. Here’s an example command:

    dism.exe /Image:C:\test\offline /Add-ProvisionedAppxPackage /PackagePath:C:\Test\Apps\MyApp.appx /LicensePath:C:\Test\Apps\MyAppLicense.xml

    This command adds the app package to the Windows image and specifies the path to the XML license file.

    https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/dism-app-package--appx-or-appxbundle--servicing-command-line-options?view=windows-11

    Best Regards,

    Hania Lian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    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.