SOLVED

UWP AppInstall Auto Update issue On Windows 10

%3CLINGO-SUB%20id%3D%22lingo-sub-2243189%22%20slang%3D%22en-US%22%3EUWP%20AppInstall%20Auto%20Update%20issue%20On%20Windows%2010%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2243189%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20a%20new%20UWP%20application%20that%20can%20be%20installed%20(side-loaded)%20from%20the%20web%20with%20a%20valid%20certificate.%26nbsp%3B%20However%20so%20far%20during%20testing%20I%20am%20unable%20to%20get%20the%20app%20to%20update%20when%20a%20higher%20version%20number%20exists%20on%20the%20website%20when%20auto-update%20is%20set%20to%20%220%22%20hours%20or%20any%20other%20condition%20I%20have%20tried.%20I%20am%20at%20a%20loss%20to%20troubleshoot%20the%20issue.%20If%20I%20attempt%20to%20update%20the%20UWP%20app%20manually%20over%20HTTP%20it%20works%20as%20expected%20and%20recognizes%20when%20the%20version%20is%20the%20same%2C%20newer%2C%20or%20even%20older.%20It%20even%20installs%20on%20Windows%2010%20machines%20not%20in%20developer%20mode%20as%20I%20had%20hoped.%20If%20I%20switch%20the%20app%20source%20to%20a%20local%20drive%20and%20test%20it%20acts%20the%20same.%20What%20exactly%20are%20the%20triggers%20on%20the%20Windows%2010%20PC%20that%20cause%20the%20updated%20version%20to%20be%20discovered%3F%20What%20should%20I%20be%20looking%20for%3F%3CBR%20%2F%3E%3CBR%20%2F%3E-%20new%20to%20all%20this%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CDIV%20class%3D%22ms-editor-squiggler%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22ms-editor-squiggler%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22ms-editor-squiggler%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22ms-editor-squiggler%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2243189%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHTTP%20Update%20using%20App%20Installs%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2271026%22%20slang%3D%22en-US%22%3ERe%3A%20UWP%20AppInstall%20Auto%20Update%20issue%20On%20Windows%2010%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2271026%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%2F316589%22%20target%3D%22_blank%22%3E%40hrb-2%3C%2FA%3E%2C%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EI'd%20like%20to%20offer%20some%20help%20to%20you%20on%20this.%20It%20sounds%20like%20you've%20selected%20to%20distribute%20your%20Windows%20App%20using%20an%20AppInstaller%20file%20(configured%20with%20automatic%20updates).%20Can%20you%20share%20a%20copy%20of%20your%20AppInstaller%20file%20that's%20being%20used%20to%20install%20%2F%20update%20your%20Windows%20App%20on%20client%20computers.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EA%20couple%20key%20items%20to%20be%20aware%20of%2C%20the%20AppInstaller%20URI%20specified%20in%20the%20AppInstaller%20file%20must%20point%20to%20itself%2C%20and%20the%20AppInstaller%20file%20used%20for%20installing%20the%20Windows%20App%20must%20be%20updated%20to%20contain%20the%20newer%20version%20of%20the%20Windows%20App.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CSTRONG%3EFor%20more%20information%2C%20please%20also%20visit%20our%20Microsoft%20Doc's%20Article%20on%20AppInstaller%20and%20Auto%20Updating%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fapp-installer%2Fhow-to-create-appinstaller-file%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ECreate%20an%20App%20Installer%20file%20manually%20-%20MSIX%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fwindows%2Fmsix%2Fapp-installer%2Fupdate-settings%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EApp%20Installer%20file%20update%20settings%20-%20MSIX%20%7C%20Microsoft%20Docs%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2300063%22%20slang%3D%22en-US%22%3ERe%3A%20UWP%20AppInstall%20Auto%20Update%20issue%20On%20Windows%2010%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2300063%22%20slang%3D%22en-US%22%3EThank%20you%20for%20your%20interest%20and%20sorry%20for%20not%20getting%20back%20to%20you%20in%20a%20more%20timely%20manner.%20I%20seem%20to%20have%20made%20some%20progress%20as%20the%20UWP%20app%20is%20now%20updating.%20However%2C%20the%20user%20is%20not%20given%20any%20choice%20in%20the%20matter%2C%20which%20seems%20heavy%20handed%20and%20I%20would%20swear%20previously%20was%20not%20the%20case.%20When%20I%20publish%20a%20new%20version%20of%20the%20application%20I%20select%20Sideloading%20and%20enable%20automatic%20updates.%20The%20app%20is%20signed%20with%20a%20proper%20certificate.%20Finally%20I%20select%20a%20output%20location%2C%20set%20autoincrement%2C%20and%20only%20x64%20release%20is%20checked%20for%20the%20type%20of%20package%20to%20create.%20Finally%20for%20the%20installer%20location%20I%20include%20an%20http%3A%2F%2F%20address%20that%20includes%20the%20path%20to%20where%20the%20files%20are%20located.%20(ex%3A%20%3CA%20href%3D%22http%3A%2F%2Fwww.findUWPhere.com%2Finstallerlocation%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.findUWPhere.com%2Finstallerlocation%3C%2FA%3E)%20and%20tell%20it%20to%20check%20every%20time.%20Once%20the%20build%20is%20complete%20and%20the%20files%20are%20deposited%20in%20the%20output%20location%20I%20upload%20them%20to%20the%20IIS%20webserver.%20Everything%20there%20is%20configured%20correctly%20and%20new%20installs%20are%20successful.%20Update%20are%20now%20happening%20but%20I%20never%20see%20the%20AppInstaller%20run%20to%20download%20them%20it%20all%20seems%20to%20happen%20automatically%20once%20the%20UWP%20application%20is%20run%20on%20the%20target%20PC.%20Either%20the%20next%20time%20or%20perhaps%20the%20time%20after%20the%20update%20will%20occur.%20I%20would%20prefer%20that%20the%20AppInstaller%20program%20would%20interface%20with%20the%20user%20and%20request%20permission%20to%20do%20the%20install%20which%20used%20to%20happen%20when%20I%20got%20it%20working%20the%20first%20time%20last%20year%20but%20now%20it%20just%20happens.%20How%20would%20you%20like%20me%20to%20share%20a%20copy%20of%20the%20Appinstaller%20file%20for%20you%20to%20look%20at%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2319682%22%20slang%3D%22en-US%22%3ERe%3A%20UWP%20AppInstall%20Auto%20Update%20issue%20On%20Windows%2010%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2319682%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F316589%22%20target%3D%22_blank%22%3E%40hrb-2%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ENo%20worries%20about%20the%20delay%2C%20I'm%20happy%20to%20help.%20You%20can%20share%20your%20AppInstaller%20file%20with%20me%20directly%20via%20Tech%20Community%20DM.%20I've%20sent%20you%20a%20message%2C%20please%20respond%20to%20it%20with%20a%20copy%20of%20your%20AppInstaller%20file.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EI%20would%20like%20to%20direct%20you%20to%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fuwp%2Fschemas%2Fappinstallerschema%2Fschema-root%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EAppInstaller%20Schema%202017%20v2%3C%2FA%3E%20that%20you%20are%20likely%20using%20with%20your%20AppInstaller%20file.%20More%20importantly%20the%20Auto%20Update%20settings%20(found%20by%20selecting%20the%20%22%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fuwp%2Fschemas%2Fappinstallerschema%2Felement-onlaunch%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%22%3EOnLaunch%3C%2FA%3E%22%20link).%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CTABLE%20class%3D%22table%22%20width%3D%22716px%22%3E%0A%3CTBODY%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22215px%22%3EHoursBetweenUpdateChecks%3C%2FTD%3E%0A%3CTD%20width%3D%22427.5px%22%3EHoursBetweenUpdateChecks%20specifies%20the%20frequency%20with%20which%20the%20the%20deployment%20service%20will%20check%20for%20an%20update%20to%20the%20App%20Installer%20file.%26nbsp%3B%3C%2FTD%3E%0A%3CTD%20width%3D%2271.25px%22%3ENumeric%20%3CBR%20%2F%3E0-255.%20default%3D24.%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22215px%22%3EShowPrompt%3C%2FTD%3E%0A%3CTD%20width%3D%22427.5px%22%3EIndicates%20if%20deployment%20will%20show%20a%20prompt%2C%20informing%20the%20user%20about%20the%20update.%26nbsp%3B%3C%2FTD%3E%0A%3CTD%20width%3D%2271.25px%22%3EBoolean%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3CTR%3E%0A%3CTD%20width%3D%22215px%22%3EUpdateBlocksActivation%3C%2FTD%3E%0A%3CTD%20width%3D%22427.5px%22%3E%3CP%3EShould%20only%20be%20used%20if%20ShowPrompt%3D%22true%22.%20Indicates%20if%20deployment%20will%20stop%20the%20user%20from%20launching%20the%20application%20until%20the%20update%20has%20been%20applied.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%E2%80%9CUpdateBlocksActivation%E2%80%9D%20%3D%20true%20means%20the%20UI%20the%20user%20will%20see%20allows%20the%20user%20to%20take%20the%20update%20or%20close%20the%20app.%3C%2FP%3E%0A%3CP%3E%E2%80%9CUpdateBlocksActivation%E2%80%9D%20%3D%20false%20means%20the%20UI%20the%20user%20will%20see%20allows%20the%20user%20to%20take%20the%20update%20or%20start%20the%20app%20without%20updating.%3C%2FP%3E%0A%3C%2FTD%3E%0A%3CTD%20width%3D%2271.25px%22%3EBoolean%3C%2FTD%3E%0A%3C%2FTR%3E%0A%3C%2FTBODY%3E%0A%3C%2FTABLE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20your%20users%20are%20not%20receiving%20a%20prompt%20when%20an%20update%20is%20availabe%20as%20they%20are%20launching%20their%20Windows%20App%2C%20please%20make%20sure%20you've%20configured%20the%20above%20settings%20correctly.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20note%20that%20AppInstaller%20setting%20changes%20are%20applied%20when%20the%20app%20is%20next%20updated%20or%20reinstalled.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20this%20has%20been%20helpful%2C%20or%20has%20answered%20your%20question%20please%20mark%20it%20as%20%22Verified%20Answer%22.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThank%20you%2C%3C%2FP%3E%0A%3CP%3ERoy%20MacLachlan%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I have a new UWP application that can be installed (side-loaded) from the web with a valid certificate.  However so far during testing I am unable to get the app to update when a higher version number exists on the website when auto-update is set to "0" hours or any other condition I have tried. I am at a loss to troubleshoot the issue. If I attempt to update the UWP app manually over HTTP it works as expected and recognizes when the version is the same, newer, or even older. It even installs on Windows 10 machines not in developer mode as I had hoped. If I switch the app source to a local drive and test it acts the same. What exactly are the triggers on the Windows 10 PC that cause the updated version to be discovered? What should I be looking for?

