zoukankan      html  css  js  c++  java
  • [转]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.

  • 相关阅读:
    前端 http协议 四大特性 web本质 -响应状态码 列表标签 表单操作 form表单 # 44 HTML
    断点传续 # 补充 mysql
    优酷系统 # 41-43
    css控制 只显示一行 强制不换行 超出用...表示
    点击返回上一页面
    jquery实现点击按钮变换背景颜色
    js,同意后,才可已点击注册按钮
    用div+css生存太极图案
    使用tp5,显示页面错误信息
    vue项目搭建步骤
  • 原文地址:https://www.cnblogs.com/zitiger/p/207001.html
Copyright © 2011-2022 走看看