MicrosoftDocs / msix-docs

repository for msix content
Creative Commons Attribution 4.0 International
59 stars 114 forks source link

Distribute appinstaller and MSIX via Azure blob storage? #425

Closed MoodieG closed 5 months ago

MoodieG commented 5 months ago

I have an automated CD pipeline that signs the MSIX package and uploads both the MSIX package and appinstaller file to an Azure blob storage.

Since my users do not have direct access to the blob storage, I have created a web application that has access to the blob storage with an API that can download the appinstaller or MSIX package. I am able to download both the appinstaller and MSIX package when entering the URL manually in the browser. However, when I launch the appinstaller it displays an error that an app package could not be opened. The reason is "An error occurred while accessing the file from the web. Please try downloading and opening the file locally."

The API returns a FileContentResult and uses the correct MIME. "application/appinstaller" for appinstaller and "application/msix" for the MSIX package.

Any idea what could be wrong?

MoodieG commented 5 months ago

The issue was that I had to enable range processing on my web application API.