- new to all this

 
 
 
 
3 Replies
best response confirmed by Roy_MacLachlan (Microsoft)
Solution

Hi @hrb-2,

I'd like to offer some help to you on this. It sounds like you've selected to distribute your Windows App using an AppInstaller file (configured with automatic updates). Can you share a copy of your AppInstaller file that's being used to install / update your Windows App on client computers.

 

A couple key items to be aware of, the AppInstaller URI specified in the AppInstaller file must point to itself, and the AppInstaller file used for installing the Windows App must be updated to contain the newer version of the Windows App.


For more information, please also visit our Microsoft Doc's Article on AppInstaller and Auto Updating:

Thank you for your interest and sorry for not getting back to you in a more timely manner. I seem to have made some progress as the UWP app is now updating. However, the user is not given any choice in the matter, which seems heavy handed and I would swear previously was not the case. When I publish a new version of the application I select Sideloading and enable automatic updates. The app is signed with a proper certificate. Finally I select a output location, set autoincrement, and only x64 release is checked for the type of package to create. Finally for the installer location I include an http:// address that includes the path to where the files are located. (ex: http://www.findUWPhere.com/installerlocation) and tell it to check every time. Once the build is complete and the files are deposited in the output location I upload them to the IIS webserver. Everything there is configured correctly and new installs are successful. Update are now happening but I never see the AppInstaller run to download them it all seems to happen automatically once the UWP application is run on the target PC. Either the next time or perhaps the time after the update will occur. I would prefer that the AppInstaller program would interface with the user and request permission to do the install which used to happen when I got it working the first time last year but now it just happens. How would you like me to share a copy of the Appinstaller file for you to look at?

