19
ClickOnce Deployment ClickOnce deployment allows you to publish Windows-based applications to a Web server or network file share for simplified installation.

ClickOnce Deployment Seminar

Embed Size (px)

Citation preview

Page 1: ClickOnce Deployment Seminar

ClickOnce Deployment

ClickOnce deployment allows you to publish Windows-based applications to a Web server or network file share for simplified installation.

Page 2: ClickOnce Deployment Seminar

ClickOnce Deployment Overview  Definition:

    ClickOnce is a deployment technology that allows you to create self-updating Windows-based applications that can be installed and run with minimal user interaction. ClickOnce auto-updating technology can radically simplify application deployment. Using it, .NET developers and architects can deliver highly interactive desktop applications while gaining the centralized maintainability and "always-up-to-date" qualities of Web applications.

Page 3: ClickOnce Deployment Seminar

Major Advantages of ClickOnce DeploymentComparison with Windows Installer

• Whenever an application is updated, the user must reinstall the entire appln.

• Applications often rely on shared components, with the potential for versioning conflicts

• Requires administrative permissions and allows only limited user installation

Windows Installer ClickOnce• You can provide updates

automatically. Only those portions of the application that have changed are downloaded.

• Each application is self-contained.

• Allows non-administrative users to install and grants only those Code Access Security permissions necessary for the application.

Page 4: ClickOnce Deployment Seminar

ClickOnce DeploymentSignificance

    In the past, these issues sometimes caused developers to decide to create Web applications rather than Windows-based applications, sacrificing the rich user interface and responsiveness of Windows Forms for ease of installation. With applications deployed using ClickOnce, you can have the best of both technologies.

Page 5: ClickOnce Deployment Seminar

What is ClickOnce Application?Criteria of deployment

• Windows Presentation Foundation.

• Windows Forms.• Console

applications.

Type of Apps Deployment strategy

• Install from the Web or a Network Share.

• Install from a CD.• Start the

application from the Web or a Network Share.

Page 6: ClickOnce Deployment Seminar

Install from the Web or a Network Share - Default Strategy

Page 7: ClickOnce Deployment Seminar
Page 8: ClickOnce Deployment Seminar
Page 9: ClickOnce Deployment Seminar

For installing the StatTicker, one needs to browse for the http address provided by the vendor. In the following example, the software resides in the below given address: http://192.168.100.51/MyApplications/publish.htm

Page 10: ClickOnce Deployment Seminar

     

Tracking ClickOnce Application Usage

    In order to track which users have installed or launched which applications from the server side, you need to authenticate the user's identity and to detect and intercept file download requests.     There are no built-in mechanisms with ClickOnce to determine which users are trying to deploy your applications, but there are a number of approaches you can employ to obtain this information.  

Page 11: ClickOnce Deployment Seminar

Approaches:

• Windows authentication over HTTP(S).• Custom authentication designed into the

application.• Passing query string parameters when

launching the application (requires dynamic manifest generation with embedded user credentials for installed applications).

• Custom client proxy and custom HTTP module authentication.

identifying the individual user is a more common requirement, and harder to achieve...

Page 12: ClickOnce Deployment Seminar

Using Windows Authentication

You need to configure IIS to pass requests for .application, .manifest, and .deploy files to ASP.NET instead of servicing those directly in IIS. You also want to turn off anonymous access to the site, and only allow Integrated Windows Authentication control.

The following screens shows how to enable the Tracing Windows authentication in the IIS 5.0

Page 13: ClickOnce Deployment Seminar

IIS after deploying the website

Page 14: ClickOnce Deployment Seminar

IIS Virtual Directory - Properties

Page 15: ClickOnce Deployment Seminar

Copy the Executable path and click  OK

Page 16: ClickOnce Deployment Seminar

Copy the Executable path.Enter the three extensions > .deploy> .application> .manifest

Page 17: ClickOnce Deployment Seminar

In the Directory Security tab, Uncheck Anonymous access and OK

Page 18: ClickOnce Deployment Seminar

    Now, the application is ready to be accessed from anywhere in a Intranet.     The access permission can be controlled by the admin of the network.     The Logger logs the informations about which user installs/Updates the application and so on...

Page 19: ClickOnce Deployment Seminar

Questions are Welcome!