SOLVED

Auto-update an app package with a Windows service

%3CLINGO-SUB%20id%3D%22lingo-sub-1894555%22%20slang%3D%22en-US%22%3EAuto-update%20an%20app%20package%20with%20a%20Windows%20service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1894555%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EUsing%20the%20MSIX%20latest%20packaging%20tool%2C%20I%20managed%20to%20convert%20our%20Win32%20installer%2C%20which%20contains%20a%20Windows%20service%2C%20into%20an%20app%20package.%20We'd%20like%20to%20take%20advantage%20of%20the%20app%20installer%20functionality%20to%20automatically%20update%20this%20app%20package.%20So%20far%2C%20when%20I%20tried%20to%20install%20the%20app%20package%20from%20our%20Azure%20website%2C%20it%20returns%20'unknown%20error'.%20So%20I%20can't%20debug%20anymore.%20I%20use%20a%20very%20simple%20app%20installer%20file.%3C%2FP%3E%3CP%3EA%20few%20months%20ago%2C%20I%20was%20able%20to%20handle%20the%20auto%20update%20with%20our%20Azure%20website%20on%20a%20different%20Win32%20application%20containing%20a%20background%20process.%3CBR%20%2F%3ESo%2C%20is%20it%20possible%20to%20auto%20update%20an%20app%20package%20which%20contains%20a%20Windows%20service%20using%20the%20app%20installer%20feature%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%3C%2FP%3E%3CP%3EAdel.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1918303%22%20slang%3D%22en-US%22%3ERe%3A%20Auto-update%20an%20app%20package%20with%20a%20Windows%20service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1918303%22%20slang%3D%22en-US%22%3EHi%20Tanaka%2C%3CBR%20%2F%3EThank%20you%20very%20much%20for%20your%20quick%20answer.%3CBR%20%2F%3EI'll%20let%20you%20know%20next%20week%20when%20it's%20done.%3CBR%20%2F%3ECheers.%3CBR%20%2F%3E%3CBR%20%2F%3EP.S%3A%20Last%20year%2C%20I%20learned%20a%20lot%20watching%20your%20video%20tutorials%20%3B)%3C%2Fimg%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1926275%22%20slang%3D%22en-US%22%3ERe%3A%20Auto-update%20an%20app%20package%20with%20a%20Windows%20service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1926275%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%2F387730%22%20target%3D%22_blank%22%3E%40Tanaka_Jimha%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20you%20please%20help%20me%20solve%20this%20issue%3F%3C%2FP%3E%3CP%3EHere's%20the%20Feedback%20hub%20as%20requested%3A%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Faka.ms%2FAAaeifp%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3Ehttp%3A%2F%2Faka.ms%2FAAaeifp%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20attached%20a%20video%20of%20the%20issue%2C%20the%20app%20package%20file%20and%20more.%3C%2FP%3E%3CP%3EI%20don't%20know%20what's%20wrong%20with%20my%20Azure%20config.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1928795%22%20slang%3D%22en-US%22%3ERe%3A%20Auto-update%20an%20app%20package%20with%20a%20Windows%20service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1928795%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%2F871627%22%20target%3D%22_blank%22%3E%40adelkeita%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%20for%20filing%20the%20feedback.%20I'm%20forwarding%20it%20to%20our%20devs%20to%20look%20into%20the%20issue.%20Did%20a%20machine%20restart%20not%20change%20anything%20for%20you%3F%3CBR%20%2F%3E%3CBR%20%2F%3EGlad%20to%20hear%20the%20video%20tutorials%20were%20helpful%20%3A)%3C%2Fimg%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ECheers%2C%3C%2FP%3E%0A%3CP%3ETanaka%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1930160%22%20slang%3D%22en-US%22%3ERe%3A%20Auto-update%20an%20app%20package%20with%20a%20Windows%20service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1930160%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%2F387730%22%20target%3D%22_blank%22%3E%40Tanaka_Jimha%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETwo%20days%20ago%20I%20was%20still%20having%20the%20issue%20after%20restarting%20my%20PC.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYesterday%20I%20tried%20many%20things...%20I%20did%20restart%20my%20workstation%2C%20I%20have%20reset%20the%20Feedback%20hub%20(had%20some%20issues)%2C%20I've%20done%20all%20of%20the%20updates%20in%20the%20Store%2C%26nbsp%3B%20I%20made%20some%20changes%20in%20the%20Azure%20App%20Service%20configuration%20settings%20(changed%20from%20ASP%20to%20.NET%20Core%2C%2064-bit%20with%20Web%20sockets).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThen%20after%20restarting%20my%20workstation%2C%20and%20modifying%20the%20%22%3CSTRONG%3EUpdateSettings%3C%2FSTRONG%3E%22%20part%20of%20the%20app%20installer%20file%2C%20I%20managed%20to%20make%20it%20work%20with%20this%20configuration%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-html%22%3E%3CCODE%3E%3CUPDATESETTINGS%3E%0A%20%20%20%20%20%3CONLAUNCH%20hoursbetweenupdatechecks%3D%220%22%20showprompt%3D%22false%22%20updateblocksactivation%3D%22false%22%3E%3C%2FONLAUNCH%3E%0A%3C%2FUPDATESETTINGS%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3EWe%20would%20like%20to%20always%20update%20this%20app%20package%20silently%20without%20any%20user%20input.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20noticed%20that%20I'm%20getting%20error%26nbsp%3B%3CSTRONG%3E0x80D05011%3C%2FSTRONG%3E%2C%20if%20I%20do%20this%3A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-html%22%3E%3CCODE%3E%20%20%3CUPDATESETTINGS%3E%0A%20%20%20%20%20%3CONLAUNCH%20hoursbetweenupdatechecks%3D%220%22%3E%3C%2FONLAUNCH%3E%0A%20%20%3C%2FUPDATESETTINGS%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20I%20get%20error%20%3CSTRONG%3E0xC00CEE01%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CP%3E%3CEM%3Eerror%200xC00CEE01%3A%20The%20XML%20in%20the%20.appinstaller%20file%20is%20not%20valid%20...%20Reason%3A%20Unexpected%20end%20of%20input.%20(0xc00cee01)%3C%2FEM%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eif%20I%20do%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-html%22%3E%3CCODE%3E%20%20%3CUPDATESETTINGS%3E%0A%20%20%20%20%20%3CONLAUNCH%20hoursbetweenupdatechecks%3D%220%22%20showprompt%3D%22false%22%20updateblocksactivation%3D%22false%22%3E%3C%2FONLAUNCH%3E%0A%20%20%20%20%20%3CFORCEUPDATEFROMANYVERSION%3Etrue%3C%2FFORCEUPDATEFROMANYVERSION%3E%0A%20%20%3C%2FUPDATESETTINGS%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eor%20this%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-html%22%3E%3CCODE%3E%20%20%3CUPDATESETTINGS%3E%0A%20%20%20%20%20%3CONLAUNCH%20hoursbetweenupdatechecks%3D%220%22%20showprompt%3D%22false%22%20updateblocksactivation%3D%22false%22%3E%3C%2FONLAUNCH%3E%0A%20%20%20%20%20%3CAUTOMATICBACKGROUNDTASK%3E%3C%2FAUTOMATICBACKGROUNDTASK%3E%0A%20%20%3C%2FUPDATESETTINGS%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20don't%20know%20why%20I%20can't%20use%20these%202%20attributes%20%22ForceUpdateFromAnyVersion%22%20and%20%22AutomaticBackgroundTask%22.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20it%20be%20possible%20to%20get%20%22%3CSPAN%3E%3CSTRONG%3EForceUpdateFromAnyVersion%3C%2FSTRONG%3E%22%20to%20work%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks.%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1951975%22%20slang%3D%22en-US%22%3ERe%3A%20Auto-update%20an%20app%20package%20with%20a%20Windows%20service%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1951975%22%20slang%3D%22en-US%22%3EHi%20Tanaka!%3CBR%20%2F%3E%3CBR%20%2F%3EI've%20just%20realized%20that%20after%20restarting%20my%20PC%2C%20the%20element%20%22ForceUpdateFromAnyVersion%22%20works%20fine%20now.%3CBR%20%2F%3E%3CBR%20%2F%3EThank%20you%20very%20much%20for%20the%20support!%3CBR%20%2F%3E%3CBR%20%2F%3ECheers%2C%3CBR%20%2F%3E%3CBR%20%2F%3EAdel.%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi,

 

