SOLVED

MSIX Deployment with manual appinstaller file

%3CLINGO-SUB%20id%3D%22lingo-sub-1849601%22%20slang%3D%22en-US%22%3EMSIX%20Deployment%20with%20manual%20appinstaller%20file%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1849601%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20help%20with%20our%20MSIX%20deployment%2C%2C%3C%2FP%3E%3CP%3EI%20would%20like%20to%20distribute%20the%20MSIX%20package%20via%20our%20website%20with%20the%20auto-update%20feature.%20I%20have%20a%20signed%20MSIX%20package%20already%20in%20a%20blob%20level%20azure%20container.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20getting%20an%20error%20when%20I%20try%20to%20install%20the%20app%20via%20an%20appinstaller%20file%20I%20created.%26nbsp%3B%3CBR%20%2F%3ESome%20ways%20that%20I%20tried.%3C%2FP%3E%3CP%3E1.%20The%20installer%20file%20works%20with%26nbsp%3B%20a%20local%20uri%20like%20%60C%3A%5CUsers%5Cname%5CDownloads%5CmyApp.appinstaller%60%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20using%20Windows%2010%20Pro%2C%202004.%20OS%20build%2019041.610.%3C%2FP%3E%3CP%3EPlease%20check%20the%20below%20code%20for%20our%20appinstaller%20file.%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%221.jpg%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F231192iAE00D58A6C3DF074%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%221.jpg%22%20alt%3D%221.jpg%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-html%22%3E%3CCODE%3E%0A%3CAPPINSTALLER%20xmlns%3D%22http%3A%2F%2Fschemas.microsoft.com%2Fappx%2Fappinstaller%2F2018%22%20version%3D%221.2.20307.1%22%20uri%3D%22https%3A%2F%2Fcontainers.blob.core.windows.net%2F...%2FmyApp.appinstaller%22%3E%0A%0A%20%20%20%20%3CMAINPACKAGE%20name%3D%22myApp%22%20publisher%3D%22...%22%20version%3D%221.2.20307.1%22%20processorarchitecture%3D%22x64%22%20uri%3D%22https%3A%2F%2Fcontainers.blob.core.windows.net%2F...%2FmyApp.msix%22%3E%3C%2FMAINPACKAGE%3E%0A%20%20%0A%20%3CUPDATESETTINGS%3E%20%0A%20%20%3CONLAUNCH%20hoursbetweenupdatechecks%3D%220%22%20showprompt%3D%22true%22%20updateblocksactivation%3D%22true%22%3E%3C%2FONLAUNCH%3E%0A%20%20%3CFORCEUPDATEFROMANYVERSION%3Etrue%3C%2FFORCEUPDATEFROMANYVERSION%3E%0A%20%3C%2FUPDATESETTINGS%3E%0A%3C%2FAPPINSTALLER%3E%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1859599%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20Deployment%20with%20manual%20appinstaller%20file%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1859599%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F856043%22%20target%3D%22_blank%22%3E%40dicong%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDoes%20a%20restart%20of%20your%20computer%20fix%20the%20issue%3F%20To%20help%20us%20investigate%20the%20issue%2C%20can%20you%20please%20file%20a%20Feedback%20Hub%20item%20(Windows%20key%20%2B%20F)%20in%20this%20category%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DO-category.PNG%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F231830iE05E0FF0412855EA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DO-category.PNG%22%20alt%3D%22DO-category.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you!%3C%2FP%3E%0A%3CP%3ETanaka%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1861078%22%20slang%3D%22en-US%22%3ERe%3A%20MSIX%20Deployment%20with%20manual%20appinstaller%20file%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1861078%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F387730%22%20target%3D%22_blank%22%3E%40Tanaka_Jimha%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Tanaka%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20%60restart%60%20advice.%20And%20that%20magic%20%60restart%60%20did%20solve%20my%20problem...%3CIMG%20class%3D%22lia-deferred-image%20lia-image-emoji%22%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Fhtml%2Fimages%2Femoticons%2Ffacepalm_40x40.gif%22%20alt%3D%22%3Afacepalm%3A%22%20title%3D%22%3Afacepalm%3A%22%20%2F%3E%26nbsp%3B%20The%20error%20disappears%20and%20I%20can%20install%20now.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%3C%2FP%3E%3CP%3Edicong%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

Hi,

 

Please help with our MSIX deployment,,

I would like to distribute the MSIX package via our website with the auto-update feature. I have a signed MSIX package already in a blob level azure container. 

I am getting an error when I try to install the app via an appinstaller file I created. 
Some ways that I tried.

1. The installer file works with  a local uri like `C:\Users\name\Downloads\myApp.appinstaller`

 

I am using Windows 10 Pro, 2004. OS build 19041.610.

Please check the below code for our appinstaller file. 

1.jpg

<?xml version="1.0" encoding="utf-8"?>
<AppInstaller
    xmlns="http://schemas.microsoft.com/appx/appinstaller/2018"
    Version="1.2.20307.1"
    Uri="https://containers.blob.core.windows.net/.../myApp.appinstaller" >

    <MainPackage Name="myApp" Publisher="..." Version="1.2.20307.1" ProcessorArchitecture="x64" Uri="https://containers.blob.core.windows.net/.../myApp.msix" />
		
	<UpdateSettings> 
		<OnLaunch HoursBetweenUpdateChecks="0" ShowPrompt="true" UpdateBlocksActivation="true"/>
		<ForceUpdateFromAnyVersion>true</ForceUpdateFromAnyVersion>
	</UpdateSettings>
</AppInstaller>
3 Replies
best response confirmed by dicong (New Contributor)
Solution

Hi @dicong 

 

Does a restart of your computer fix the issue? To help us investigate the issue, can you please file a Feedback Hub item (Windows key + F) in this category:

DO-category.PNG

 

Thank you!

Tanaka

 

 

Hi @dicong 

 

Does the URL for the package or the appinstaller contain any spaces in it?

 

During some internal tests we did, we had similar crashes (the package worked correctly when manually installed but failed when triggered from the appinstaller).

 

It turned out that the white spaces from the URL were the problem, even if they seemed to be correctly encoded ("%20"). Once we removed the space from the URl the installation when through without any problems.

Cheers,

Bogdan

@Tanaka_Jimha 

Hi Tanaka, 

 

Thanks for your `restart` advice. And that magic `restart` did solve my problem...:facepalm:  The error disappears and I can install now.

 

thanks

dicong