ms-iot / azure-client-tools

Azure Client Tools
Other
43 stars 37 forks source link

Device Agent can not downgrade app version from 1.3.xx.xx to 1.2.xx.xx #62

Open hasanalpzengin opened 4 years ago

hasanalpzengin commented 4 years ago

Bug description

When I try to downgrade uwp app's version it gives error: "Windows cannot install package because it has version 1.2.xx.xx. A higher version 1.3.xx.xx of this package is already installed." But in documentation you can see how behavior is designed https://github.com/ms-iot/azure-client-tools/blob/master/docs/device-agent/schema/configuration-groups/uwpapplication-management.md.

When I try to downgrade 1.3.xx.xx to 1.3.xx.xx it succeed with no problem.

Steps to reproduce

  1. Try to downgrade app version from 1.3.xx.xx to 1.2.xx.xx
  2. Device agent throws error given above to iot hub with no downgrade

Observed behavior

"Windows cannot install package because it has version 1.2.xx.xx A higher version 1.3.xx.xx of this package is already installed."

Expected behavior

It should to downgrade the app just like from 1.3.xx.xx to 1.3.xx.xx

Version (please provide the following information):