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