Mandatory update for apps in windows store - windows-store-apps

I want my windows store app to update automatically even the user turn off the automatic update button in the settings (application update).
Is it possible to achieve this?

Starting in Windows 10, version 1607, you can use an API in the Windows.Services.Store namespace to programmatically check for package updates for the current app, and download and install the updated packages.
You can also query for packages that have been marked as mandatory on the Windows Dev Center dashboard and disable functionality in your app until the mandatory update is installed.
More info , you can refer to download and install package updates for your app.

Related

Error trying to install a WP8.1 App in Windows Phone Mobile

Trying to install a WP8.1 App in a new Windows Phone Mobile 10 we are getting this error (We are using the "Windows Phone Application Deployment (8.1)" App):
Error - The provided package is already installed, and reinstallation
of the package was blocked. Check the AppXDeployment-Server event log
for details.
First, the app is not installed. We have verified twice.
Second, what is the AppXDeployment-Server and where I can find the log?
Thanks
The solution was as simple as update the Windows Phone OS to the latest version.
After that we can install WP8.1 Apps in Windows Phone Mobile.
First, the app is not installed. We have verified twice.
This error usually occurs when installing a package which is not bitwise identical to the package that is already installed. Therefore, if a package is rebuilt or resigned, it’s no longer bitwise identical to the previously installed package.
To fix it, you can increase your app’s version number, then rebuild and resign the package or remove the old package for every user on the system before installing the new one.
Besides, you mean the app is not installed before? That way you should use Windows Phone Application Deployment to install the package in default (C:) but not on the device SD card. If you want to install it on SD card, you should use Visual Studio to deploy your app.
Second, what is the AppXDeployment-Server and where I can find the log?
The AppXDeployment-Server provide more info to help you diagnose the cause of the error code.
You can follow steps below to access the event log:
• Run eventvwr.msc.
• Go to Event Viewer (Local) > Applications and Services Logs > Microsoft > Windows.
• The first log to check is AppxPackagingOM > Microsoft-Windows-AppxPackaging/Operational.
• Deployment-related errors are recorded in AppXDeployment-Server > Microsoft-Windows-AppXDeploymentServer/Operational.
Also, another option is to use PowerShell, try following command:
Get-Appxlog|Out-GridView
For more details, you might refer Troubleshooting packaging, deployment, and query of Windows Store apps.

How to generate an update package to deploy in Development devices (Surfaces and Phones)

For Windows Universal Apps, would it possible to deploy an app package as an updation package in a Phone or Surface rather than deploying it as a clean package? Similar to how the update process works when the user tries to download an update from store?
I tried to deploy using Powershell for Surface and Deployment utility for mobiles. But both seems to re-install the app in the devices rather than updating it.
I would like to verify how the app behaves when updated rather than being re-installed.
Any suggestions on how to perform this?
Thanks in advance
There is currently no way to sideload an application package that simulates a store update. The store will update the package just by downloading the block level changes to your package, but there are no tools to do that locally.
One way to verify app update behavior is to upload the updated application as a flight, then sideload the original package (before the update), and try to update the package with the flight (directly from the store). When you are confident the behavior is as desired, you can then release the flight to all of your customers.

Unable to update the version of windows phone app on Store

I have published the windows phone app. Now I have added new feature and functionality in my app.On windows phone developer console we have two options Replace the Package or Add new package.
I had selected Replace option and now the submission has been submitted successfully.
But windows app store not showing the update notification for my app but if I uninstall and again install the app new version of app installed.
I want windows store should give update notification for new version.
By default your phone only checks for updates every 24 hours.
You can manually check for updates using the store app's settings.

Windows Phone 8.0 - how to detect previously installed version of the application

Is there any way to detect previous version of the application after update?
Problematic scenario:
User installs an application but never launch it. After some time application is updated automatically or via Store application. Now user launch the application and how to check if update happend and what version was previously installed?
There is no problem if user launch the application before update. I could write something to Isloated Storage which survive update. But what about scenrio described above?

Create a Sideloading Windows 8 Modern App Installer

We have a Windows 8 Modern / Metro app that we wish to deploy outside the store. I have read a bunch of materials on getting a side loading license to allow this. However, we need to go beyond just copying the app over and running some PowerShell commands, we also need to install a particular hardware driver and make some registry keys.
Can anyone recommend an installer creator that can perform all of these tasks?
Out of curiosity, is it possible to distribute through the Windows Store and have it do more than just copy the app down, i.e. execute an installations script?
By design, the installation process for a Store app, whether downloaded from the Store or side-loaded, is not customizable. For Store downloads, this is done to guarantee that the app install won't create anything that cannot be reversed during an uninstall, e.g. create registry entries, copy files, and otherwise do things that can permanently alter the system.
For side-loading, although you cannot alter the specific package deployment process itself, you can use the Powershell deployment as just one step in an overall install process. You should be able to build such an installer with any number of existing Desktop application installer tools, which give you control over all steps in your install process including registry, drivers, running scripts, etc. So you'd just have the app package and PS scripts as part of the installer .msi or .exe, and executing the PS script is done from the installer.
(By the way, the Store/PS app install processes use the same API in Windows.Management.Deployment.PackageManager to do the work. This API can be used only from a full-trust process like the Store (a piece of system code) or Powershell running in an admin console, but is there so desktop apps can implement alternate install procedures directly.)