Using the MSIX latest packaging tool, I managed to convert our Win32 installer, which contains a Windows service, into an app package. We'd like to take advantage of the app installer functionality to automatically update this app package. So far, when I tried to install the app package from our Azure website, it returns 'unknown error'. So I can't debug anymore. I use a very simple app installer file.

A few months ago, I was able to handle the auto update with our Azure website on a different Win32 application containing a background process.
So, is it possible to auto update an app package which contains a Windows service using the app installer feature?

Thanks

Adel.

7 Replies
best response confirmed by adelkeita (Occasional Contributor)
Solution

Hi @adelkeita 


Installing a package with a Windows service using the App Installer file is supported.  Restarting your machine may fix the error. To help us investigate the issue, can you please make a Feedback Hub submission in the Developer Platform > App Deployment category, while reproducing the error.  And then can you please post the link to your Feedback Hub submission on here when you're done.

 

Thanks,
Tanaka

Hi Tanaka,
Thank you very much for your quick answer.
I'll let you know next week when it's done.
Cheers.

P.S: Last year, I learned a lot watching your video tutorials ;)

Hi @Tanaka_Jimha 

 

Can you please help me solve this issue?

Here's the Feedback hub as requested: http://aka.ms/AAaeifp

 

I have attached a video of the issue, the app package file and more.

