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 your own updated Windows-based applications that can be installed and run with minimal user interaction.
What are the advantages of using ClickOnce deployment:1. easy to update: with Microsoft Windows Installer deployment, every program update user will have to reinstall the entire program, and with ClickOnce deployment, the update will be available automatically. only the part of the application that has changed is downloaded, and the full, updated application is reinstalled from the new parallel folder. 2. for computer security: when using a Windows Installer deployment, applications typically rely on shared components, which can be a version conflict, and when using ClickOnce deployment, Each application is independent and does not interfere with other applications. 3. Rights security: windows Installer deployment requires Administrator permissions and allows only restricted users to install, whereas ClickOnce deployment allows non-administrative users to install applications and grant only those code access security permissions that the application requires. < 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,         Next we will try to publish a Windows Forms application, using the Guide Table tool we made earlier as an example: first open our Project project:          Open Solution Explorer, right-click the expand menu on the project node and select Properties to open the Properties window: /span>         Switch to the Publish window in the Properties window, we can see two publishing locations: the local folder and the Web server address on IIS, or, of course, the FTP address. Let's try the local folder publishing method first:                  Directly in the first column, fill in a folder address, such as: "D:\unity3d\c#\window Forms Applications". If you want to publish to the server only, just fill in the second column with the server URL address, when both columns are filled in, it will be published to the server while the local backup copy. Then, we need to set the installation mode, divided into two, the general choice of the second item:                  Next, we start setting updated parameters , adding the release as the final version and no longer updating it can be done without setting this option, but will generally need to be set up for later modification updates:                  Setup, we start setting the version number , for convenience, we directly tick the auto-increment option:          after all parameters have been set , we can click the "Publish Wizard", in the wizard we can again modify some of the parameters just set, such as publishing location, update the IIS server address and whether the online status can be used, if you do not need to modify the click on the "Next", after the boot completed click the Finish button to start the deployment file generation:                  During deployment, you can view the print information in the VS Output window, and the output for successful deployment is "Publish succeeded":         
        We can try to install the sample program just released, find the local folder directory of the settings, see the generated installation files, click on the. Application or Setup.exe files to install.         

C # window Programming with--clickonce program deployment

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.