Smart Client Deployment with ClickOnce: Deploying Windows Forms Applications with ClickOnce
暫譯: 使用 ClickOnce 的智慧型客戶端部署:使用 ClickOnce 部署 Windows Forms 應用程式

Brian Noyes

  • 出版商: Addison Wesley
  • 出版日期: 2007-01-01
  • 售價: $2,050
  • 貴賓價: 9.5$1,948
  • 語言: 英文
  • 頁數: 336
  • 裝訂: Paperback
  • ISBN: 0321197690
  • ISBN-13: 9780321197696
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Description

“ClickOnce demos may look simple, but those techniques only work for simple applications. Brian Noyes gives us the information we need to use ClickOnce in the real world, and he does it with a comprehensive and organized presentation. If you expect your smart client application to move very far beyond ‘Hello,World,’ you’ll want this book to help you deploy it.”
Billy Hollis, president/owner, Elysian Consulting, Microsoft Regional Director
“Once again Brian has outdone himself. As a writer, I tend to be very critical of all technical publications, including my own . . . and it is such a pleasure to read anything Brian writes because he studies his topics well, resulting in an accurate, thorough, yet concise piece of work. ClickOnce being a new technology that deals with the pains we all have with application deployment, versioning, and security, it is important to have a text that will guide you through the learning process, give you sound advice for adopting the technology, and explain why you should even care. Brian gives his readers all of that.”
Michele Leroux Bustamante, chief architect, IDesign, Microsoft Regional Director
“ClickOnce is the key to Windows and smart client deployment. Brian’s book is the key to successfully using ClickOnce. This book walks you through using ClickOnce, from the basics to advanced scenarios. It is an excellent resource.”
Rockford Lhotka, principal technology evangelist, Magenic Technologies, Microsoft Regional Director
“Brian covers ClickOnce with a view to real-world deployment issues, which isobviously based on real-world experience. In and of itself, that is enough forme to buy the book. However, it is an even better investment by virtue of thefact that ClickOnce is a core part of the .NET Framework for Windows Forms2.0 now, and Windows Presentation Foundation in the future.”
Michael Weinhardt, SDK programmer/writer, Application Model,Windows Presentation Foundation, Microsoft
“This book covers the most important ingredient needed for the success of asmart client application—deployment. The author’s unassuming writing style,combined with his in-depth coverage of the topic, makes this book an invaluableresource for all serious smart client developers.”
Vishwas Lele, principal architect, Applied Information Sciences,Microsoft Regional Director

Microsoft’s new ClickOnce auto-updating technology can radically simplify application deployment. Using it, .NET developers and architects can deliver a powerful, smart client experience along with the easy maintenance of today’s best Web applications.

Microsoft Regional Director and MVP Brian Noyes has unsurpassed experience previewing and teaching ClickOnce to professional developers. In Smart Client Deployment with ClickOnce, Noyes demonstrates exactly how to make the most of ClickOnce in your real-world enterprise applications. Noyes covers ClickOnce design, architecture, security, installation, updates, and Bootstrapping—each with a full case study and detailed sample code.

This focused, concise book explains how to

  • Design client applications for efficient deployment and auto-updating
  • Perform application deployments and automatic updates quickly and easily
  • Deliver “on-demand” client application updates
  • Deploy prerequisites with the Visual Studio 2005 Bootstrapper
  • Take full control of ClickOnce’s powerful publishing, update, and security options
  • Leverage the Visual Studio 2005 and .NET 2.0 platform features that make ClickOnce possible
  • Understand how your application will behave in the ClickOnce runtime environment

The book’s sample code is available for download at www.softinsight.com/clickoncebook.

 

Table of Contents

Figures xv

Foreword xxi

Preface xxiii

Acknowledgments xxxi

About the Author xxxiii

Chapter 1: Introduction to ClickOnce 1

What Is a Smart Client Application? 2

Why Choose Smart Clients? 6

Smart Client Deployment Challenges 7

Design Goals of ClickOnce 8

ClickOnce Features 9

Terminology 10

ClickOnce Deployment Modes 12

ClickOnce Deployment Architecture 14

ClickOnce Deployment Process Overview 16

First ClickOnce Deployment: ClickOnce Hello World 17

Software Requirements for ClickOnce 26

What to Deploy (and What Not to Deploy) with ClickOnce 28

ClickOnce Versus Other Deployment Technologies 30

Smart Client Architecture Overview 32

Where Are We? 34

Chapter 2: Initial Deployment with ClickOnce 37

Publishing an Application with Visual Studio 2005 38

ClickOnce Publishing Options 38

Visual Studio Publishing Step by Step 50

ClickOnce Application Initial Deployment Step by Step 64

Moving an Application to Production 76

Moving an Application into Production with Mage 77

Where Are We? 80

Chapter 3: Automatic Application Updates 83

Automatic Update Walkthrough 84

ClickOnce Update Options 91

Behind the Scenes on the Deployment Server 99

Behind the Scenes of an Update on the Client Machine 100

Removing or Restoring Applications on the Client 104

Restoring an Application Version from the Deployment Server 105

Republishing a Previous Version 105

Where Are We? 106

Chapter 4: On-Demand Updates 107

When Do On-Demand Updates Make Sense? 108

Introducing the ClickOnce API 109

Adding Synchronous On-Demand Updates 110

Performing Updates Asynchronously 114

Update Progress Notifications 122

Combining On-Demand Updates with Automatic Updates 123

Checking Detailed Update Information 125

Gathering Information about the Current Deployment 126

Where Are We? 128

Chapter 5: Application and Data File Management 131

Application Executable Deployment 132

Adding Application Files in Visual Studio 134

Configuring ClickOnce Application Files 135

Embedding Files in the Assembly 138

Localizing Your ClickOnce Deployment 141

Programmatic Download of Application Files 147

Deploying Extensible Plug-In Applications with ClickOnce 151

Managing Application Files with Mage 157

Managing Data Files Through Visual Studio 160

Dealing with Data Files on the Client 161

Data File Update Process 164

Deploying a Client Database with Your Application 167

Migrating SQL Compact Edition Database Files 168

Where Are We? 174

Chapter 6: ClickOnce Security 177

ClickOnce Security Overview 177

Internet Explorer Security Settings Affecting ClickOnce 188

Configuring ClickOnce Security Permissions 189

Understanding and Managing Publisher Certificates 197

Signing Application Updates 208

User Prompting 210

Trusted Applications’ User Security Policies 215

Trusted Publishers’ Permission Elevation 216

Adding Restricted Code Sections 219

Securing the Application Based on User Roles 221

Securing Access to ClickOnce Application Files on the Server 222

Where Are We? 223

Chapter 7: Prerequisite Deployment with the Bootstrapper 225

Bootstrapper Features 226

Bootstrapper and ClickOnce Sample Deployment 229

Adding Items to the Bootstrapper 234

Generating Bootstrapper Manifests 245

Where Are We? 248

Chapter 8: Advanced ClickOnce Topics 249

Using URL Query String Parameters 249

Executing Custom Install/Initialization Code 255

Debugging ClickOnce Applications 256

Deploying Unmanaged Applications with ClickOnce 261

Reg-Free COM 264

Deploying ClickOnce Applications with Firefox 266

Launching a ClickOnce Application Programmatically 267

Pushing ClickOnce Installations to the Client Machine 268

Web Server ClickOnce Configuration 272

MSBuild ClickOnce Publishing 273

Where Are We? 274

Appendix A: ClickOnce Deployment of WPF Applications 277

WPF Anatomy 101 278

ClickOnce Deployment of WPF Applications 280

Sample Web Browser Application Walkthrough 281

Where Are We? 284

Index 287

商品描述(中文翻譯)

**描述**

“ClickOnce 示範看起來可能很簡單,但這些技術僅適用於簡單的應用程式。Brian Noyes 提供了我們在現實世界中使用 ClickOnce 所需的信息,並以全面且有組織的方式呈現。如果你希望你的智慧客戶端應用程式能夠超越‘Hello, World’,你會想要這本書來幫助你部署它。”
— **Billy Hollis**,Elysian Consulting 總裁/擁有者,微軟區域總監

“Brian 再次超越了自己。作為一名作家,我對所有技術出版物,包括我自己的,往往非常挑剔……閱讀 Brian 所寫的任何東西都是一種樂趣,因為他對主題進行了充分的研究,結果是準確、全面且簡潔的作品。ClickOnce 作為一項新技術,解決了我們在應用程式部署、版本控制和安全性方面的痛點,因此擁有一本能夠指導你學習過程的書籍,提供採用這項技術的合理建議,並解釋為什麼你應該關心這一點,是非常重要的。Brian 給予讀者這一切。”
— **Michele Leroux Bustamante**,IDesign 首席架構師,微軟區域總監

“ClickOnce 是 Windows 和智慧客戶端部署的關鍵。Brian 的書是成功使用 ClickOnce 的關鍵。本書將引導你從基礎到進階場景使用 ClickOnce。這是一本極好的資源。”
— **Rockford Lhotka**,Magenic Technologies 首席技術傳道者,微軟區域總監

“Brian 從現實世界的部署問題出發來探討 ClickOnce,這顯然是基於現實世界的經驗。僅此一點就足以讓我購買這本書。然而,這本書的投資價值更高,因為 ClickOnce 現在是 .NET Framework for Windows Forms 2.0 的核心部分,未來也將成為 Windows Presentation Foundation 的一部分。”
— **Michael Weinhardt**,SDK 程式設計師/作家,應用程式模型,Windows Presentation Foundation,微軟

“這本書涵蓋了智慧客戶端應用程式成功所需的最重要成分——部署。作者樸實的寫作風格,加上對主題的深入探討,使這本書成為所有認真對待智慧客戶端開發者的寶貴資源。”
— **Vishwas Lele**,Applied Information Sciences 首席架構師,微軟區域總監

