C # window Programming with--clickonce program deployment

Source: Internet
Author: User

about ClickOnce what we're going to say is that there are two main points:
    1. What is ClickOnce?

    2. Use of ClickOnce

First, what is ClickOnce(from Baidu)        ClickOnce is a deployment technology that enables you to create self-updating Windows-based applications that can be installed and executed with minimal user interaction.
What are the advantages of using ClickOnce deployment:1. easy to update: with Microsoft Windows Installer deployment, each program update user installs the entire program again. With ClickOnce deployment, you can proactively provide updates yourself. only the parts of the application that have changed will be downloaded, and then the full, updated application is installed again from the new parallel directory. 2. Computer security: when using a Windows Installer deployment, applications often rely on shared components, which can occur with version number collisions. When using ClickOnce deployment, each application is independent and does not interfere with other applications. 3. Security of Rights:Windows Installer deployments require Administrator privileges and only consent to restricted user installation. ClickOnce deployment agrees that non-administrative users install the application and grant only those code that the application needs to access security permissions.

< Span style= "Color:rgb (51,51,51); Font-family:arial, song body, Sans-serif; font-size:14px; line-height:24px; text-indent:28px ">
two, use of ClickOnce         We know that ClickOnce is a deployment technology, The deployment is actually what we call the installation. So we can say that a ClickOnce application is a kind of installation wrapper, It can be installed one step, rather than the traditional installation package we use, to n "Next", then complete.

        Next we'll try to advertise a Windows Forms application. For example, using the Guide Table tool we made earlier: first open our project proj ECT:          Open the Solution Explorer, right-click the expand menu on the project node and select Properties to open the Properties form: /span> switching to the advertisement form in the Properties form allows us to see two advertised locations: The webserver address on the local directory and IIS, and, of course, the FTP address.

Let's try the local Directory publication method first:          directly in the first column, fill in a directory address, such as: "D:\unity3d\c#\window Forms Applications".

Added want to just publish to the server. Just fill in the ServerURL address in the second column, when both columns are filled in. will be published to the server at the same time as a local backup copy. Then, we need to set the installation mode, divided into two kinds. General choice of the second item:                  Next, we'll start setting up the updated number of references , increase the published version for the last edition and no longer update to be able to set this option. However, you will need to set up the update for later changes in normal circumstances:                  Setup is complete. We started to set up the version, for convenience, we directly tick our own active increment option:          after all of the parameters have been set 。 We will be able to click on the "Publish Wizard", in the wizard we can again change some of the parameters just set, such as the publication location, update iisserver address and whether the ability to use the online status, assuming no need to change the click on the "Next" can, after the boot is finished click button, Start build Deployment file:                  During deployment, you can view the print of information in the output form of VS, and the output for successful deployment is "advertised successfully":         
        We were able to try to install the sample program just announced and locate the local folder folder where it was set up. Be able to see the generated installation files. Click the. Application or Setup.exe file to install.         

C # window Programming with--clickonce program deployment

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.