Clickonce update policy

Source: Internet
Author: User

A product recently released by the company using clickonce technology has encountered some strange phenomena on the client side. The specific situation on the client side is as follows: for example, the program version 1.0.0.6 is released on server a, and the same version 1.0.0.6 is also released on server B. The problem arises. If the customer's machine is clean, that is, this machine has never run this program. If the customer first logs on to server, the client will download the 1.0.0.6 program and run it on the local machine. This is correct. At this time, the client closes the program and runs it on server B. Will the client download version 1.0.0.6 from server B? So what is the specific update policy of clickonce technology?

I found that the clickonce technology only has some update policies on msdn, but it is not what I want at all. So I will try to observe its update policies by myself.

The update policy I have summarized is as follows:

1. test condition: Release two programs of the same version 1.0.0.6 on the same server, the addresses are: http://www.kk.com/kay/A.html, http://www.kk.com/kay/ B .html, although the version number remains unchanged, however, the Code of Version B has been changed in version.

Test result: the link from which you log on first, then it downloads the execution of the link. If you log on to the second link again, although it has been downloaded, however, installation fails. The specific cause is unknown.

For example, if you first use http://www.kk.com/kay/a.html], then download this installation. Now you have shut down the http://www.kk.com/kay/a.htmlprogram, and then log on to http://www.kk.com/kay/ B .html. Then it will not install http://www.kkk.com/kay/ B .html.

2. test condition: first release version 1.0.0.6 A on the server, and then download and run it with http://www.kk.com/kay/a.html. At this time, the code of A is changed, but the version number is 1.0.0.6. Then, the original code is deleted from the server, and the code changed but the version number is not changed. The link is still http://www.kk.com/kay/a.html, and then the link is used for login

Test results: the old code is still running on the client. Therefore, the clockonce update only depends on the version number. if the version number is not changed, even if you change the code, it will not be updated automatically.

3. if the version is released on two servers with different IP addresses, it will be downloaded and each client will save a copy corresponding to the corresponding server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.