微軟的新 ClickOnce 自動更新技術可以徹底簡化應用程式的部署。使用它,.NET 開發者和架構師可以提供強大的智慧客戶端體驗,並輕鬆維護當今最佳的 Web 應用程式。

微軟區域總監及 MVP Brian Noyes 在向專業開發者預覽和教授 ClickOnce 方面擁有無與倫比的經驗。在《Smart Client Deployment with ClickOnce》中,Noyes 精確展示了如何在你的現實世界企業應用程式中充分利用 ClickOnce。Noyes 涵蓋了 ClickOnce 的設計、架構、安全性、安裝、更新和啟動過程——每個主題都有完整的案例研究和詳細的範例代碼。

這本專注且簡潔的書解釋了如何:

- 設計客戶端應用程式以實現高效的部署和自動更新
- 快速輕鬆地執行應用程式部署和自動更新
- 提供“按需”客戶端應用程式更新
- 使用 Visual Studio 2005 Bootstrapper 部署前置條件
- 完全控制 ClickOnce 的強大發佈、更新和安全選項
- 利用使 ClickOnce 成為可能的 Visual Studio 2005 和 .NET 2.0 平台功能
- 理解你的應用程式在 ClickOnce 執行時環境中的行為

本書的範例代碼可在 www.softinsight.com/clickoncebook 下載。

**目錄**

圖表 xv
前言 xxi
序言 xxiii
致謝 xxxi
關於作者 xxxiii
第一章:ClickOnce 簡介 1
什麼是智慧客戶端應用程式? 2
為什麼選擇智慧客戶端? 6
智慧客戶端部署挑戰 7
ClickOnce 的設計目標 8
ClickOnce 的特性 9
術語 10
ClickOnce 部署模式 12
ClickOnce 部署架構 14
ClickOnce 部署過程概述 16
第一次 ClickOnce 部署:ClickOnce Hello World 17
ClickOnce 的軟體需求 26
使用 ClickOnce 部署的內容(及不應部署的內容) 28
ClickOnce 與其他部署技術的比較 30
智慧客戶端架構概述 32
我們在哪裡? 34
第二章:使用 ClickOnce 的初始部署 37
使用 Visual Studio 2005 發佈應用程式 38
ClickOnce 發佈選項 38
Visual Studio 發佈逐步指南 50
ClickOnce 應用程式初始部署逐步指南 64
將應用程式移至生產環境 76
使用 Mage 將應用程式移入生產環境 77
我們在哪裡? 80
第三章:自動應用程式更新 83
自動更新逐步指南 84
ClickOnce 更新選項 91
部署伺服器的幕後 99
客戶端機器上的更新幕後 100
在客戶端上移除或恢復應用程式 104
從部署伺服器恢復應用程式版本 105
重新發佈先前版本 105
我們在哪裡? 106
第四章:按需更新 107
何時按需更新有意義? 108
介紹 ClickOnce API 109
添加同步按需更新 110
異步執行更新 114
更新進度通知 122
將按需更新與自動更新結合 123
檢查詳細的更新信息 125
收集當前部署的信息 126
我們在哪裡? 128
第五章:應用程式和數據檔案管理 131
應用程式可執行檔的部署 132
在 Visual Studio 中添加應用程式檔案 134
配置 ClickOnce 應用程式檔案 135
將檔案嵌入到組件中 138
本地化你的 ClickOnce 部署 141
以程式方式下載應用程式檔案 147
使用 ClickOnce 部署可擴展的插件應用程式 151
使用 Mage 管理應用程式檔案 157
通過 Visual Studio 管理數據檔案 160
處理客戶端上的數據檔案 161
數據檔案更新過程 164
與應用程式一起部署客戶端數據庫 167
遷移 SQL Compact Edition 數據庫檔案 168
我們在哪裡? 174
第六章:ClickOnce 安全性 177
ClickOnce 安全性概述 177
影響 ClickOnce 的 Internet Explorer 安全設置 188
配置 ClickOnce 安全權限 189
理解和管理發佈者證書 197
簽署應用程式更新 208
用戶提示 210
受信應用程式的用戶安全政策 215
受信發佈者的權限提升 216
添加受限代碼區段 219
根據用戶角色保護應用程式 221
保護伺服器上 ClickOnce 應用程式檔案的訪問 222
我們在哪裡? 223
第七章:使用 Bootstrapper 的前置條件部署 225
Bootstrapper 特性 226
Bootstrapper 和 ClickOnce 範例部署 229
向 Bootstrapper 添加項目 234
生成 Bootstrapper 清單 245
我們在哪裡? 248
第八章:進階 ClickOnce 主題 249
使用 URL 查詢字串參數 249
執行自定義安裝/初始化代碼 255
調試 ClickOnce 應用程式 256

最後瀏覽商品 (20)