banner



How To Create An Installer For Windows Form Application

Introduction :


Here we will learn how to create installer file for windows application
 in c#  using visual studio with examples or create setup file for windows form application in visual studio in c# with example. Past using setup projection in visual studio setup and deployment section templates nosotros can easily create installer or setup file for windows awarding in c#.

Clarification :

In previous articles I explained fix startup page in windows awarding, bear witness the progressbar in windows awarding in c#, vb.net, bind data to datagridview with example in c#, vb.net, export datagridview data to excel with example in c#, vb.net, constructors in c# with examples, difference betwixt virtual, override, new keywords in c#

 and many manufactures relating to asp.net , c# , vb.net and JQuery . Now I will explain how to create installer or setup file for windows form application in visual studio using c# with example.

Before we create installer or setup file for windows form application first nosotros will create one sample windows forms awarding

Become to File à projection à select Windows Forms Awarding à Give name to your awarding à click OK like as shown below


Now in your page add Textbox and push button controls and double click on your button and write the code like as shown below

private void button1_Click(object sender, EventArgs east)

{

string str = textBox1.Text.Trim();

if (str!="")

{

MessageBox .Show("Thank You For Interest", "Success");

}

else

{

MessageBox .Show("Please Enter Name", "fault");

}

}

One time you write the lawmaking run your application that will render the output like as shown below

Output

Now we have sample windows form awarding for this nosotros will create setup file.

First shut your application and again open visual studio and create new setup project by following below steps

Go to File à Projection à Other Project Types à Select Setup and Deployment à Select Setup project like as shown in beneath paradigm


It will open up window similar as shown below in which contains three folders those are Application Folder, User'due south Desktop and Users' Program Menu. These folders are the places where we desire to copy our setup files during installation process. Now right click on Awarding folder and select Add à File like equally shown below

One time nosotros click on File it will open new window in that navigate to bin folder of your sample windows form application and select your awarding .exe file and click OK like equally shown below

Once we add together exe file now right click on your setup file and click on create shortcut to add that shortcut to User's Desktop folder or User'southward Program bill of fare when you install the application

Now right click on your setup project similar as shown below to alter properties

In properties window click on Prerequisites button to add required changes like .Internet framework, SQL Server Compact to setup file like every bit shown below

One time yous washed all the changes now right click on your setup project and click Build it volition create setup file in your setup application folder similar as shown below

Now open your setup files application binder and check information technology in debug folder it will contains setup files like every bit shown beneath

Create Installer File for Windows Application using Visual Studio

At present click on your setup file to install it. If y'all click on setup file it will open window like as shown beneath

At present click Next Next in windows information technology will install your application like as shown below

In one case installation completed it will create shortcut on desktop because we added a backdrop to create shortcut on desktop if you open it will exist similar this

I hope information technology helps yous to create setup file for your windows grade application.....

Protected by Copyscape Unique Content Checker

If you enjoyed this post, please support the blog beneath. It'due south FREE!

Get the latest Asp.internet, C#.net, VB.Net, jQuery, Plugins & Code Snippets for Costless by subscribing to our Facebook, Twitter, RSS feed, or past email.

subscribe by rss Subscribe past RSS subscribe by email Subscribe by Email

Source: https://www.aspdotnet-suresh.com/2017/03/create-installer-file-for-windows-application-using-visual-studio.html

Posted by: choiwhyall.blogspot.com

0 Response to "How To Create An Installer For Windows Form Application"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel