• [转]ClickOnce


    聚会时我提到的ClickOnce,来自:
    http://msdn.microsoft.com/smartclient/understanding/windowsforms/2.0/features/clickonce.aspx



    ClickOnce is a new application deployment technology that makes deploying a Windows Forms based application as easy as deploying a web application. With “ClickOnce” running a Windows Forms application is as simple as clicking a link in a web page. For administrators, deploying or updating an application is simply a matter of updating files on a server; no need to individually touch every client.

    “ClickOnce” applications are fundamentally low impact. Applications are completely self-contained & install per-user, meaning no-admin rights are required. You don’t have to worry about a “ClickOnce” application breaking other applications. However, if your application does need to do something risky at install time, ex. installing drivers, MSI is still your best choice.

    “ClickOnce” applications can be deployed via web servers, file servers or CDs. A “ClickOnce” application can choose to be installed, meaning it gets start menu & add/remove program entries, or an app can simply be run & cached. “ClickOnce” has several ways it can be configured to automatically check for application updates. Alternatively, applications can use the ClickOnce APIs (System.Deployment), to control when updates should happen.

    Visual Studio has rich support for publishing applications via “ClickOnce”. At anytime, you can simply choose to publish your existing Windows Forms application project to a network server. Visual Studio will automatically generate the xml manifest files that drive “ClickOnce” and publish the app to the specified server.

    “ClickOnce” applications run in a secure sandbox provided by the CLR Code Access Security model. Visual Studio helps the developer author for the sandbox with features like F5 debug in security zone and a code analysis tool that determines an application’s needed permissions. For applications that need a higher level of trust, “ClickOnce” supports both a user prompting model and an enhanced security policy pre-deployment mechanism for administrators.

    When talking about deploying applications over the network, size of the application is important. To help with this, “ClickOnce” support HTTP compression. “ClickOnce” applications can also choose to incrementally download themselves. Application files can be marked as optional & then the application itself can use the System.Deployment APIs to instruct “ClickOnce” to download the indicated files as needed.

    Using “ClickOnce” requires that the target client already have the .NET Framework 2.0 installed. Visual Studio has made packaging and deploying the .NET Framework simpler than ever. Simply select what pre-requisites your application may have (ex. the .NET Framework 2.0 & MDAC 9.0) and Visual Studio will generate a bootstrapper file that will automatically install all of the specified pre- requisites when run. On the server side, “ClickOnce” needs only an HTTP 1.1 server or alternatively a file server.

  • 相关阅读:
    206. Reverse Linked List
    简介AngularJS中使用factory和service的方法
    如何写一手漂亮的模型:面向对象编程的设计原则综述
    webpack入门操作教程
    webpack4.0.1安装问题和webpack.config.js的配置变化
    webpack.config.js配置遇到Error: Cannot find module '@babel/core'&&Cannot find module '@babel/plugin-transform-react-jsx' 问题
    解决webpack打包报错: Cannot find module '@webassemblyjs/wasm-parser'
    docker-compose介绍
    .NET Core+MySql+Nginx 容器化部署
    .net core使用ef core操作mysql数据库
  • 原文地址:https://www.cnblogs.com/zitiger/p/207001.html
Copyright © 2020-2023  润新知