# ClickOnce Deployment with TX Text Control .NET for Windows Forms

> Deploy a TX Text Control .NET for Windows Forms application through ClickOnce in Visual Studio 2005. The guide covers adding redistributable files, setting Build Action to Content, configuring publish settings, and enabling automatic updates without requiring admin rights.

- **Author:** Bjoern Meyer
- **Published:** 2006-02-21
- **Modified:** 2026-03-05
- **Description:** Deploy a TX Text Control .NET for Windows Forms application through ClickOnce in Visual Studio 2005. The guide covers adding redistributable files, setting Build Action to Content, configuring publish settings, and enabling automatic updates without requiring admin rights.
- **4 min read** (716 words)
- **Tags:**
  - ClickOnce
  - .NET
  - Visual Studio
- **Web URL:** https://www.textcontrol.com/blog/2006/02/21/clickonce-deployment-with-tx-text-control-net-for-windows-forms/
- **LLMs URL:** https://www.textcontrol.com/blog/2006/02/21/clickonce-deployment-with-tx-text-control-net-for-windows-forms/llms.txt
- **LLMs-Full URL:** https://www.textcontrol.com/blog/2006/02/21/clickonce-deployment-with-tx-text-control-net-for-windows-forms/llms-full.txt

---

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](http://msdn.microsoft.com/smartclient/understanding/windowsforms/2.0/features/clickonce.aspx "Link to source article"):

*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 for Windows Forms to the form, as described in the TX Text Control .NET for Windows Forms documentation.
3. In the *Solution Explorer*, right-click on your project and select *Add* -> *Existing Item...*.
4. Browse to the TX Text Control .NET for Windows Forms 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 for Windows Forms ClickOnce Deployment](https://s1-www.textcontrol.com/assets/dist/blog/2006/02/21/a/assets/tx_dotnet_clickonce_3.webp "TX Text Control .NET for Windows Forms 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 for Windows Forms ClickOnce Deployment](https://s1-www.textcontrol.com/assets/dist/blog/2006/02/21/a/assets/tx_dotnet_clickonce_4.webp "TX Text Control .NET for Windows Forms 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 for Windows Forms ClickOnce Deployment](https://s1-www.textcontrol.com/assets/dist/blog/2006/02/21/a/assets/tx_dotnet_clickonce_2.webp "TX Text Control .NET for Windows Forms 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 for Windows Forms ClickOnce Deployment](https://s1-www.textcontrol.com/assets/dist/blog/2006/02/21/a/assets/tx_dotnet_clickonce_1.webp "TX Text Control .NET for Windows Forms ClickOnce Deployment")

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

![TX Text Control .NET for Windows Forms ClickOnce Deployment](https://s1-www.textcontrol.com/assets/dist/blog/2006/02/21/a/assets/tx_dotnet_clickonce_5.webp "TX Text Control .NET for Windows Forms 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 for Windows Forms ClickOnce Deployment](https://s1-www.textcontrol.com/assets/dist/blog/2006/02/21/a/assets/tx_dotnet_clickonce_6.webp "TX Text Control .NET for Windows Forms ClickOnce Deployment")

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

![TX Text Control .NET for Windows Forms ClickOnce Deployment](https://s1-www.textcontrol.com/assets/dist/blog/2006/02/21/a/assets/tx_dotnet_clickonce_7.webp "TX Text Control .NET for Windows Forms 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](http://bin.textcontrolasp.com/demos/TXClickOnceSample/publish.htm)

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.

---

## About Bjoern Meyer

As CEO, Bjoern is the visionary behind our strategic direction and business development, bridging the gap between our customers and engineering teams. His deep passion for coding and web technologies drives the creation of innovative products. If you're at a tech conference, be sure to stop by our booth - you'll most likely meet Bjoern in person. With an advanced graduate degree (Dipl. Inf.) in Computer Science, specializing in AI, from the University of Bremen, Bjoern brings significant expertise to his role. In his spare time, Bjoern enjoys running, paragliding, mountain biking, and playing the piano.

- [LinkedIn](https://www.linkedin.com/in/bjoernmeyer/)
- [X](https://x.com/txbjoern)
- [GitHub](https://github.com/bjoerntx)

---

## Related Posts

- [Enable Visual Styles in Visual Studio Projects](https://www.textcontrol.com/blog/2007/03/27/enable-visual-styles-in-visual-studio-projects/llms.txt)
- [ClickOnce Deployment with Firefox](https://www.textcontrol.com/blog/2006/05/09/clickonce-deployment-with-firefox/llms.txt)
