How to Create a Setup file in Visual Studio 2019 | C# VB.Net installer creation | MSI EXE
Vložit
- čas přidán 10. 04. 2021
- Quick video showing How to Create a Setup file in Visual Studio 2019 for your project. In this video we look at exactly how to create an MSI & EXE setup file for your C# or VB.Net project in Visual Studio 2019.
If you have been handing out .exe files and would like an installer file (MSI or EXE) then this is the video for you! We walk through the whole process to create the installer by using the Microsoft installer project extension for Visual Studio.
After downloading the required extension, we make a new installer project inside of our solution and setup everything so that the user will have a desktop icon and everything else once they install our project.
Thanks for checking my video out! If you have any questions, please ask in the comments, I would love to help!
Thanks again!
Tags: how to create setup file in visual studio,c#,.net,how to create setup.exe in visual studio 2019,visual studio setup project,how do i create a setup file in visual studio,how to create msi package in visual studio 2019,create an msi file,create setup application c#,create installation setup file,how to create msi installer in visual studio,visual studio installer project,how to create setup file,CodAffection,FoxLearn,Visual Studio 2019,VS2019,VB.Net - Jak na to + styl
This was the best tutorial I could find. So simple and easy. Love it!
the best tutorial on youtube, searched thrue 20 video couldn't find the one that works and you explained it so simply and quickly thank you still works on visual 2022
Perfect tutorial! This is exactly what I was looking for. Great job, Darren!!!
Thanks for such a straightforward and clear guide - it just made this morning's task easier and quicker!
You are very welcome!
This was the absolutely best tutorial that I have viewed!! Bravo!
Straight to the point, and helpful. Thank you!
Darren - thanks for sharing the informative and succinct video. It saved me a ton of time trying to find all the documentation to put together my setup package. Good video!
Thanks! Glad to help!
Excellent walkthrough - thanks! Still relevant / works with Visual Studio 2022
Thanks Darren. This topic is needlessly complicated elsewhere but you made it a snap. Thanks!
this was the best, the most complete and easy tutorial to understand ever. it helped me a lot !! Thanks
No problem, thank you!
Great video! I hadn’t set this up in so long I had forgotten how. Thanks for the video!
Great video Darren. There was nothing different in creating a setup project in VS 2022, almost word for word 😀
Very good tutorial. It has been a while since I created a setup.exe e.g. Installer in Visual Studios.THANKS
Thanks you. It is on the target video. Thanks again.
Dear You are nothing but a practical fantastic Person dude, I heartily thanking you for the tutorial and it is very much useful for me
Thank you, thank you, thank you.!! This saved me days and days of anguish.
Perfectly explained and easy to follow. Yes.
simply best tutorial i can imagine
This was extremely helpful!!!
Nice..." The BESTEST" guidance and Thank you👍
Thank you for this video, you explained it very well!
best, simple and easy. am I forgetting something!!!
Thank you very much, very simple video, very clear to hear and see too, keep up 👌👌
Thank you!!
Thanks man. Great video
Nice video! An idea for a follow up video on this would be how to create update installer packages for your application.
Wonderful, slight differences in VS2022 but still workable! Thanks
Thanks for your valuable advice
Appreciated sir for your sharing. Im learning C sharp and found your channel. It's really helpful for me. I have subscribed.
Thank you! Glad to help!
I will definitely be putting out more programming videos, I plan to finish off the beginners guide series I have going and post some fun project builds and random guides like this one.
Thanks. Nice walkthrough.
Np! Thanks for watching!
Great help!
Bro awesome tutorial thanks so much
very helpful video thank you 😍😍
Awesome video, not over-complicated like some others i have come across.
Not sure if your'e still interested in this, but i think a 2 good follow ups would be updating said application and installing drivers/extra requirements (such as Acces DB Engine).
Great tutorial on a topic that (suprisingly enough) does not have much coverage. Much simpler than the other tutorials I've found. Also, the "Evil Storage" made me chuckle. I assume that would be a reference to Darren Kitchen at HAK5, and the legendary "Evil Server"? . :) Take care!
Nice one, thanks.
Thanks You Are The Best!
Amazing Bro loved it :)
Perfect, thanks dude!
No problem!
Thank! Very useful!!
You are very welcome! Thanks for watching!
Thansk bro, its working fine
best tutorial EVER
Great tutorial. Thanks for sharing.
No problem, thanks for the comment!
Thanks very much bro
Thank you so much!!!!!!
Thank you a lot bro youre awesome!
np, glad it helped!
Dude thank you so much !!
Thanks for watching! I hope it helps!
Thanks!
Super!
Thanks for the tutorial. So easy to understand and right to the point. I'm experiencing a problem though. When I install a new version, I change the version number and upgrade key, set "Remove previous versions" to true, but after I run the installer (which gives no error message whatsoever), the executable in the folder is STILL the previous version.
Thanks for this. Installer works and creates program shortcut. Funny thing when I double click on icon, program does not run, lol.
Best Video
Thanks a lot.
Thank you.
Hi. Great content. I am new to your web
Could you explain how to create a set up file with a licence key that you have to input for the installer to work along with the license terms?
I would love to watch more
Love u brother
Great tutorial .. thanks..One question is there any way to add a prerequsite to the list? i.e i need to check and install Access Database Engine .. Looking forward to your suggestions..
Thanks buddy
thank you Sir
Thanks! Helpful for my screen recorder app I've been working on to find every install.exe maker I find is pay only when I'm a poor college student trying to make a buck
Yep! I know that struggle
Nice, dropped a like.
Is it possible to customize the look of the installer itself, like custom UI when the user is moving through the installer?
Tanks, that was very complette, but also i have a question. If i work with a database like MySql and y want to create the DB with a .sql file at the time the installer is running, How can i do it?
Hi there! Thanks for the video. I have a question that how can we add the other layers of the project? I have BLL, CUL, and DAL beside the main GUI project which has the windows. Thanks in advance!
Just used this to deploy an application to 90 users. Thanks.
Glad I could help!! Good luck with your project!
What kind of app is it?
@@DarrenG it was an old app that was updated to use RBA and a webapi. It handles pictures of exported cargo.
Thanks for video,after create exe file and setup it , I tried run tha app but it does not run , nothing happen, how can fix it that?
Great
This was a great intro to creating an install package. Thank you!
One thing though: Could you go slower when accessing things like menu items? I had to stop the video several times to catch what you were accessing.
Oh, good point! Sorry about that. Hopefully it helps and I'll try to slow down in future videos
Wew. My problem solved just from watching a 7.41 min video. I tried to use WIX but it rubbish because it is not for a dumb man like me to use it.
I tried to use Advanced Installer also rubbish because I cannot use or i'd like to say i pretty damn sure i was too dumb and cannot use it and some useful part of my program is missing.
Thanks for sharing.
Thank you. So to send out the program via an email would you include any other files other than setup.exe and I suppose you would put it in a zip file.
How to add sqlserver 2014 prerequisite to my project. Thanks
Can you tell how to put updates to the app?
Hello there, I did this step by step and my app works just fine on my pc where I created my app but when I install the app on my laptop the app wont start at all no errors ...
I use same netFramework but it wont start on any other device ....
I have question about where we can change the icon that is appeared in the control panel when you try to uninstall your application there is no icon for my app where can I set that too?
That's cool. Thanks. What are you using for your start menu?
www.classicshell.net/
Which the site says development was picked up as open shell: github.com/Open-Shell/Open-Shell-Menu
I really enjoy it!
hi
please describe how to add sap crystal reports runtime in setup project
i have c# .net 2019 project with sap crystal reports file but when i make setup file and run it in target computer crystal report not work
thank you
How can i share this to others? should i send the zip file of packages and the release, debug, filename.vdproj included?
What if I copy and past only the "setup.exe" file to the desktop, for example, will I be able to install it anyway or it also needs the "StorageSetupe.msi" file to be in the same directory?
How do you change the default installation location?
How can I grant folder permission while install the app using Installer Project? Please
I did exactly same steps as you did, but when i click this Icon dropdown in 3:32 i have just emptiness, there is just empty field with no elements, i dont have (None) and i don't have (Browse...) why is that so?
and the setup.exe will work on the others laptop ? i mean if i put it in another laptop and download it, the application will work 100% ?
It installs as an .dll file is there any way i can fix this
can you make a video for when the application is installed to my pc how do i update it with out having to reinstall it can anyone help?
Hey broh, that was a great tutorial but, my program is always stop working when I try to open, after installing, (I'm stalling to test in other pc)
Can I send my app to people who don't have Visual Studio installed?
Really helpful video! If my projected relied on wav files, how would I ensure they installed on another machine when using the installer?
If you look at the application folder (#3:38 in the video) you can see that I included a bunch of DLL's in there. Those are all copied to the application's output directory during the install.
You should be able to include your .wav files here and they would be copied over.
To have them included here automatically, they need to be copied to your applications debug folder when you build it.
For them to be automatically copied to your build folder, make sure they are included in your application (they should appear in your solution inside of visual studio)
Then right click on the file in your solution explorer and choose Build Action: "copy always"
This is kind of a lot to try and explain without any visual aids but hopefully that helps!
Thanks for watching and subscribing!
@@DarrenG You have just solved alot of head scratching! Thank you and keep up the good work
How to fix that warning in the setup ????
How to export to macos file
Thanks for watching! If you have any programming-related how-to video requests, I would love to hear them for more content ideas!
I also would welcome any kind of feedback on how I can improve!
Thanks!!
Hi Darren, I would suggest this: no need to show yourself for the entire video. It only distracts from actual content. I would suggest you show yourself in first half minute -minute in the intro, and once tutorial starts only show the screen. But tutorial is good.
how to handel database here should we mannualy setup the same database in client machine than copy its connection string then after setup project make it clear bro
Thank you Darren! Hit you with a like and a sub!🙂
Thanks so much!! We are so close to 1k subs!!!
@@DarrenG Hey, I'm having a error while trying to open my C# console app project it says that it can't find where my .NET SDK is I have it installed on my computer, do you know of any fixes? The error is; "The project file cannot be opened. Unable to locate the .NET SDK. Check that it is installed and that the version specified in global.json (if any) matches the installed version."
I managed to fix it
why do i get "System.Net.WebException: An exception occured during a WebClient request." how do u fix this?
when downloading will the download be flagged?
Hi, thank u for this usefull tutorial, I started learning VS a few days ago, I made an easy and simple form just for test, how can I make a single excutable file for this project, I mean not a setup file but a portable single file the can be excuted directly with no need to setup.. thank you in advanced
Compile your project and look in the debug folder. There should be an exe there with a couple of dependencies (.dll files) that can be copied to another box and ran.
@@DarrenG yes I noticed this but what I mean is creating sigle file like a package that is excutable and include all the dll files inside it
does your icon (that is "attached" to shortcuts) has to be of a specific size to be shown on the desktop, or in user's prog. menu ?
I don't think so. I think it just scales. Just make a shortcut and test it out before packaging it
What's the .msi file for then? I've used them before as installers when no .exe is around, but why are both created?
I'm not sure why it creates both honestly. The .msi file is microsoft's installer. The .exe is a setup file, I think if you run the msi without the exe it won't be as "fancy" or customized. I think the MSI will be a more generic installer window but I can't remember off hand. good question/point though.
Is it only used to build VB and C# projects?
I want to build a C++ Winform app with MySQL database but always failing. What’s the problem bro?!
Help me creating a setup file using database files
I got same problem
My project Aint showing Dll files
I can't open my program windows say : "You are attempting to open a System file (dll)" any ideas ?
same problem
The only problem is, when u install, u cant update from clickonce...
This does not work, I have done the same steps, and when I install with the installer file that is created, and a shortcut is generated on the desktop, the program does not run, instead of running the program it gives me a list of programs to open the file