Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to ship a Windows Forms application to a client without .NET?

This is about the deployment of a Windows Forms application. I have created a Windows Forms application, but I'm not sure if the users have installed .NET version 4. I have put my Windows Forms application at my website and the users will download it to their desktop.

How do I automate the process of downloading and installing .NET 4 if the users have not installed it? What are the recommended ways of deploying Windows Forms applications to users?

like image 799
NewBie Avatar asked Sep 22 '11 19:09

NewBie


People also ask

What is the difference between Windows Forms application and console application?

A Windows form application is an application that has a graphical user interface(GUI) like the Visual C# IDE. A console program on the other hand is a text application. There are not fancy controls like buttons or textboxes in a console application and they are run from the command prompt.

How use WCF service in Windows form application?

Reference the WCF serviceOn the File menu, point to Add and then click New Project. In the New Project dialog box, expand the Visual Basic or Visual C# node, select Windows, and then select Windows Forms Application. Click OK to open the project. Right-click WindowsApplication1 and click Add Service Reference.


3 Answers

You could try ClickOnce.

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

You just need to define which prerequisites you want to include in bootstraper, as described here

like image 183
bartosz.lipinski Avatar answered Oct 07 '22 05:10

bartosz.lipinski


You could define prerequisites in your Setup And Deployment Project.

like image 37
Darin Dimitrov Avatar answered Oct 07 '22 05:10

Darin Dimitrov


You need to provide an installer and mark .NET as a prerequisite. See Stack Overflow question How to make an installer for my C# application? (.NET 3.5, but the idea is the same).

like image 30
Hertzel Guinness Avatar answered Oct 07 '22 06:10

Hertzel Guinness