How to Create Setup .exe in Visual Studio 2022 Step By Step

Sdílet
Vložit
  • čas přidán 4. 12. 2021
  • How to create setup file in visual studio 2022 for windows application step by step.
    In this video tutorial you will learn:
    create an installer from visual studio
    microsoft visual studio 2022 installer projects tutorial
    create simple c# application using visual studio
    How do you create an installer?
    how do i setup an exe file?
    how do i create a setup file in visual studio?
    setup project deployment of a windows forms application
    how do i create a project in visual studio 2022
    create setup/msi installer in Visual Studio 2022
  • Věda a technologie

Komentáře • 243

  • @mohamednaji6850
    @mohamednaji6850 Před 2 lety +66

    For the people who cant find "Publish Items", I chose "Primary Output", followed the rest of this tutorial and it worked well!

  • @jimbobwylie
    @jimbobwylie Před rokem +3

    This is incredible! Thank you so much for this!

  • @ManojYadwad2
    @ManojYadwad2 Před rokem +3

    5 year back I use to do the same in VS 2015. But then I started using ClickOnce and forgot these steps. I thank You to post this tutorial video. I intencely needed this as I have to provide support to my old client.

  • @nmarks
    @nmarks Před rokem +1

    Beautifully well explained. Sir, you are doing the world a great service.

  • @AndrewKwabula
    @AndrewKwabula Před rokem +3

    You are a legend bro. It cannot be any clearer than this.

  • @amyputnam1316
    @amyputnam1316 Před rokem +3

    Excellent video! I was able to walk through this process while I watched your video and created my first EXE file with a desktop shortcut using Visual Studio. Thank you!

    • @shaunduzstuffs
      @shaunduzstuffs Před 6 měsíci

      I wish I could be as successful as you and others, but despite following the tutorial EXACTLY as it's shown, when I get to 6:58, nothing appears in the add project groups part. I can't find any help anywhere for this

  • @KidToyz
    @KidToyz Před rokem

    Thanks was able to create my first exe the steps explained were clear and to the point thanks a lot

  • @Airsoftshowoffs
    @Airsoftshowoffs Před rokem

    Thank you for posting this, it is a great guide !

  • @arajamgochian2372
    @arajamgochian2372 Před rokem

    Excellent and clear tutorial. Thank you.

  • @emirkaancati5218
    @emirkaancati5218 Před rokem

    Thanks to you I got my first setup ever :D

  • @orltokata9208
    @orltokata9208 Před rokem +1

    Thanks so much for making the video, it is so great help.❤❤

  • @rodgdl4482
    @rodgdl4482 Před rokem

    Thank you very much, I'm from México and it was very useful.👌👋

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

    Thanks for making the video, I’m new to visual studio and this was a great help 👍👍

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

      Thanks for watching.. subscribe for more such videos

  • @klemenbrecko9755
    @klemenbrecko9755 Před rokem

    Nice video!!! Thank you! I also made my first exe file!!!

  • @thesituation5315
    @thesituation5315 Před 2 lety

    Thank you! This is very helpful, frickin awesome.

    • @CodingJackpot
      @CodingJackpot  Před 2 lety

      Welcome ! I am glad that you liked the video tutorials to create exe file

  • @DulakshiHansika-kj1jd
    @DulakshiHansika-kj1jd Před rokem +1

    Excellent sir. Well understood. Thank you very much 😊❤

  • @araradsarkissian2859
    @araradsarkissian2859 Před 2 měsíci

    Works fine! Thank you for your time! :)

  • @belfordmcpimface3482
    @belfordmcpimface3482 Před 6 měsíci

    Useful and current two years later. Subscribed.

  • @RahulSharmaOfficial
    @RahulSharmaOfficial Před 8 měsíci

    Excellent and easy to understand... Well explained Sir. Thank you.

  • @MichaelToumie
    @MichaelToumie Před rokem

    Well done! thank you

  • @kiddmahobele8373
    @kiddmahobele8373 Před rokem

    Great Tutorial and great desktop background

  • @mikeshaw964
    @mikeshaw964 Před rokem

    Very good.
    If i wish to have two (or more) apps installed at once with the 2 icons in start menu group how is it done?

  • @prashanttippimath1706

    One of the best video for desktop app creation ,thanks

  • @hoshi2592
    @hoshi2592 Před měsícem

    Thank you forda clear tutorial :>

  • @mujeebrahman8173
    @mujeebrahman8173 Před 6 měsíci

    Good. If I want to install it another pc , what are all the files I want to copy in USB Flash drive. Under the Debug 2 files I can see. These 2 enough or any other required

  • @lonelyjonathan9964
    @lonelyjonathan9964 Před 12 dny

    Thank you. It worked

  • @UPBear
    @UPBear Před rokem

    Excellent job! In my project using C# WPF when generating the installer the dependencies are not being found, any tips?

  • @vishnupranay6698
    @vishnupranay6698 Před 6 měsíci

    Thank you soo much for the solution

  • @ismaeljunior99
    @ismaeljunior99 Před 2 lety

    Good explanation. Thank you!

    • @CodingJackpot
      @CodingJackpot  Před 2 lety

      Thanks for watching! Please subscribe for upcoming videos

  • @izanagiml5187
    @izanagiml5187 Před rokem

    Thanks a lot!

  • @DjSashaWaksOfficial
    @DjSashaWaksOfficial Před měsícem

    Striaght to the Point - Thank you :)

  • @manavpatel7281
    @manavpatel7281 Před 6 měsíci

    In my visual studio Publish Items menu is not show can you suggest me ? i have vs22 and i will create this setup in my windows form application

  • @sophiayu4506
    @sophiayu4506 Před rokem

    What’s the difference between this way and ClickOne publish? How to add desktop icon when using ClickOne? Thanks.

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

    Great Video!

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

    Thank you very much

  • @hachimassoumani5854
    @hachimassoumani5854 Před rokem

    Thx you !

  • @nikunj17484
    @nikunj17484 Před 2 lety

    It's superb video.
    Thank you🙏🙏🙏

    • @CodingJackpot
      @CodingJackpot  Před 2 lety

      Glad that you liked the video .. please subscribe for more videos

  • @bohdankovalevich1770
    @bohdankovalevich1770 Před rokem

    How to set icon for "installed apps" sections? Because in my case I used wpf app, and it was the default icon

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

    Good video. You can do most anything from most any program if you practice enough.

  • @akilarsath6499
    @akilarsath6499 Před 17 dny

    What should I do if I have multiple project in solution like api,models

  • @TheoM.-mv8ri
    @TheoM.-mv8ri Před rokem

    Thanks!

  • @PulkitsoftLLP
    @PulkitsoftLLP Před 3 měsíci

    Question: during visual setup creation add launch conditions if the specified file exists.

  • @atulmahankal
    @atulmahankal Před rokem +1

    How to create multip platform setup (x64, x86) in a single setup project as the target platform gives the single option.

  • @angelukpongprogramanalyst.8942

    you are a great teacher. made it so easy. i love you.
    Please, can you do a video on how to time the app to have expiry date and activation code? Thanks sir.

  • @surya.banerjee
    @surya.banerjee Před rokem

    It's very helpful 👍😀

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

    sir if i have database file where can i put that in these folder application folder or program folder

  • @sifatrecy1093
    @sifatrecy1093 Před rokem

    I want to move some of my files to AppData Folder. How can I create an installer that will automatically install the app, create a folder in the AppData folder, and store those files in the app data? We cannot access the database file in the program file folder. So I need to keep my database file in AppData Folder. Can you help me?

  • @mohamednaji6850
    @mohamednaji6850 Před 2 lety

    Thank you very much kind sir! :)

  • @acoolhuman1953
    @acoolhuman1953 Před rokem

    Hello, my project has music in it and the music doesn't work when I open the game like the tutorial said. What can I do to fix it?

  • @abdelfattahkhatab760
    @abdelfattahkhatab760 Před 9 měsíci

    hello,
    how can i do if i want to add a custom action to this installer?

  • @carlossantamaria1820
    @carlossantamaria1820 Před 6 měsíci

    Does this work with a MAUI app as well?

  • @keshvalabhavesh4344
    @keshvalabhavesh4344 Před rokem

    Great explain sir 🔥

  • @manvicreaters1690
    @manvicreaters1690 Před rokem

    I did not get the browse button to set the icon in vs 2022 , please guide me how I can resolve this issue

  • @igorgasparik1944
    @igorgasparik1944 Před 6 měsíci

    Can you please advise?
    I don't have an option in the menu : Create Shortcut to Publish Items...

  • @nelsonrivers8546
    @nelsonrivers8546 Před 8 měsíci

    How would you deploy a WinForm application that uses EF Core ? Can you create a separate video for that ?

  • @jeffry144
    @jeffry144 Před 6 měsíci

    Thank You

  • @cmcotrading
    @cmcotrading Před 3 měsíci

    I successfully created setups on my programs. However on my desktop appeared a number of files not sure if i did well. The program is working but when i remove some shortcuts files on desktop(.json, .ico) the program wont open

  • @zombie4847
    @zombie4847 Před rokem

    i love your videos

  • @mintheinwin4959
    @mintheinwin4959 Před rokem +1

    I'm not found "Publish Item" from under add->Project Output-> .... Any have other way?

  • @simonbaxter8001
    @simonbaxter8001 Před rokem

    For the shortcut Icon, why don't you just select the target .exe and get the icon from that, as you already have the applications icon embedded in the exe!

  • @lohoma
    @lohoma Před rokem

    dank yu bro

  • @hipockt4
    @hipockt4 Před rokem

    How to get the shortcut icon to show on the desktop. I only get the generic icon

  • @cinematicsensations219
    @cinematicsensations219 Před měsícem

    I completed your instructions but the desktop shortcut doesnt show the icon I added, it only shows up on the form. Can you tell me how to make a "release" installer because this is only debug version?

  • @krzychoo7373
    @krzychoo7373 Před 8 měsíci

    I have a problem. I hope you can help me solve it. Namely: In Visual Studio I write the simplest adding program in the Console, everything is fine, it does not show any errors. As soon as I publish it and try to run the program correctly, it asks me for the first number and then for the second, and when it is supposed to perform the calculation, it hangs and minimizes itself. This is the case with all my console programs that I write. After publication, whenever they are about to perform any operation, they hang. I tried to find the cause and I can't find anything. I sent the codes to my friend to run them on his own, and they don't work for him either, even though they show absolutely no errors. Do you know what could be wrong? Maybe I'm missing something from Visual Studio add-ons

  • @legendaryrababa
    @legendaryrababa Před rokem

    i dont have publish item in add project output group, I am trying to create .exe file for simple wfp app

  • @tracylamb6145
    @tracylamb6145 Před 2 lety

    Thank you for the video. I, too, had to select Project Output as I didn't have a Publish item. I installed the app, and it runs fine until I press my Print button. I'm printing to a Brother PTouch label printer. Nothing prints. In VS2022 debug it prints fine. Also, if I build the release and run the project from the bin\Release folder, it prints fine.
    I'm wondering why it won't work from the installed app?

    • @CodingJackpot
      @CodingJackpot  Před 2 lety

      You can try adding try catch block to see if there is any dependency or run time error which is blocking your printer code to execute

  • @fiestafan95
    @fiestafan95 Před rokem

    worked like a charm, but how do I go from here? i.e. make a file (or folder) i can take to another computer to install my program...

  • @MahadeoPaighan
    @MahadeoPaighan Před rokem

    An attempt to attach An autonamed database for file C/administration/desktop /acmd.mdf failed . Database with the same name exist , or specified can not be opened .or it located on unc share.
    This error show when I am installed th setup and try to entry in form

  • @user-hy1cb3js3k
    @user-hy1cb3js3k Před 10 měsíci

    Thanks it works

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

    11:55 Curious if you know how to update the version number showing here?

  • @muhammadjibrilmuqoddas2235
    @muhammadjibrilmuqoddas2235 Před 9 měsíci

    Can everyone use the app? In different device

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

    Thanku brooo

  • @shubhamjain703
    @shubhamjain703 Před rokem

    I want to create exe file such that if run that exe file on the desktop on which .net is not preinstalled then also that exe file can run on and user can install that desktop app

  • @sudiptamodak5840
    @sudiptamodak5840 Před 3 měsíci

    I am using a cefsharp to create a browser. It run well within Visual Studio. But when I am creating a Setup file for distribute the software the process does not work. Can you help me?

  • @ap_channel4090
    @ap_channel4090 Před rokem

    excellent work

  • @lucasferreira8229
    @lucasferreira8229 Před rokem

    Is there anything like this in VS Code?

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

    Thanks, can i to generat serial nember or lesence ....

  • @maduravineetha9683
    @maduravineetha9683 Před 2 lety

    please make a video about how to make customized setup file with terms and conditions,...etc.

  • @letuslearn8433
    @letuslearn8433 Před 2 lety

    Thank you bro. it is an interesting video.

  • @clemencedelmas970
    @clemencedelmas970 Před rokem

    Hello everyone, I'm a beginner in coding and I was seaking for this kind of solution. I realize that VB6 has been replaced by visual studio which require others coding skills. How did you access to VB6 those who posted comments just 1 month ago ? Many thanks in advance for your advises.

  • @YTtopPAULO
    @YTtopPAULO Před rokem

    Wow bro thanks

  • @user-no6bf2iv9m
    @user-no6bf2iv9m Před rokem

    very helpful bro😊😊😊

  • @MinhTri-mh7bh
    @MinhTri-mh7bh Před rokem

    I should I do now because I can see the publish item button

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

    Thank you sir

  • @jibsbadung8332
    @jibsbadung8332 Před rokem

    Thanks for that. I tried my but it tels no connection to database. What can I do.

  • @mrtien2510
    @mrtien2510 Před 2 lety

    Thank you.

    • @CodingJackpot
      @CodingJackpot  Před 2 lety

      You're welcome! like share and subscribe for more videos

  • @etcast1559
    @etcast1559 Před 2 měsíci

    how to add .net runtime dependency to the setup.exe?

  • @hungchip
    @hungchip Před 6 měsíci

    How to change Icon Installer/Uninstaller in Control Panel?

  • @Yogesh-Powar
    @Yogesh-Powar Před 10 měsíci

    Thanks

  • @matyimartinak3331
    @matyimartinak3331 Před rokem +1

    Hello! Can I change the installation path in the setup project? For example: My program will be installed to ProgramFiles but I want it to be on Desktop.

    • @geoff7534
      @geoff7534 Před 23 dny

      bruh desktop stuff are only shortcuts

  • @kemalkaratas9785
    @kemalkaratas9785 Před rokem

    Teşekkür Ederim

  • @user-bq5iz1wj3q
    @user-bq5iz1wj3q Před rokem

    how to make msi call a shortcut with the ability to open from the administrator?

  • @muhammetibrahimkaya
    @muhammetibrahimkaya Před rokem

    incredibe,awesome

  • @arindampaul4190
    @arindampaul4190 Před 7 měsíci +1

    on my end Publish Item is not coming, what to do?

  • @Yourmom-nu1dg
    @Yourmom-nu1dg Před 2 lety

    Thank you! +1

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

    Just a tips here, at the Solution Explorer, click the Setup project, then press F4 to change the properties such as Author , Product Name, Manufacturer, Target Platform and etc.
    Oh btw, thank you very much for this video. 2 thumbs up for you!!!

  • @learnwithme395
    @learnwithme395 Před 2 lety

    hi, Please help me, My I have the python project file here, so I'm having hard time following your steps, please help me how to do everything, I need to submit this project for my school task

  • @itsembra
    @itsembra Před 2 lety

    thank you😉

    • @CodingJackpot
      @CodingJackpot  Před 2 lety

      Glad you liked the video .. like share and subscribe for more such videos

  • @jeffdn1
    @jeffdn1 Před rokem

    I can't get this to work with Python code. Is it possible?

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

    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!

    • @CodingJackpot
      @CodingJackpot  Před 2 lety +4

      Hi ....All other layers will get added automatically as .dll files as they are referenced in main project as projet reference

    • @SheikhMuhammadNawaz
      @SheikhMuhammadNawaz Před 2 lety

      Making single exe from multiple files or Project files is very easy. I have mentioned it in Urdu language. Link is below:
      czcams.com/video/aAQX_I_9BCw/video.html