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

Поділитися
Вставка
  • Опубліковано 6 жов 2024
  • 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
  • Навчання та стиль

КОМЕНТАРІ • 137

  • @Ghost-gc7bz
    @Ghost-gc7bz Рік тому +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

  • @tannerensign513
    @tannerensign513 3 роки тому +11

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

  • @andytodd4555
    @andytodd4555 3 роки тому +9

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

    • @DarrenG
      @DarrenG  3 роки тому +1

      You are very welcome!

  • @chriswinter48
    @chriswinter48 7 місяців тому

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

  • @nayaktel
    @nayaktel 2 роки тому

    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

  • @praktykienjoyer750
    @praktykienjoyer750 2 роки тому +1

    simply best tutorial i can imagine

  • @mahmoudnajah2507
    @mahmoudnajah2507 3 роки тому +1

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

    • @DarrenG
      @DarrenG  3 роки тому +1

      No problem, thank you!

  • @meloysmusicstudio
    @meloysmusicstudio 10 місяців тому

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

  • @adamschneider868
    @adamschneider868 3 роки тому +2

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

    • @DarrenG
      @DarrenG  3 роки тому

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

    • @adamschneider868
      @adamschneider868 3 роки тому

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

  • @leonardegray1769
    @leonardegray1769 Рік тому

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

  • @jimissel3997
    @jimissel3997 Рік тому +1

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

  • @KinyanjuiKamaukkjay
    @KinyanjuiKamaukkjay 2 роки тому +2

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

  • @bsh7390
    @bsh7390 3 роки тому +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  3 роки тому +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.

  • @danlynch6584
    @danlynch6584 2 роки тому +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  2 роки тому

      Thanks! Glad to help!

  • @abeyuassefa7861
    @abeyuassefa7861 3 місяці тому

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

  • @imdrogon
    @imdrogon 2 роки тому +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  2 роки тому

      Yep! I know that struggle

  • @alanlowe9716
    @alanlowe9716 Рік тому +1

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

  • @johnnyvcrow
    @johnnyvcrow 8 місяців тому +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!

  • @youcefhemdane6017
    @youcefhemdane6017 Рік тому +1

    best tutorial EVER

  • @ttwistedyt
    @ttwistedyt Рік тому

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

  • @michellenelson5454
    @michellenelson5454 2 роки тому

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

  • @Orgastics
    @Orgastics Рік тому +1

    Straight to the point, and helpful. Thank you!

  • @HaTran-bc1ly
    @HaTran-bc1ly 3 роки тому +2

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

  • @mattkurt555
    @mattkurt555 3 роки тому +2

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

  • @jaspreetkambo9254
    @jaspreetkambo9254 Рік тому

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

  • @jakezepeda1267
    @jakezepeda1267 2 роки тому +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).

  • @RobertLenior
    @RobertLenior Рік тому

    Wonderful, slight differences in VS2022 but still workable! Thanks

  • @DarrenG
    @DarrenG  3 роки тому +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 3 роки тому

      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 Рік тому

      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

  • @vulcan20
    @vulcan20 3 роки тому +2

    Thank! Very useful!!

    • @DarrenG
      @DarrenG  3 роки тому +2

      You are very welcome! Thanks for watching!

  • @DougForce
    @DougForce 2 роки тому

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

  • @brettmarshalltweaksource
    @brettmarshalltweaksource 3 роки тому +2

    Thanks. Nice walkthrough.

    • @DarrenG
      @DarrenG  3 роки тому

      Np! Thanks for watching!

  • @maheswariganapathy
    @maheswariganapathy Рік тому

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

  • @gautamsaha9397
    @gautamsaha9397 2 роки тому +1

    Thanks for your valuable advice

  • @ctwinin
    @ctwinin 2 роки тому +1

    Bro awesome tutorial thanks so much

  • @newchannel1106
    @newchannel1106 2 роки тому +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.

  • @XEnoN41
    @XEnoN41 Рік тому

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

  • @sylascoker1483
    @sylascoker1483 3 роки тому +1

    Perfect, thanks dude!

  • @dwightarroyo1784
    @dwightarroyo1784 Рік тому +1

    Thanks!

  • @Codefan321
    @Codefan321 2 роки тому

    Perfectly explained and easy to follow. Yes.

  • @federicosalvetti4286
    @federicosalvetti4286 7 місяців тому

    This was extremely helpful!!!

  • @aaronberducido2584
    @aaronberducido2584 3 роки тому +1

    Thank you a lot bro youre awesome!

    • @DarrenG
      @DarrenG  3 роки тому +2

      np, glad it helped!

  • @dharmendharjarwani3951
    @dharmendharjarwani3951 Рік тому

    Thansk bro, its working fine

  • @alexle5690
    @alexle5690 4 місяці тому +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?

  • @FrankCatry
    @FrankCatry 3 роки тому +1

    Great tutorial. Thanks for sharing.

    • @DarrenG
      @DarrenG  3 роки тому

      No problem, thanks for the comment!

  • @bagrox
    @bagrox Рік тому

    Nice one, thanks.

  • @osanbrazil999
    @osanbrazil999 Рік тому

    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.

  • @shivamupadhyay6196
    @shivamupadhyay6196 2 роки тому

    Amazing Bro loved it :)

  • @milones7495
    @milones7495 Рік тому

    Thank you so much!!!!!!

  • @shahbaksh2915
    @shahbaksh2915 3 роки тому

    Thanks man. Great video

  • @NTKM-om9vn
    @NTKM-om9vn Рік тому

    Great help!

  • @tharindu63r
    @tharindu63r 3 роки тому +1

    Love u brother

  • @ehansytaxian
    @ehansytaxian 2 роки тому

    Thanks You Are The Best!

  • @edo170570
    @edo170570 2 роки тому

    Super!

  • @danayow
    @danayow 3 роки тому

    very helpful video thank you 😍😍

  • @lukenukem8028
    @lukenukem8028 3 роки тому +1

    Best Video

  • @karthikkankalapati3599
    @karthikkankalapati3599 3 місяці тому

    Thanks buddy

  • @challengedollar2880
    @challengedollar2880 12 днів тому

    hey thanks for this, if i just want my installer to put some files into a certain directory, what should I do?

  • @yeshuaexcel3407
    @yeshuaexcel3407 Рік тому

    Thank you.

  • @libran114
    @libran114 Рік тому

    Thanks a lot.

  • @Mardiana-qb5ms
    @Mardiana-qb5ms Рік тому

    thank you Sir

  • @mrrcomp
    @mrrcomp Рік тому

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

  • @cr0wsky
    @cr0wsky 3 роки тому +2

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

    • @DarrenG
      @DarrenG  3 роки тому +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!

  • @oicangiselav4391
    @oicangiselav4391 11 днів тому

    Good!!!

  • @davidibanga8980
    @davidibanga8980 2 роки тому

    Thanks very much bro

  • @tedoconnor9
    @tedoconnor9 2 роки тому

    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  2 роки тому

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

  • @jamesbrady9105
    @jamesbrady9105 Місяць тому

    very good video - but when create the primary output under the application folder, i dont get all of the DL's being added. What am i doing wrong?

  • @operatorblackbird
    @operatorblackbird 2 роки тому +2

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

    • @DarrenG
      @DarrenG  2 роки тому +1

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

    • @operatorblackbird
      @operatorblackbird 2 роки тому

      @@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 2 роки тому

      I managed to fix it

  • @marcosmelendez09
    @marcosmelendez09 2 роки тому

    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

  • @TheKarmaIdiot
    @TheKarmaIdiot 2 роки тому

    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?

  • @Mightraptyle
    @Mightraptyle 2 роки тому

    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)

  • @ubuntuservertest7847
    @ubuntuservertest7847 2 роки тому

    Great

  • @khabbazz89
    @khabbazz89 2 роки тому

    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?

  • @vladostema
    @vladostema Рік тому

    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?

  • @parisaghafari883
    @parisaghafari883 2 роки тому

    How to add sqlserver 2014 prerequisite to my project. Thanks

  • @duchyofducklings
    @duchyofducklings Рік тому

    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?

  • @metekaba6532
    @metekaba6532 2 роки тому

    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!

  • @esemmoc
    @esemmoc 2 роки тому

    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.

  • @KrakenZYT
    @KrakenZYT 2 роки тому

    Can you tell how to put updates to the app?

  • @Ekramul-Haque
    @Ekramul-Haque 10 місяців тому

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

  • @karamalab
    @karamalab 2 роки тому

    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  2 роки тому +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 2 роки тому

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

  • @duongchinhngu2407
    @duongchinhngu2407 Рік тому

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

  • @lucasferreira8229
    @lucasferreira8229 Рік тому

    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?

  • @ohranimamovic2105
    @ohranimamovic2105 2 роки тому

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

  • @HolaManGruy
    @HolaManGruy 2 роки тому

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

  • @ozu7779
    @ozu7779 7 місяців тому

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

  • @Moneyon-air
    @Moneyon-air Місяць тому

    but how to setup full project with many files it's helpful for me 😢

  • @DvashView
    @DvashView Рік тому

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

  • @DanaRayIT
    @DanaRayIT 2 роки тому

    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

  • @jeffersoneener9071
    @jeffersoneener9071 3 роки тому +2

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

    • @jeffersoneener9071
      @jeffersoneener9071 3 роки тому

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

  • @abderrahimerraji6180
    @abderrahimerraji6180 Рік тому

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

  • @im1in260m
    @im1in260m Рік тому

    How do you change the default installation location?

  • @FidelCoelho
    @FidelCoelho Рік тому

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

  • @lukenukem8028
    @lukenukem8028 3 роки тому +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  3 роки тому +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.

  • @andreas789
    @andreas789 2 роки тому

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

  • @shona_loverboy_
    @shona_loverboy_ 2 місяці тому

    My project Aint showing Dll files

  • @maurirom92
    @maurirom92 Рік тому

    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

  • @TeamPu1s3
    @TeamPu1s3 3 роки тому

    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?

  • @ifthikhanmohamed1681
    @ifthikhanmohamed1681 2 роки тому

    How to export to macos file

  • @Conversion108
    @Conversion108 Рік тому

    when downloading will the download be flagged?

  • @sergeyshchelkunov5762
    @sergeyshchelkunov5762 3 роки тому

    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  3 роки тому

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