The ClickOnce smart Client, a technology that Microsoft provides earlier, can automatically update applications that implement WinForm development, eliminating the hassle of upgrading each client.
From the online postings, some say it works, some say it is not useful. Objectively speaking, Microsoft's things are very easy to use, the reason is not good for us to use. Microsoft technology is easy to get started, proficient in difficult, need to constantly explore and research, to be flexible to use. Of course, I'm not Microsoft's navy, but I'm using net to develop ... Well, the nonsense is not much to say, the following introduction of this technology.
On the Internet to find the relevant information, found that the two articles are very comprehensive. Do not know the children's shoes can be read in detail, I do not have to paste copy, so there is no technical content
ClickOnce deployment
All aspects of ClickOnce deployment WinForm Programs
Here are some of the problems and summaries I have encountered in the process of using. My scenario is to publish and then copy the application to the server. Note: It is not published directly on the server. Therefore, I am publishing the file system, not publishing it to the IIS site, as shown in
Step 1: Right-click the project, select: Properties menu. Go to: Publish Page
Step 2: Set up the application files
Note: If some of the referenced DLL files are not being used, they can be excluded. It's not going to go in when it's packed. Note: The Publish Status option, each option feature is different
Step 3: Set the update location. That is, the site in the WAN
Step 4: Set options
After the setup of the above steps, click Publish, the release is successful. As shown
However, when we download on the WAN, we will still be prompted to download the failure, the reason: the downloaded address or the address within the LAN. Here is the simplest way to directly modify the contents of the Publish.htm file. As shown
Modify this button directly.
See clear Wood has, direct download. Application files can be downloaded without downloading the Setup.exe file
WinForm ClickOnce to the WAN