msix app not automatically updating on windows server

%3CLINGO-SUB%20id%3D%22lingo-sub-1373967%22%20slang%3D%22en-US%22%3Emsix%20app%20not%20automatically%20updating%20on%20windows%20server%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1373967%22%20slang%3D%22en-US%22%3E%3CP%3EMy%20wpf%20msix%20app%20automatically%20updates%20on%20windows%2010%20local%20machines%2C%20but%20does%20not%20update%20automatically%20on%20our%20rds%20windows%202019%20server.%26nbsp%3B%20I've%20tried%20implementing%20custom%20updating%20using%20the%20packaging%20api%20but%20that%20is%20not%20working%20either%20and%20throws%20%22external%20component%20has%20thrown%20an%20exception%22%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-csharp%22%3E%3CCODE%3E%20%20var%20package%20%3D%20new%20PackageManager()%3B%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20volume%20%3D%20package.GetDefaultPackageVolume()%3B%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20var%20result%20%3D%20await%20package.AddPackageByAppInstallerFileAsync(new%20Uri(installerPath)%2C%20AddPackageByAppInstallerOptions.ForceTargetAppShutdown%2C%20volume)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHow%20do%20I%20get%20automatic%20updates%20to%20work%20on%20windows%20server%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1444140%22%20slang%3D%22en-US%22%3ERe%3A%20msix%20app%20not%20automatically%20updating%20on%20windows%20server%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1444140%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F568615%22%20target%3D%22_blank%22%3E%40chris-evans%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20help%20us%20investigate%2C%20can%20you%20please%20file%20a%20Feedback%20Hub%20item%20under%20Category%3A%20Developer%20Platform%20%26gt%3B%20App%20deployment.%20Please%20also%20include%20the%20App%20Installer%20file%20you're%20using%20and%20the%20complete%20error%20you're%20getting%20when%20trying%20to%20update%20from%20code.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%2C%3C%2FP%3E%0A%3CP%3ETanaka%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

My wpf msix app automatically updates on windows 10 local machines, but does not update automatically on our rds windows 2019 server.  I've tried implementing custom updating using the packaging api but that is not working either and throws "external component has thrown an exception";

 

 

  var package = new PackageManager();

                var volume = package.GetDefaultPackageVolume();

                var result = await package.AddPackageByAppInstallerFileAsync(new Uri(installerPath), AddPackageByAppInstallerOptions.ForceTargetAppShutdown, volume);

 

 

How do I get automatic updates to work on windows server?

1 Reply

Hi @chris-evans,

 

To help us investigate, can you please file a Feedback Hub item under Category: Developer Platform > App deployment. Please also include the App Installer file you're using and the complete error you're getting when trying to update from code. 

Thanks,

Tanaka