How can I roll-back a ClickOnce application?

后端 未结 9 1417
生来不讨喜
生来不讨喜 2020-12-07 13:34

Is there a way (hacky will do) to allow a user to go back to a previous version of a ClickOnce network deployed application?

I\'ve looked in the docs and API and the

相关标签:
9条回答
  • 2020-12-07 14:05

    I understand ClickOnce version check algorythm as follows:

    1. If version installed on client = version deployed to server - do nothing
    2. If client version < server version - upgrade
    3. If client version > server version:
      1. If minimumVersion specified on client >= server version - show error as we have
      2. If minimumVersion specified on client < server version - downgrade
      3. If minimumVersion is not specified on client - downgrade
    0 讨论(0)
  • 2020-12-07 14:06

    If you look at your deployment location, you'll see every previous version, in a separate folder with the version number appended, as well as the deployment manifest, also with the version number appended.

    You can rename any one of them to be the current deployment, and the next time you update that application, it'll pull in the version you rolled-back to.

    0 讨论(0)
  • 2020-12-07 14:09

    ClickOnce will use whatever version you send them. If you send them an old version, they will rollback to that old version.

    Back in May my buddy David wrote an article on how to do this on a per-user basis. We can literally have every user on a different version. The application even tells the database which version the user wants, so they could in theory change their version and then simply restart the application.

    Fine Grained Versioning with ClickOnce

    0 讨论(0)
提交回复
热议问题