Hi @hrb-2 

No worries about the delay, I'm happy to help. You can share your AppInstaller file with me directly via Tech Community DM. I've sent you a message, please respond to it with a copy of your AppInstaller file.

 

I would like to direct you to the AppInstaller Schema 2017 v2 that you are likely using with your AppInstaller file. More importantly the Auto Update settings (found by selecting the "OnLaunch" link). 

 

HoursBetweenUpdateChecks HoursBetweenUpdateChecks specifies the frequency with which the the deployment service will check for an update to the App Installer file.  Numeric
0-255. default=24.
ShowPrompt Indicates if deployment will show a prompt, informing the user about the update.  Boolean
UpdateBlocksActivation

Should only be used if ShowPrompt="true". Indicates if deployment will stop the user from launching the application until the update has been applied.

 

“UpdateBlocksActivation” = true means the UI the user will see allows the user to take the update or close the app.

“UpdateBlocksActivation” = false means the UI the user will see allows the user to take the update or start the app without updating.

Boolean

 

If your users are not receiving a prompt when an update is availabe as they are launching their Windows App, please make sure you've configured the above settings correctly.

 

Please note that AppInstaller setting changes are applied when the app is next updated or reinstalled.

 

If this has been helpful, or has answered your question please mark it as "Verified Answer".

 

Thank you,

Roy MacLachlan