Two modes and uninstallation of applications deployed by ClickOnce

Source: Internet
Author: User

On the release tab of the project, you can select two ClickOnce deployment modes for the application:

This application can only be used online

This application can also be used offline (it can be started from the "Start" menu)

Here, we call them both online and offline. ). It will go online to the server to verify the application and automatically download the latest version to the local application cache (hereinafter referred to as the cache), and then start the application in the cache. In this process, it does not create an uninstall program, nor will it automatically create any shortcuts for starting the application. On the Application release page, click "run" to start the application. Once the application is closed, it does not exist, but it is still stored in the cache. Therefore, when releasing online applications, you do not need to set updates (the latest version must be run each time). The "Update" option is unavailable.

Then we naturally realized that the application deployed in the online mode does not have to be uninstalled. All we can do is clear the files in the buffer zone. This buffer zone is similar to C: \ Documents ents and Settings \ Administrator \ Local Settings \ Apps \ 2.0 \ (2000, XP, 2003 the system is "% USERPROFILE % \ Local Settings \ apps \ 2.0 "; the Vista system is a folder with a random name created in the "% USERPROFILE % \ AppData \ Local \ Apps \ 2.0" and "% USERPROFILE % \ AppData \ Roaming") directories, it is used to store cached files of applications. There is also a Data folder, which stores folders with random names and stores cached files of applications. The mage.exe-cc command in Windows sdk6clears the online cache files (see configuration generation and editing tool (Mage.exe).

Mage.exe directory:

C: \ Program Files \ Microsoft SDKs \ Windows \ v6.0A \ bin \ mage.exe

Setting environment for using Microsoft Visual Studio 2008x86 tools. e: \ Program Files \ Microsoft Visual Studio 9.0 \ VC> mage -? Command-New <file type>-n-Update <File Name>-u-Sign <File Name>-s-ClearApplicationCache-cc-Help [verbose]-h -? Options-AppCodeBase <path>-appc-AppManifest <path>-appm-CertFile <File Name>-cf-CertHash

Related Article

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.