Sunday, September 15, 2013

ClickOnce Deployment

Introduction

We are very much aware of Windows installer, there  are many drawbacks which a developer faces with Windows installers as Updating the application, administrative permission problem, impact to the users computer
ClickOnce is a deployment technique that enables you to create self-updating Windows-based applications that can be installed and run with minimal user interaction.

Click one deployment Advantage:

a.    Self updating windows based application.

b.    Windows installer requires administrative permission for installation. ClickOnce deployment enables non-administrative users to install and grants only those Code Access Security permissions necessary for the application.

c.    Low impact to the user computer: In the windows installer application often relay on shared component, with the potential for versioning conflicts; with ClickOnce deployment, each application is self-contained and cannot interfere with other applications.

Any Windows Presentation Foundation, Windows Forms, or Console Application published using ClickOnce technology is ClickOnce Application.

ClickOnce application can be publish in three different ways:
a.    From a web page
b.    From a network file share
c.    From  a media such as CD-ROM

Key feature of ClickOnce Deployment

a.    ClickOnce application can be installed on an end user's computer and run locally even when the computer is offline, or it can be run in an online-only mode without permanently installing anything on the end user's computer.
b.    ClickOnce applications can be self-updating; they can check for newer versions as they become available and automatically replace any updated files. The developer can specify the update behavior; a network administrator can also control update strategies, for example, marking an update as mandatory. Updates can also be rolled back to an earlier version by the end user or by an administrator.
c.    ClickOnce applications are isolated, installing or running a ClickOnce application cannot break existing applications. ClickOnce applications are self-contained; each ClickOnce application is installed to and run from a secure per-user, per-application cache. ClickOnce applications run in the Internet or Intranet security zones. If necessary, the application can request elevated security permissions.

Steps to work with ClickOnce Deployment
•    Publishing ClickOnce Deployment
•    Deploying ClickOnce Applications
•    Installing ClickOnce Applications
•    Updating ClickOnce Application
The ClickOnce Technology depends on two XML manifest files; An Application manifest and a deployment manifest. The files are used to describe where the ClickOnce applications are installed from, how they are updated, and when they are updated.

No comments:

Post a Comment