Вы находитесь на странице: 1из 19

How to Create Setup file(.

Exe File) from Windows Forms Application


This is the most important tutorial for creating the Setup File(.exe file) from windows forms application.You can easily install it any windows computers.You can use it only windows platform. In previous tutorial i have shown " ow insert data is data!ase and print the grid"view data in windows forms application" #ow i am going to convert these windows forms application to the Setup File. Friends who have not read my previous tutorials please read first this tutorial and download it$ otherwise you will not understand correctly.For read the previous tutorial . There are some steps to create Setup File From windows forms applications. please follow these steps carefully.

Step1:-

First open your windows form application in your visual studio. ere i am using visual studio %&'& and my windows forms application #ame is "test"$which had made in previous tutorial.you can download it (lic) download. #ow i am going to open "test" application in visual studio %&'&$my "test" application is on des)top. See it carefully and open your application together.

Step2:-

#ow open "test" application in visual studio %&'&$which is given !elow$ follow it. *pen visual studio %&'&"+File"+*pen pro,ect-solution"+select the application "test"Folder.+ clic) open. See it/"

Step3:post. Form'.cs/"+

First see Form'.cs$Form%.cs and Solution 0xplorer window for remem!er previous

Form2.cs:->

Step4:-

#ow open solution explorer(if not open)"+1dd #ew Item"+Select 1pplication (onfiguration File"+(lic) 1dd See it:->

See 1pp.(onfig File/"It is used for creating connection to the data!ase. It is optional.

Step!:- First create ta!le in data!ase$here i am already created "213"ta!le in previous


tutorial.See it/

write the connection string for creating the connection data!ase ta!le "RAM" in app.Config file.if You want to create otherwise escape it

See it:->

Step6:-

#ow this is main step to create the step. *pen Solution 0xplorer"+(lic) on 4solution4test4(4pro,ect)"+1dd #ew 5ro,ect"+Select other pro,ect types from left window"+Select visual studio Installer"+Select the setup 6i7ard"+ write your setup name in !elow(mysetup)"+clic) *8.

Step7:

*ne wi7ard will !e opened"+clic) 4Ne t4 9utton.

See it/"

Select 2adio !utton "C!eate a setup fo! a windows appli"ation" "+(lic) #ext.

See it/"

Select "#!i$a!% output f!o$ te t"-& (lic) #ext.

See it/"

(lic) 1dd 9utton"+go your application folder$which you want to create setup.

See it/"

Select the "App"File from your pro,ect ("test")"+ clic) *pen 9utton.

See it/"

#ow clic) #ext 9utton.

See it/"

(lic) Finish 9utton.

See it/"

#ow clic) Appli"ation Folde! From left side window.

See it/"

:o right side window"+ 2ight mouse clic) "+1dd file"+select i"on file 'extension . icon( ) This icon will show on Your des)top when you install the setup on computer.

See it/

#ow create shortcut file of "#!i$a!% *utput File" !y l 2ight mouse clic) on 5rimary *utput File.

See it/

#ow change shortcut folder$ here i have changed 4$%setup+.

See it/

Now Right mouse click on ' m"setup# S$ortcut and go property window.

See it:

(lic) I"on and select ,!owse.

See it/

(lic) 9rowse 9utton.

See it/

(lic) Appli"ation Folde! and select "$%setup"Icon file"+clic) *8.

See it/

1gain select icon file and clic) *8 !utton.

See it/

;rag and drop +$%setup s-o!t"ut+ <ser4s ;es)top (left side window).

See it/

#ow again create shortcut primary output"+rename it again $%setup -& again add icon File from the mysetup p!ope!t% window as !efore we have added.

See it/

#ow 1dd #ew Folder in ".se!+s p!og!a$ $enu"(left side window) and change #ame it as setup"+#ow again ;rag and ;rop $%setup s-o!t"ut to the setup.

See it/

#ow go "Solution / plo!e! window"-& 2ight mouse clic) on $%setup-&(lic) 0uild. wait some time whenever setup is not successfully !uild"+ Your setup is !uild successfully"+:o and open your application Folder("test").

See it/

clic) mysetup/"

See it/"

->(lic) ;e!ug Folder.

See it/"

Step%:- 9efore installing the setup you First install .N/1 FRAM/2*R3 4.5 on your system$Cli"6 -e!e for download . whenever you install this setup on your window (*S) and open it then you will see li)e this/"

Вам также может понравиться