If I want to let someone preload my Store App package to Windows 10 image using DISM /Add-ProvisionedAppxPackages command, how can I generate the XML license file for the /LicensePath switch?

Subramanian, Sethuramalingam 0 Reputation points
2025-09-26T09:42:38.13+00:00

If I want to let someone preload my Store App package to Windows 10 image using DISM /Add-ProvisionedAppxPackages command, how can I generate the XML license file for the /LicensePath switch?

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

1 answer

Sort by: Most helpful
  1. Oliver Nguyen 1,405 Reputation points
    2025-09-26T10:17:47.68+00:00

    Hi Subramanian, Sethuramalingam,

    1. Prepare a folder containing:

    • MyApp.appx (or .msixbundle)
    • dependency packages (vclibs, framework packages)
    • license.xml (provided by Store/Partner center)

    2. Provision online (example PowerShell):

    Add-AppxProvisionedPackage -Online -FolderPath "C:\Provision\MyApp"

    or

    Add-AppxProvisionedPackage -Online -PackagePath C:\Provision\MyApp\MyApp.appx -DependencyPackagePath C:\Provision\MyApp\dep1.appx -LicensePath C:\Provision\MyApp\license.xml

    1. For offline images with DISM, the same folder should be used with the DISM -FolderPath option (or pass -LicensePath to DISM). The license file must be present in the folder or correctly referenced.
    2. If DISM complains 0xc1570103 (“license file not found”), confirm the license.xml is in the folder you passed and that you used the correct parameter. If you don’t have the license and the app closes on first run, you likely need to obtain the offline-license package from the Store for Business / Partner Center; sideloading while online may let users run the app but won’t help for pre-provisioned offline images.

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

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

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

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