Skype:TextControlSupport
Orders:877-462-4772
TX Text Control - word processing components.
« »

ClickOnce deployment with TX Text Control .NET

Blogged by Björn Meyer on February 21, 2006 and tagged with ClickOnce, .NET, Visual Studio.

ClickOnce is a new .NET application deployment technology that makes it possible to deploy a Windows Forms based application through Internet Explorer.

From Microsoft MSDN:

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.

The interesting part is that no administrator rights are required to install the application.

Easy to deploy

The end-user simply clicks on a link and the application installs itself automatically. If updates are available, the application downloads and installs them automatically. Thus, developers can be certain that end-user are always up to date.

Creating the application

  1. In Visual Studio 2005, create a new Windows application.
  2. Add TX Text Control .NET to the form, as described in the TX Text Control .NET documentation.
  3. In the Solution Explorer, right-click on your project and select Add -> Existing Item....
  4. Browse to the TX Text Control .NET installation folder and - with the exception of TXTextControl.dll - select all redistributable files from the BIN folder and confirm with Add.

    TX Text Control .NET ClickOnce Deployment
  5. Select all newly added files in the Solution Explorer and set the Build Action property in the Properties window to Content.
  6. Set the Copy to Output Directory property to Copy if newer.

    TX Text Control .NET ClickOnce Deployment
  7. Right-click on the project file and select Properties.
  8. On the last tab Publish, click on Application Files....
  9. All added files should be set to Publish Status -> Include (Auto).
  10. Select TXTextControl.dll and specify the same Publish Status -> Include and close the dialog box with OK.

    TX Text Control .NET ClickOnce Deployment
  11. Choose Publish (your project name) from the Build menu entry.
  12. Select a location to publish the application. Default is http://localhost/your project name/.
  13. Accept the next two dialog pages with Next and Finish.

After the application has been successfully published, you can browse to the specified location with Internet Explorer. The following screen will appear:

TX Text Control .NET ClickOnce Deployment

Click on Install to start the installation. .NET is verifying the application requirements:

TX Text Control .NET ClickOnce Deployment

If the pre-requisites are okay (in this case .NET Framework 2.0), the distributable files will be downloaded locally:

TX Text Control .NET ClickOnce Deployment

After the installation, the application will start automatically and can be used.

TX Text Control .NET ClickOnce Deployment

In this sample, a start menu entry has additionally been created, so that the end user is able to start the application from the start menu. If a newer version is available on the server, the updates will be installed automatically.

Start the sample here

Using ClickOnce requires that the target client already have the .NET Framework 2.0 installed. Additionally, Internet Explorer must be used to install the application. Please do not hesitate to contact me, if you have any questions about this. I look forward to discuss this with you.

« Prev:Using the IsCommonValueSelected property
» Next:Service Pack 2 for TX Text Control 12.0 released

top

Top 10 Bestselling Product Award 2007Top 25 Publisher Product Award 2007Top 10 Bestselling Product Award 2007 in JapanTop 25 Bestselling Product Award 2006Top 25 Bestselling Publisher Award 2006Reader's Choice Award, dot.net magazin, 3rd place