How to implement the download of free DLC without using UI thread

Rhuan Inocêncio 0 Reputation points
2025-01-28T11:17:00.8+00:00

Hi, In a store app, is it possible to implemente do download of DLC without the need of the UI thread? I ve tried with storecontext but seems not possible. Also, is it possible to start the download of free DLC without the action of purchasing it? In my tests, I seem to be unable to download the DlC using the DownloadAndInstallStorePaxkagesAsynx() if I don’t “buy” it before, using the RequestPurchaseAsync()

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,077 questions
Internet Information Services
Universal Windows Platform (UWP)
{count} votes

1 answer

Sort by: Most helpful
  1. Rhuan Inocêncio 0 Reputation points
    2025-03-02T05:52:50.6266667+00:00

    Hi, so the problem is the following: We found a way to solve the problem: using the getFreeEntitlement() from appinstallmanager. But now, when we try to use the method StartProductInstallAsync(productid) it don’t work in release, only when debugging through visual studio. When we run the method from an msix, we get an out of index error. ( Just to remember, the methods are running through a service, not from an application)

    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.