HomeОбразованиеRelated VideosMore From: ProgrammingKnowledge

C# Tutorial 89: How to Publish an Application in C# and Make the Installation Setup

919 ratings | 196655 views
How to Create Installation Setup for Your C# Application Project Howto make setup file from project in VS2012 C# How to Create an Installer For a WinForm Application How to make an installer for my C# application? How can I deploy a C# application Deploying a C# application Visual Studio Create Setup project How to make setup file using VS 2010 in C# window forms How do I create setup in c# Create a simple installer from Visual Studio How make Setup installation file of my Completed C# project Make an Installation program for C# applications C# publish application properties
Html code for embedding videos on your blog
Text Comments (124)
Edward G (13 days ago)
Good video sir! May I if this contains the database that we use?
N.Srinivasulu Rao (20 days ago)
Very nicely explained, thanks a lot for sharing this trick 👌👍
Naeem Akram (1 month ago)
Guys, you may learn socket programming in C# .Net in my online course at Udemy. Special discount promo codes are given below https://www.udemy.com/tcpip-socket-programming-for-coders-using-csharp-net/?couponCode=HALF https://www.udemy.com/udpsocketprogramming/?couponCode=HALFPRICE
Sagar Maharjana (2 months ago)
How do I publish for both 32 bit and 64 bit
Salomon Frux (2 months ago)
Great bro, I subscribed. Thanks and waiting for more videos like this.
Hitman HD (2 months ago)
How to edit the icon?
Kojo Vii (3 months ago)
thank you sir for lesson, it great, i want to develop a school management system in c# and sql 2014 but don't know how to to do it well, please can you do a video on that since most developers are doing it hindi and urdu, most of us don't understand . so i wish you will do one for me in English. and please ho can i decompile an setup and re-Assembly it. thank you. [email protected]
Chaos INC. (3 months ago)
It won't working an another computer.
Maaz Hussaini (3 months ago)
i do not have publish option in VS 2017
AroxProgramming (3 months ago)
How to create a Desktop shorcut ?
Seth Hong (4 months ago)
easy tutorial, thanks
Khalid Afridi (4 months ago)
DICK Stop @8:35.... :D:D:D its Desktop.
Nitesh Pandit (4 months ago)
Nice video man...but soo slow, could have been 10x faster. Cheers
Memory Warrior (4 months ago)
This was great thanks. I was missing the Batch Build option on my Visual Studio, but I just right clicked on the Setup part and Build that part on it's own. Just one thing - I have images and MP3 files that I need to store in the C:\Program Files\Application folder as well. How do I include those files in the installer, anybody know?
Sanity (5 months ago)
He gon show me da wae
Muammer Kaya (5 months ago)
How can i make an unable to copy project?i dont wANT that they can use it in different computers.
bara'a ageel (6 months ago)
thanks a lot
bara'a ageel (6 months ago)
thanks a lot
Maheesha Nashath (6 months ago)
you can download Microsoft VS installer projects from these inks and after that you will be able to view setup and development VS2013 >> https://marketplace.visualstudio.com/items?itemName=UnniRavindranathan-MSFT.MicrosoftVisualStudio2013InstallerProjects VS2015 >> https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2015InstallerProjects VS2017 >> https://marketplace.visualstudio.com/items?itemName=VisualStudioClient.MicrosoftVisualStudio2017InstallerProjects
jaser cambio08 (7 months ago)
Thank you so much sir for this Free and a very helpful video ' God bless u
Suriya pandian (7 months ago)
I done with it. But once I created my first version of my kit. Then how do I update it to 1.2?
Paul Sihasutthi (8 months ago)
Is there a way to have a custom logo for your shortcut or app? also it would look nice to have a splash screen before setup dialogue box appear. is it possible with this visual studio setup project template?
Mathias Mboya (8 months ago)
3pleTTT (10 months ago)
Thank you soooo much!
Arslan Arif (10 months ago)
Awesome Sir, Thank you very much for your lectures, It helps us a lot. I made first ever Software today. Hurrah!
Hans Almon (10 months ago)
thank you
Angrej Kumar (10 months ago)
Thank you so much for this video. Its very descriptive. Thanks a lot!
ranimations (10 months ago)
AAAnd the dekstop. rofl
nurafiqahmahizan (10 months ago)
So, we can just run the setup file on other machine or pc, and the project run well?
Qaisar Nisar (10 months ago)
what can i do i have multiple projects for which i wand single installer .. anyone help me ?
Bogdan Anton (11 months ago)
How i can create 1 single setup? Or why are 2 of them?
yNSPIRON (11 months ago)
Hello, may I seek anyone's quick advice before I start debugging a EXISTING Project for C#. I already have the source files. I just need to debug it to be more stable as some testing/commands is giving false reject in TESTING the product. How to update the entire project (as tones of .cs files inside the source files) to reflect my changes and create an application, a debug and release apps? Which main cs file to change or just the sln file? Thank you in advance.
safa7 zr8 (1 year ago)
Fuck It doesn't work Shit for my life
rahul gupta (1 year ago)
if this setup is installed on another computer which does not have visual studio, then will it run or not..? if not, then what extra files are needed along with the setup file.
Pawan Kumar Tiwari (1 year ago)
How to check that installer project to dotnet version installed or not
Feres Henteti (1 year ago)
it's called Setup and DEPLOYMENT, not DEVELOPMENT.
MD Rob (1 year ago)
Fellas, If you do not see the "Visual Studio Installer" probably you do not have the package for that, so download the package from here, https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.MicrosoftVisualStudio2015InstallerProjects Hope this fixes it, I had the same problem.
Buskila Maor (1 year ago)
doesn't work on a different machine
MYaqoobEmbedded (1 year ago)
Thanks Sir
YouTube User (1 year ago)
If you cant find Setup Project, go to Tools -> Extensions and Updates and install "Microsoft Visual studio 2017 Installer Projects"
Hafiz Siddique (1 year ago)
i am using vs2012 express and there is no vs installer tab in other project type. there is only two tabs 'Extensbility' and 'setup and deployment' . than how can i create setup of my project please help me????????????????????
manan alam (1 year ago)
very nice video sir good job
gamie123456 (1 year ago)
very very nice , thank you for this geat effort. gm
Megha Misra (1 year ago)
I have a small windows desktop application and I am trying to package and deploy it the application uses a special third-party font to create barcode and print the barcodes you have already added the DLL from third party to the application library but once setup is created that the font is not working and my project font is also back to ms office font not the barcode font The required font is also installed on the system. Can you please help me to fix this issue
Salman ahammed (1 year ago)
i can't find setup and development options
Bryan Gonzalez (1 year ago)
Does this work with express version
Farooq Ajaz (1 year ago)
nice sir its very helpul for me ..........thank you!
PDL (1 year ago)
thanx nigga
Djellal Aniss (1 year ago)
mais nta bghal
anas shah (1 year ago)
Thanks man...
Satyam Kumar (2 years ago)
sir please suggest a solution for me
Raviprakash Sharma (2 years ago)
hi sir in my project I have a service based database but i can not get it in my setup ....please help me
Bekas Bekas (2 years ago)
CMjeafar sadikh (2 years ago)
Actually this video is not useful
CMjeafar sadikh (2 years ago)
plz sir help me how to create sql database project setupe file to run another computer
GeorgeIsEpic (2 years ago)
he has some English error. develop is Dee-Vell-Lup. but I am most gratefull for u making these videos
Amol Impal (2 years ago)
I have one issue. I have created one application in vb.net & used crystal report in it. but my crystal report use fix path. I want dynamic path for it. i am not able to install it on another pc. Crystal report don't show data on another pc. Plz help me. Thank You in advance.
Amol Impal (2 years ago)
Very Helpful Thank You.
Werner Ullrich (2 years ago)
very good and helpful for me. Thanks.
chetan j (2 years ago)
hello, nice tut.. very helpful. i need your help sir, how to create setup file to install our setup file to both client and server machin in which sql server and setup should be installed in server machin and in client only setup should install so that we can operate from both machin. in that case server machin should be on when we access from client machin(pc). so pls sir will you pls make video on this topic... thank you.
The Pholosopher (2 years ago)
very helpful - thank you!
Price Stewart (2 years ago)
I'm So happy to be a subscriber to your channel. Great Video.I created a C# application With SQL Database. I published it. It Runs perfectly on my computer, but when I install it on another computer, It doesn't work. It's my first time deploying a database application. How should I create the setup for it. What Should be included in it and what are the requirements for the other computer. Please help me... I thank you in advance.
Jevon Davis (2 years ago)
If the client has access to the database through windows authentication then you can just set a default connection string which will automatically connect to the database using the user's windows credentials. In this way no matter which system you put it on then it will connect. If it is a case where they don't then in your code you would change the connection string to that of the SQL login credentials so the user can login. SQL login in this case would be that of using username "sa" and the password you gave to it upon installing your Server.
Muhammad Junaid (2 years ago)
Jevon Davis how do i change connection string so that it also work on client computer???
Jevon Davis (2 years ago)
You need to change your connection string so it matches the client computer's database that you are installing it on. Remember originally you were building the application on your system. The clients system will be different
Edoardo Mastrandrea (2 years ago)
thanks man, you are always so helpful to me
Kim Ricka (2 years ago)
Kim Ricka (2 years ago)
aicha benabid (3 years ago)
i can't find setup and deployment in visual studio 2010
shubhangi thange (3 years ago)
how to deploye applications along with the database?? Please help me
FireBrand (10 months ago)
Richard Smoker (1 year ago)
SQLite prolly
muhammad huzaifah (3 years ago)
hello sir:- i am facing the problem that this setup cannot install in my laptop
FaaizPro (5 months ago)
Justin (3 years ago)
Thank you.
Muhammad Raza (3 years ago)
Mohsin Khan Shuvo (3 years ago)
One thing! i cant use the icon i want for my app using this. Can you help me set my icon? please
Navaneet SPatil (3 years ago)
Enjoyed n got knowledge of setup and deployment too. Thank you sir...
Jeff Beck (3 years ago)
Inno looks so much easier.
Márcio Cota (3 years ago)
Amigo, beleza? Usando um banco de dados access, é possível instalar o aplicativo na máquina de um cliente que não tenha Access instalado? Tipo, a aplicação consegue abrir o banco de dados do Access sem ter Office instalado? Se sim, como imbutir o arquivo do banco de dados no programa e criar um setup pra inatalar tudo no cliente? Obrigado!
Simple Tech (3 years ago)
Sirisha Rani (3 years ago)
thank you so much!!
Shafiq Rehman (3 years ago)
thank u so much its really great :) very helpfull for every new student and c# lover :p
Kirankumar Bastawadi (3 years ago)
thank you so much. It was a wonderful convincing explanation.. I have a query.. How can I change the Icon of executable file ? example I have designed a browser control on windows form and want executable file icon to look like chrome or IE icon ..
Elijah Ayeeta (3 years ago)
followed all those steps but can't install on a client machine.....connection string probelm
Shubham Asthana (3 years ago)
Thanks elija ate :)
Elijah Ayeeta (3 years ago)
hey @Shubham Asthana  sorry for the late response, i wasn't using sql, i used MS ACCESS, so i didn't have to install  the database on the client machine.  so in your case you might have to install sql on the client machine as well. then for a connection string i created a virtual path on the client machine such that when you install your application it appears as though you are running it on your machine.....hope it helps :)
Shubham Asthana (3 years ago)
+elija ate hey,are you using sql database with your application,and have you got the solution for your connection string problem.I have almost same problem,plz help if you can
Rahul Kumar (3 years ago)
thnx for this video!!!! Really Worked alot for Me!
Bharat Garande (4 years ago)
How to create exe in .net and attachment with database
Guillaume Zinniger (4 years ago)
Thank for this video. I have visual studio 2015. I can not clic on new project setup. I must have visual studio 2010 for this ?
CreatingAlong (4 years ago)
FaaizPro (5 months ago)
yan kumar (4 years ago)
thanks for sharing ProgrammingKnowledge
joe Youcef (4 years ago)
how to include the database in setup file because i have problem when i installed y application in other computer ??
Shubham Asthana (3 years ago)
thanks joe bearzilla, Is there any way for the deployment of app,where we can wrap this .mdf file in it? So that when we run the .exe for the installation on client machine the database file can be placed at the right folder.I tried Installshield but it is not working for me.Can you please suggest me what i should do in this situation
joe Youcef (3 years ago)
+Shubham Asthana unfortunately yes !! you have to install sql server on the client machine and build the database as you built it while you were making your code !!
Shubham Asthana (3 years ago)
+joe bearzilla thanks for ur help i am using sql server,and i have created .exe of my application.And created a folder on client machine according to my connection string.And added .mdf and .ldf files into that folder.Now my application is running but i am confused that the client machine should have sql server installed or not.? because when i am clicking the button on my app,a sqlserver.exe process is getting started. Plz tell me the client machine needs sql server or not? and also is this the right process which i am following
joe Youcef (3 years ago)
+Shubham Asthana i was using sql server !! if u r using sql server u have to connect the sql server with the computer that u r going to install your deployed program !! or if u r using a local database such as Access u have to include it on ur setup project in a certain client folder and alter ur connection string according to where u chose to put the database file on the client computer
ballouki noureddine (4 years ago)
Hello and thank you for this tutorial, I have a problem to create a a setup in visual studio 2012 i can't view the setup and deployement , how can i resolve this problem ? 
Alyssa Siegel (4 years ago)
I didn't have this option either - it is completely different with Visual Studio 2013.  See this link:  http://blogs.msdn.com/b/visualstudio/archive/2013/08/15/what-s-new-in-visual-studio-2013-and-installshield-limited-edition.aspx
Dinesh Narayanan (4 years ago)
Kartikey Sankhdher (4 years ago)
Thanks! Very Good Video!
awesome. thanks a lot
Neeraj kumar gandhi (4 years ago)
How can I deploy a C# application with access database
Usman Ali Maan (4 years ago)
HOW I can Make desktop ICON of my App :P
BlackRa1n (4 years ago)
Import your .ico file (for example myicon.ico) to your project (Project > Import element) And then: Project > -YourProjectName- Settings Icon > myicon.ico Press F5 to debug your application. Finished!
Ahmet Kürşat Akgün (4 years ago)
I don't have this option
Joseph Petek (5 years ago)
We use the .net connector for MySQL. How do you include that in your install, because a lot of people do not have that installed on their machines? Like your videos a lot. Thanks for all the great work!
Zap Tek (1 year ago)
How about now? I really need to know for a project
Joseph Petek (4 years ago)
I did not. I am going to look into it some more. I am starting a service program that I will need this as part of the installer for sure. If i come up with something I'll do a follow up.
Juan Carlos Farias (4 years ago)
Hi Joshep, I'm using MySql too, and I have the same problem. Did you solve it?  Can you help me? Thanks.
Amar Kapadia (5 years ago)
Thanks...just want I needed to know!
Eshetu Mechi (5 years ago)
this Video is Awesome!!!  
O fata simpla (5 years ago)
Thank you. Very useful.
Ahmed Tha King (5 years ago)
It's not dixtop.... It's desktop! And it is not "publish and development" it is "publish and deployment"
Could you publishing your application C# in Facebook?. Did you have any video relate to this topic. please advice
Ali BELKHIRI (5 years ago)
thank you so so much i need that now , thank you 
Elmer Oquendo (5 years ago)
Thanks for the video. How do you add Key on the setup so you can only install the application once, like a Norton anti-virus once you installed it you can not install it to another computer. Thanks again

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.