Showing posts sorted by relevance for query setup. Sort by date Show all posts
Showing posts sorted by relevance for query setup. Sort by date Show all posts

Friday, August 3, 2012

Adding a Setup Project in Visual Studio-2010

  1. Add a setup project in your project solution by
Right Click on Solution -> Add -> New project
  1. Add New Project window opens. Select Setup Project by
Other Project Types -> Setup and Deployment -> Visual Studio Installer
  1. Give some name to your setup project and click OK
  2. Setup Project gets added into your project solution.
  3. Right click on your setup project
  4. Go to Add option and then Project Output
  5. Select Primary Output of in the list box and select your application in the top combo box. Now click OK.
  6. Again right click on your setup project and Go to View option and then Custom Actions
  7. Now Custom Actions window gets opened. Right click the Custom Actions and then Add Custom Action…
  8. A window opens, now you have to double click Application Folder option. Doing this , you get to see Primary output from “Your Project”. Select that option and click OK
  9. You would see that primary output of your project gets added in Install, Commit, Rollback and Uninstall option.
  10. Make sure that your setup project is got added into your project solution.  Right click the project solution and open the property, go to the Configuration and select the Build option
  11. Build the whole project.
  12. Now you can install your application by right click the Setup project and choose Install option.
  13. Your app gets installed successfully! You can reach its exe in the default path in your setup. (Generally default path is like…C:\Program Files\YourCompanyName\)
Thanks

Wednesday, July 3, 2013

How to set directory path for setup project in visual studio 2010


Here I am going to share how we can set directory path for our installed package.
Suppose you have a setup project already included in your main project. (To know how to add setup project in Visual Studio-2010, you may refer to article at:

http://www.c-sharpcorner.com/Blogs/9817/adding-a-setup-project-in-visual-studio-2010.aspx)








Now you want to set directory path for your install, so that your app get installed in the desired location. In order to do this, you need to follow steps as:

 1.Right Click on your Setup project -> View -> File System

 2.Then Click Application Folder, open property tab

 3.Set 'AlwaysCreate' property to TRUE.
  (This property creates a directory structure for your install, if directory structure doesn’t exist.)

 4.Then Set 'DeafultLocation' property to your desired location (e.g. C:\MyWinApps\).
 (You may choose any directory structure of your choice except some folders/Directories which are protected by Windows Operating System)