How to Create a Setup file in Visual Studio 2019 | C# VB.Net installer creation | MSI EXE

Sdílet
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

Komentáře • 133

  • @tannerensign513
    @tannerensign513 Před 3 lety +11

    This was the best tutorial I could find. So simple and easy. Love it!

  • @Ghost-gc7bz
    @Ghost-gc7bz Před rokem +1

    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

  • @jimissel3997
    @jimissel3997 Před rokem +1

    Perfect tutorial! This is exactly what I was looking for. Great job, Darren!!!

  • @andytodd4555
    @andytodd4555 Před 2 lety +9

    Thanks for such a straightforward and clear guide - it just made this morning's task easier and quicker!

    • @DarrenG
      @DarrenG  Před 2 lety +1

      You are very welcome!

  • @leonardegray1769
    @leonardegray1769 Před 11 měsíci

    This was the absolutely best tutorial that I have viewed!! Bravo!

  • @Orgastics
    @Orgastics Před rokem +1

    Straight to the point, and helpful. Thank you!

  • @danlynch6584
    @danlynch6584 Před 2 lety +2

    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!

    • @DarrenG
      @DarrenG  Před 2 lety

      Thanks! Glad to help!

  • @meloysmusicstudio
    @meloysmusicstudio Před 7 měsíci

    Excellent walkthrough - thanks! Still relevant / works with Visual Studio 2022

  • @ttwistedyt
    @ttwistedyt Před rokem

    Thanks Darren. This topic is needlessly complicated elsewhere but you made it a snap. Thanks!

  • @mahmoudnajah2507
    @mahmoudnajah2507 Před 2 lety +1

    this was the best, the most complete and easy tutorial to understand ever. it helped me a lot !! Thanks

    • @DarrenG
      @DarrenG  Před 2 lety +1

      No problem, thank you!

  • @DougForce
    @DougForce Před 2 lety

    Great video! I hadn’t set this up in so long I had forgotten how. Thanks for the video!

  • @alanlowe9716
    @alanlowe9716 Před rokem +1

    Great video Darren. There was nothing different in creating a setup project in VS 2022, almost word for word 😀

  • @michellenelson5454
    @michellenelson5454 Před 2 lety

    Very good tutorial. It has been a while since I created a setup.exe e.g. Installer in Visual Studios.THANKS

  • @abeyuassefa7861
    @abeyuassefa7861 Před 27 dny

    Thanks you. It is on the target video. Thanks again.

  • @nayaktel
    @nayaktel Před 2 lety

    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

  • @chriswinter48
    @chriswinter48 Před 4 měsíci

    Thank you, thank you, thank you.!! This saved me days and days of anguish.

  • @Codefan321
    @Codefan321 Před 2 lety

    Perfectly explained and easy to follow. Yes.

  • @praktykienjoyer750
    @praktykienjoyer750 Před 2 lety +1

    simply best tutorial i can imagine

  • @federicosalvetti4286
    @federicosalvetti4286 Před 5 měsíci

    This was extremely helpful!!!

  • @maheswariganapathy
    @maheswariganapathy Před rokem

    Nice..." The BESTEST" guidance and Thank you👍

  • @XEnoN41
    @XEnoN41 Před rokem

    Thank you for this video, you explained it very well!

  • @jaspreetkambo9254
    @jaspreetkambo9254 Před rokem

    best, simple and easy. am I forgetting something!!!

  • @HaTran-bc1ly
    @HaTran-bc1ly Před 3 lety +2

    Thank you very much, very simple video, very clear to hear and see too, keep up 👌👌

  • @shahbaksh2915
    @shahbaksh2915 Před 3 lety

    Thanks man. Great video

  • @mattkurt555
    @mattkurt555 Před 3 lety +2

    Nice video! An idea for a follow up video on this would be how to create update installer packages for your application.

  • @RobertLenior
    @RobertLenior Před rokem

    Wonderful, slight differences in VS2022 but still workable! Thanks

  • @gautamsaha9397
    @gautamsaha9397 Před 2 lety +1

    Thanks for your valuable advice

  • @bsh7390
    @bsh7390 Před 3 lety +3

    Appreciated sir for your sharing. Im learning C sharp and found your channel. It's really helpful for me. I have subscribed.

    • @DarrenG
      @DarrenG  Před 3 lety +2

      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.

  • @brettmarshalltweaksource
    @brettmarshalltweaksource Před 3 lety +2

    Thanks. Nice walkthrough.

    • @DarrenG
      @DarrenG  Před 3 lety

      Np! Thanks for watching!

  • @NTKM-om9vn
    @NTKM-om9vn Před rokem

    Great help!

  • @ctwinin
    @ctwinin Před 2 lety +1

    Bro awesome tutorial thanks so much

  • @danayow
    @danayow Před 2 lety

    very helpful video thank you 😍😍

  • @jakezepeda1267
    @jakezepeda1267 Před rokem +1

    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).

  • @johnnyvcrow
    @johnnyvcrow Před 6 měsíci +1

    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!

  • @bagrox
    @bagrox Před rokem

    Nice one, thanks.

  • @ehansytaxian
    @ehansytaxian Před 2 lety

    Thanks You Are The Best!

  • @shivamupadhyay6196
    @shivamupadhyay6196 Před 2 lety

    Amazing Bro loved it :)

  • @sylascoker1483
    @sylascoker1483 Před 2 lety +1

    Perfect, thanks dude!

  • @vulcan20
    @vulcan20 Před 3 lety +2

    Thank! Very useful!!

    • @DarrenG
      @DarrenG  Před 3 lety +2

      You are very welcome! Thanks for watching!

  • @dharmendharjarwani3951

    Thansk bro, its working fine

  • @youcefhemdane6017
    @youcefhemdane6017 Před rokem +1

    best tutorial EVER

  • @FrankCatry
    @FrankCatry Před 2 lety +1

    Great tutorial. Thanks for sharing.

    • @DarrenG
      @DarrenG  Před 2 lety

      No problem, thanks for the comment!

  • @davidibanga8980
    @davidibanga8980 Před 2 lety

    Thanks very much bro

  • @milones7495
    @milones7495 Před 11 měsíci

    Thank you so much!!!!!!

  • @aaronberducido2584
    @aaronberducido2584 Před 2 lety +1

    Thank you a lot bro youre awesome!

    • @DarrenG
      @DarrenG  Před 2 lety +2

      np, glad it helped!

  • @aaronhill3443
    @aaronhill3443 Před 2 lety +1

    Dude thank you so much !!

    • @DarrenG
      @DarrenG  Před 2 lety +1

      Thanks for watching! I hope it helps!

  • @dwightarroyo1784
    @dwightarroyo1784 Před rokem +1

    Thanks!

  • @edo170570
    @edo170570 Před 2 lety

    Super!

  • @osanbrazil999
    @osanbrazil999 Před rokem

    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.

  • @KinyanjuiKamaukkjay
    @KinyanjuiKamaukkjay Před 2 lety +2

    Thanks for this. Installer works and creates program shortcut. Funny thing when I double click on icon, program does not run, lol.

  • @lukenukem8028
    @lukenukem8028 Před 3 lety +1

    Best Video

  • @libran114
    @libran114 Před rokem

    Thanks a lot.

  • @yeshuaexcel3407
    @yeshuaexcel3407 Před rokem

    Thank you.

  • @marcosmelendez09
    @marcosmelendez09 Před 2 lety

    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

  • @tharindu63r
    @tharindu63r Před 2 lety +1

    Love u brother

  • @mrrcomp
    @mrrcomp Před 11 měsíci

    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..

  • @karthikkankalapati3599

    Thanks buddy

  • @Mardiana-qb5ms
    @Mardiana-qb5ms Před rokem

    thank you Sir

  • @imdrogon
    @imdrogon Před 2 lety +1

    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

    • @DarrenG
      @DarrenG  Před 2 lety

      Yep! I know that struggle

  • @TheKarmaIdiot
    @TheKarmaIdiot Před 2 lety

    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?

  • @alexle5690
    @alexle5690 Před měsícem +1

    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?

  • @metekaba6532
    @metekaba6532 Před 2 lety

    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!

  • @adamschneider868
    @adamschneider868 Před 2 lety +2

    Just used this to deploy an application to 90 users. Thanks.

    • @DarrenG
      @DarrenG  Před 2 lety

      Glad I could help!! Good luck with your project!
      What kind of app is it?

    • @adamschneider868
      @adamschneider868 Před 2 lety

      @@DarrenG it was an old app that was updated to use RBA and a webapi. It handles pictures of exported cargo.

  • @khabbazz89
    @khabbazz89 Před 2 lety

    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?

  • @interworld6227
    @interworld6227 Před 2 lety

    Great

  • @tedoconnor9
    @tedoconnor9 Před 2 lety

    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.

    • @DarrenG
      @DarrenG  Před 2 lety

      Oh, good point! Sorry about that. Hopefully it helps and I'll try to slow down in future videos

  • @newchannel1106
    @newchannel1106 Před 2 lety +2

    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.

  • @esemmoc
    @esemmoc Před 2 lety

    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.

  • @parisaghafari883
    @parisaghafari883 Před 2 lety

    How to add sqlserver 2014 prerequisite to my project. Thanks

  • @KrakenZYT
    @KrakenZYT Před rokem

    Can you tell how to put updates to the app?

  • @ohranimamovic2105
    @ohranimamovic2105 Před 2 lety

    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 ....

  • @duchyofducklings
    @duchyofducklings Před 11 měsíci

    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?

  • @cr0wsky
    @cr0wsky Před 3 lety +2

    That's cool. Thanks. What are you using for your start menu?

    • @DarrenG
      @DarrenG  Před 3 lety +1

      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!

  • @DanaRayIT
    @DanaRayIT Před 2 lety

    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

  • @Ekramul-Haque
    @Ekramul-Haque Před 7 měsíci

    How can i share this to others? should i send the zip file of packages and the release, debug, filename.vdproj included?

  • @lucasferreira8229
    @lucasferreira8229 Před rokem

    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?

  • @im1in260m
    @im1in260m Před rokem

    How do you change the default installation location?

  • @duongchinhngu2407
    @duongchinhngu2407 Před 11 měsíci

    How can I grant folder permission while install the app using Installer Project? Please

  • @vladostema
    @vladostema Před rokem

    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?

  • @abderrahimerraji6180
    @abderrahimerraji6180 Před rokem

    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% ?

  • @andreas789
    @andreas789 Před 2 lety

    It installs as an .dll file is there any way i can fix this

  • @TeamPu1s3
    @TeamPu1s3 Před 2 lety

    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?

  • @Mightraptyle
    @Mightraptyle Před 2 lety

    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)

  • @DvashView
    @DvashView Před rokem

    Can I send my app to people who don't have Visual Studio installed?

  • @pizzalover-69
    @pizzalover-69 Před 2 lety

    Really helpful video! If my projected relied on wav files, how would I ensure they installed on another machine when using the installer?

    • @DarrenG
      @DarrenG  Před 2 lety +1

      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!

    • @pizzalover-69
      @pizzalover-69 Před 2 lety

      @@DarrenG You have just solved alot of head scratching! Thank you and keep up the good work

  • @ozu7779
    @ozu7779 Před 4 měsíci

    How to fix that warning in the setup ????

  • @ifthikhanmohamed1681
    @ifthikhanmohamed1681 Před 2 lety

    How to export to macos file

  • @DarrenG
    @DarrenG  Před 3 lety +2

    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!!

    • @steejayk
      @steejayk Před 2 lety

      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.

    • @bishri88
      @bishri88 Před rokem

      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

  • @operatorblackbird
    @operatorblackbird Před 2 lety +2

    Thank you Darren! Hit you with a like and a sub!🙂

    • @DarrenG
      @DarrenG  Před 2 lety +1

      Thanks so much!! We are so close to 1k subs!!!

    • @operatorblackbird
      @operatorblackbird Před 2 lety

      @@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."

    • @operatorblackbird
      @operatorblackbird Před 2 lety

      I managed to fix it

  • @HolaManGruy
    @HolaManGruy Před 2 lety

    why do i get "System.Net.WebException: An exception occured during a WebClient request." how do u fix this?

  • @Conversion108
    @Conversion108 Před rokem

    when downloading will the download be flagged?

  • @karamalab
    @karamalab Před 2 lety

    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

    • @DarrenG
      @DarrenG  Před 2 lety +1

      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.

    • @karamalab
      @karamalab Před 2 lety

      @@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

  • @sergeyshchelkunov5762
    @sergeyshchelkunov5762 Před 2 lety

    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 ?

    • @DarrenG
      @DarrenG  Před 2 lety

      I don't think so. I think it just scales. Just make a shortcut and test it out before packaging it

  • @lukenukem8028
    @lukenukem8028 Před 3 lety +1

    What's the .msi file for then? I've used them before as installers when no .exe is around, but why are both created?

    • @DarrenG
      @DarrenG  Před 3 lety +2

      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.

  • @jeffersoneener9071
    @jeffersoneener9071 Před 2 lety +2

    Is it only used to build VB and C# projects?

    • @jeffersoneener9071
      @jeffersoneener9071 Před 2 lety

      I want to build a C++ Winform app with MySQL database but always failing. What’s the problem bro?!

  • @TaherRatlam
    @TaherRatlam Před 3 lety

    Help me creating a setup file using database files

  • @shona_loverboy_
    @shona_loverboy_ Před 6 dny

    My project Aint showing Dll files

  • @alexislm793
    @alexislm793 Před 2 lety

    I can't open my program windows say : "You are attempting to open a System file (dll)" any ideas ?

  • @FidelCoelho
    @FidelCoelho Před 10 měsíci

    The only problem is, when u install, u cant update from clickonce...

  • @maurirom92
    @maurirom92 Před rokem

    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