I don't know what's wrong with my Azure config.

 

Thank you.

Hi @adelkeita 

 

Thanks for filing the feedback. I'm forwarding it to our devs to look into the issue. Did a machine restart not change anything for you?

Glad to hear the video tutorials were helpful :)

 

Cheers,

Tanaka

Hi @Tanaka_Jimha 

 

Two days ago I was still having the issue after restarting my PC.

 

Yesterday I tried many things... I did restart my workstation, I have reset the Feedback hub (had some issues), I've done all of the updates in the Store,  I made some changes in the Azure App Service configuration settings (changed from ASP to .NET Core, 64-bit with Web sockets).

 

Then after restarting my workstation, and modifying the "UpdateSettings" part of the app installer file, I managed to make it work with this configuration:

 

<UpdateSettings>
     <OnLaunch HoursBetweenUpdateChecks="0" ShowPrompt="false" UpdateBlocksActivation="false"/>
</UpdateSettings>


We would like to always update this app package silently without any user input.

 

I noticed that I'm getting error 0x80D05011, if I do this:

  <UpdateSettings>
     <OnLaunch HoursBetweenUpdateChecks="0"/>
  </UpdateSettings>

 

And I get error 0xC00CEE01:

error 0xC00CEE01: The XML in the .appinstaller file is not valid ... Reason: Unexpected end of input. (0xc00cee01)

 

if I do this:

 

  <UpdateSettings>
     <OnLaunch HoursBetweenUpdateChecks="0" ShowPrompt="false" UpdateBlocksActivation="false"/>
     <ForceUpdateFromAnyVersion>true</ForceUpdateFromAnyVersion>
  </UpdateSettings>

 

or this:

 

  <UpdateSettings>
     <OnLaunch HoursBetweenUpdateChecks="0" ShowPrompt="false" UpdateBlocksActivation="false"/>
     <AutomaticBackgroundTask />
  </UpdateSettings>

 

I don't know why I can't use these 2 attributes "ForceUpdateFromAnyVersion" and "AutomaticBackgroundTask".

 

Would it be possible to get "ForceUpdateFromAnyVersion" to work?

 

Thanks.

Hi Tanaka!

I've just realized that after restarting my PC, the element "ForceUpdateFromAnyVersion" works fine now.

Thank you very much for the support!

Cheers,

Adel.

Glad that fixed it for you @adelkeita!

 

Cheers,

Tanaka