Monday, January 20, 2014

How to Create Setup file(.Exe File) from Windows Forms Application visual studio 2010

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.
Now 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.Here i am using visual studio 2010 and my windows forms application Name is "test",which had made in previous tutorial.you can download it Clickdownload. 
Now i am going to open "test" application in visual studio 2010,my "test" application is on desktop. See it carefully and open your application together.



Step2:-  Now open "test" application in visual studio 2010,which is given below, follow it. Open visual studio 2010->File->Open project/solution->select the application "test"Folder_> click open.
See it:-


Step3:-  First see Form1.cs,Form2.cs and Solution Explorer window for remember previous post.
Form1.cs:->

Form2.cs:->

Step4:-> Now open solution explorer(if not open)->Add New Item->Select Application Configuration File->Click Add 
See it:->

See App.Config File:-It is used for creating connection to the database. It is optional.

Step5:- First create table in database,here i am already created "RAM"table in previous tutorial.See it:



  • write the connection string for creating the connection database table "RAM" in app.Config file.if You want to create otherwise  escape it
See it:->



Step6:-  Now this is main step to create the step. Open Solution Explorer->Click  on 'solution'test'('project)->Add New Project->Select other project types from left window->Select visual studio Installer->Select the setup Wizard-> write your setup name in below(mysetup)->click OK.



Step7:- 
  •  One wizard will be opened->click 'Next' Button.
See it:-


  • Select Radio button "Create a setup for a windows application" ->Click Next.
See it:-


  • Select "Primary output from text"-> Click Next.
See it:- 

  • Click Add Button->go your application folder,which you want to create setup.
See it:- 

  • Select the "App"File from your project ("test")-> click Open Button.
See it:- 
  • Now click Next Button.
See it:- 
  • Click Finish Button.
See it:- 


  • Now click Application Folder From left side window.
See it:-

  • Go right side window-> Right mouse click ->Add file->select icon file (extension . icon) , This icon will  show on Your desktop when you install the setup on computer.
See it:


  • Now create shortcut file of "Primary Output File" by l Right mouse click on  Primary Output File.
See it:


  • Now  change shortcut folder, here i have changed 'mysetup'.
See it: 


  • Now Right mouse click on ' mysetup' Shortcut and go property window.
See it:  

  • Click Icon and  select browse.
See it: 

  • Click Browse Button.
See it: 

  • Click Application Folder and select "mysetup"Icon file->click OK.
See it: 

  • Again select icon file and click OK button.
See it: 

  • Drag and drop 'mysetup shortcut' User's Desktop (left side window).
See it: 
  • Now again create shortcut primary output->rename it again mysetup ->  again add icon File from the mysetup property window as before we have added.
See it: 




  • Now Add New Folder in "User's program menu"(left side window) and  change Name it as setup->Now again Drag and Drop mysetup shortcut  to the setup.
See it:  

  • Now go "Solution Explorer window"-> Right mouse click on mysetup->Click Build. wait some time whenever setup is not successfully build-> Your setup is build successfully->Go and open your application Folder("test").
See it: 


  • click mysetup:-
See it:- 

  • ->Click Debug Folder.
See it:-    

Step7:- Before installing the setup you First install .NET FRAMEWORK 4.0 on your system,Click here for download . whenever you install this setup on your window (OS) and open it then you will see like this:-


Note:-I have seen that many student face problems.

41 comments:


  1. Thanks for the informative blog, Needed it! You did a great job. Keep going.
    You can also visit:

    SMS SERVICE FOR SCHOOL

    ReplyDelete
  2. Seems like you know a lot about this topic. Thankyou for this interesting information.
    PLEASE VISIT:

    bulk sms service provider in laxmi nagar

    ReplyDelete
  3. I am really happy to say it’s an interesting post to read . I learn new information from your article , you are doing a great job . Keep it up.

    bulk sms service provider in delhi

    bulk sms service provider in laxmi nagar

    Bulk sms service provider in india

    ReplyDelete

  4. Which is the best washing machine cover in 2020? This is the most awaited question to be answered. Washing machine cover are prominent part of every home that helps you in looking neat and gorgeous. Best Washing Washing Machine Cover Whirlpool

    ReplyDelete
  5. This blog has been amazing, the author has really worked hard to form such an informative blog.
    I really appreciate the author for his time. and here is something you would like about the home appliance cover,
    here at dream care we are providing
    mattress cover online
    that too on 70% off shop now!

    ReplyDelete
    Replies

    1. Nice your Blog

      shashanksenglishpro is one of the most trusted names in English Education and English Speaking Tution. Visit My Page

      English Speaking Class in Kalyan Mumbai

      English Home Tution in Kalyan, Dombivli

      Delete
  6. This blog has been amazing, the author has really worked hard to form such an informative blog.
    I really appreciate the author for his time. and here is something you would like about the home appliance cover,
    here at dream care we are providing
    mattress cover online india
    that too on 70% off shop now!

    ReplyDelete
  7. This blog has been amazing, the author has really worked hard to form such an informative blog.
    I really appreciate the author for his time. and here is something you would like about the home appliance cover,
    here at dream care we are providing waterproof baby sheet that too on 70% off shop now!

    ReplyDelete
  8. This is really helpful. You’re doing a great job, Keep it up


    hair extensions near me

    ReplyDelete
  9. such a nice blog keep sharing it click here for best RO Cover

    ReplyDelete
  10. such a nice blog keep sharing it click here for best Bottle Cover

    ReplyDelete

  11. Nice Your Blog


    Did you want to promote your Online Marketing for Coaching Institutese in India?


    Online Marketing for Coaching Institutes |Elite SEO Agency

    ReplyDelete

  12. Nice your Blog

    shashanksenglishpro is one of the most trusted names in English Education and English Speaking Tution. Visit My Page

    English Speaking Class in Kalyan Mumbai

    English Home Tution in Kalyan, Dombivli

    ReplyDelete


  13. Nice your Blog

    Nexcuitis one of the most trusted names in Best Education . Visit My Page

    Web Development Services in Delhi

    SMS Provider in India


    ReplyDelete

  14. Nice your Blog

    Find details of Tpe Compound Manufacturers in India

    Tpe Compound Manufacturers in India

    ReplyDelete



  15. Nice Your Blog


    If you're a realtor or own a Real Estate for SEO Services Company


    Best SEO Company in Laxmi Nagar | SEO Services in Laxmi Nagar Delhi

    ReplyDelete


  16. Nice Your Blog


    If you're a realtor or own a Real Estate for SEO Services Company


    SEO Packages in Delhi | Nexcuit Web Solution

    ReplyDelete

  17. Nice your Blog

    Massive Male Plus UPDATE 2020 – Does It Really Work?

    https://k12.instructure.com/eportfolios/7387/Home/Massive_Male_Plus_UPDATE_2020__Does_It_Really_Work
    https://angel.co/company/massive-male-plus-male-enhancement-1
    https://www.xfactory.io/forum/she-qun-huo-dong-community-events/massive-male-plus-update-2020-does-it-really-work
    https://in.pinterest.com/pin/811633164091918022/
    https://in.pinterest.com/pin/811633164091918048/
    https://pubhtml5.com/otro/nizh
    https://pubhtml5.com/otro/khwn
    https://www.completefoods.co/diy/recipes/massive-male-plus-male-enhancement-5
    https://www.emailmeform.com/builder/form/759OeBd7SJf5t7i1

    ReplyDelete
  18. Really get a clear answer of my question after visit many blogs.
    I recommend to all if you any doubt like me Visit these blogs -
    Tpe vs Tpv
    Tpe vs Pvc
    Polymer material in india
    Where to buy Tpe
    Tpe manufactures in india
    Tpe suppliers in india

    ReplyDelete
  19. This comment has been removed by the author.

    ReplyDelete