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

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 พ.ย. 2024
  • 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

ความคิดเห็น • 254

  • @mohamednaji6850
    @mohamednaji6850 2 ปีที่แล้ว +76

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

    • @CodingJackpot
      @CodingJackpot  2 ปีที่แล้ว +8

      Thanks for sharing and helping others

    • @sonjastojanovic5218
      @sonjastojanovic5218 2 ปีที่แล้ว +2

      Same here 😃

    • @usr829
      @usr829 ปีที่แล้ว +4

      Your comment saved my time thanks

    • @EnglishMediumMathsOL
      @EnglishMediumMathsOL ปีที่แล้ว

      I also have a doubt on that

    • @fingercross4313
      @fingercross4313 11 หลายเดือนก่อน

      My app has been built well but when i installed my app icon not showing? Please help

  • @ManojYadwad2
    @ManojYadwad2 2 ปีที่แล้ว +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.

  • @AndrewKwabula
    @AndrewKwabula ปีที่แล้ว +4

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

  • @belfordmcpimface3482
    @belfordmcpimface3482 9 หลายเดือนก่อน

    Useful and current two years later. Subscribed.

  • @amyputnam1316
    @amyputnam1316 ปีที่แล้ว +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 10 หลายเดือนก่อน

      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

  • @paulcooper555
    @paulcooper555 23 วันที่ผ่านมา

    Excellent intro for newbies - Thank you Coding Jackpot

  • @prashanttippimath1706
    @prashanttippimath1706 ปีที่แล้ว

    One of the best video for desktop app creation ,thanks

  • @RahulSharmaOfficial
    @RahulSharmaOfficial 11 หลายเดือนก่อน

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

  • @KidToyz
    @KidToyz ปีที่แล้ว

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

  • @markdevlin653
    @markdevlin653 2 ปีที่แล้ว +2

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

    • @CodingJackpot
      @CodingJackpot  2 ปีที่แล้ว +1

      Thanks for watching.. subscribe for more such videos

  • @jimbobwylie
    @jimbobwylie 2 ปีที่แล้ว +3

    This is incredible! Thank you so much for this!

  • @DulakshiHansika-kj1jd
    @DulakshiHansika-kj1jd ปีที่แล้ว +1

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

  • @arindampaul4190
    @arindampaul4190 10 หลายเดือนก่อน +1

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

  • @tzgardner
    @tzgardner ปีที่แล้ว +1

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

  • @chiyungtang8051
    @chiyungtang8051 2 ปีที่แล้ว +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!!!

  • @mostainbillah
    @mostainbillah 13 วันที่ผ่านมา

    Do you have any calculator making project for visual basic 2022

  • @PulkitsoftLLP
    @PulkitsoftLLP 6 หลายเดือนก่อน

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

  • @emirkaancati5218
    @emirkaancati5218 2 ปีที่แล้ว

    Thanks to you I got my first setup ever :D

  • @Sal_artz
    @Sal_artz 26 วันที่ผ่านมา +1

    This was helpful Ty alsoCan you make a tutorial of how to extract sprite sheet cuz I’m remaking fnf

  • @mintheinwin4959
    @mintheinwin4959 ปีที่แล้ว +1

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

  • @mujeebrahman8173
    @mujeebrahman8173 9 หลายเดือนก่อน

    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

  • @atulmahankal
    @atulmahankal ปีที่แล้ว +1

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

  • @araradsarkissian2859
    @araradsarkissian2859 5 หลายเดือนก่อน

    Works fine! Thank you for your time! :)

  • @igorgasparik1944
    @igorgasparik1944 10 หลายเดือนก่อน

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

  • @akilarsath6499
    @akilarsath6499 4 หลายเดือนก่อน

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

  • @kiddmahobele8373
    @kiddmahobele8373 2 ปีที่แล้ว

    Great Tutorial and great desktop background

  • @arajamgochian2372
    @arajamgochian2372 ปีที่แล้ว

    Excellent and clear tutorial. Thank you.

  • @robertmccully2792
    @robertmccully2792 11 หลายเดือนก่อน

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

  • @rodgdl4482
    @rodgdl4482 ปีที่แล้ว

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

  • @nmarks
    @nmarks 2 ปีที่แล้ว +1

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

  • @hipockt4
    @hipockt4 2 ปีที่แล้ว

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

  • @eduardoalvarado8720
    @eduardoalvarado8720 2 หลายเดือนก่อน

    Hi friend, thanks for the excellent explanation. ... . great.!!!!

  • @bohdankovalevich1770
    @bohdankovalevich1770 ปีที่แล้ว

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

  • @MahadeoPaighan
    @MahadeoPaighan ปีที่แล้ว

    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

  • @manavpatel7281
    @manavpatel7281 9 หลายเดือนก่อน

    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

  • @mikeshaw964
    @mikeshaw964 ปีที่แล้ว

    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?

  • @Airsoftshowoffs
    @Airsoftshowoffs 2 ปีที่แล้ว

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

  • @cinematicsensations219
    @cinematicsensations219 4 หลายเดือนก่อน

    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?

  • @hoshi2592
    @hoshi2592 5 หลายเดือนก่อน

    Thank you forda clear tutorial :>

  • @orltokata9208
    @orltokata9208 2 ปีที่แล้ว +1

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

  • @nelsonrivers8546
    @nelsonrivers8546 11 หลายเดือนก่อน

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

  • @hungchip
    @hungchip 10 หลายเดือนก่อน

    How to change Icon Installer/Uninstaller in Control Panel?

  • @abdelfattahkhatab760
    @abdelfattahkhatab760 ปีที่แล้ว

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

  • @klemenbrecko9755
    @klemenbrecko9755 ปีที่แล้ว

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

  • @MinhTri-mh7bh
    @MinhTri-mh7bh ปีที่แล้ว

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

  • @sophiayu4506
    @sophiayu4506 2 ปีที่แล้ว

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

  • @manvicreaters1690
    @manvicreaters1690 2 ปีที่แล้ว

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

  • @pravallikavanjarapu6788
    @pravallikavanjarapu6788 2 หลายเดือนก่อน

    Is that execuatble file works in another system?

  • @gmqazi06
    @gmqazi06 ปีที่แล้ว

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

  • @vishnupranay6698
    @vishnupranay6698 10 หลายเดือนก่อน

    Thank you soo much for the solution

  • @legendaryrababa
    @legendaryrababa ปีที่แล้ว

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

  • @cmcotrading
    @cmcotrading 7 หลายเดือนก่อน

    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

  • @Dineshdinesh-mo3qi
    @Dineshdinesh-mo3qi หลายเดือนก่อน

    Super video bro❤..

  • @lonelyjonathan9964
    @lonelyjonathan9964 3 หลายเดือนก่อน

    Thank you. It worked

  • @sar0_00-t2v
    @sar0_00-t2v 2 ปีที่แล้ว

    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?

  • @lighton9451
    @lighton9451 8 หลายเดือนก่อน

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

  • @DjSashaWaksOfficial
    @DjSashaWaksOfficial 4 หลายเดือนก่อน

    Striaght to the Point - Thank you :)

  • @sudiptamodak5840
    @sudiptamodak5840 7 หลายเดือนก่อน

    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?

  • @9994704470
    @9994704470 ปีที่แล้ว

    Excellent explanation!. I have image and database folder in my application. How to add it here ? Can you please tell ?

  • @carlossantamaria1820
    @carlossantamaria1820 10 หลายเดือนก่อน

    Does this work with a MAUI app as well?

  • @krzychoo7373
    @krzychoo7373 ปีที่แล้ว

    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

  • @etcast1559
    @etcast1559 5 หลายเดือนก่อน

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

  • @mostainbillah
    @mostainbillah 13 วันที่ผ่านมา

    ❤ thank you very much❤

  • @thesituation5315
    @thesituation5315 2 ปีที่แล้ว

    Thank you! This is very helpful, frickin awesome.

    • @CodingJackpot
      @CodingJackpot  2 ปีที่แล้ว

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

  • @matyimartinak3331
    @matyimartinak3331 ปีที่แล้ว +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 4 หลายเดือนก่อน

      bruh desktop stuff are only shortcuts

  • @UPBear
    @UPBear ปีที่แล้ว

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

  • @jibsbadung8332
    @jibsbadung8332 ปีที่แล้ว

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

  • @sifatrecy1093
    @sifatrecy1093 2 ปีที่แล้ว

    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?

  • @ПавелВайт
    @ПавелВайт ปีที่แล้ว

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

  • @vishprabhum
    @vishprabhum ปีที่แล้ว

    How do i create setup.exe which installs without admin rights required for installation

  • @hanswelder
    @hanswelder 2 ปีที่แล้ว

    Great, thanks for lighten the jungle 😅

  • @pasindusenanayake2542
    @pasindusenanayake2542 2 ปีที่แล้ว +1

    it's very helpful one

  • @MichaelToumie
    @MichaelToumie ปีที่แล้ว

    Well done! thank you

  • @Yxncooo
    @Yxncooo 9 หลายเดือนก่อน

    Great Video!

  • @muhammadjibrilmuqoddas2235
    @muhammadjibrilmuqoddas2235 ปีที่แล้ว

    Can everyone use the app? In different device

  • @fiestafan95
    @fiestafan95 ปีที่แล้ว

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

  • @tracylamb6145
    @tracylamb6145 2 ปีที่แล้ว

    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  2 ปีที่แล้ว

      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

  • @keshvalabhavesh4344
    @keshvalabhavesh4344 ปีที่แล้ว

    Great explain sir 🔥

  • @DaudDaud-op2qk
    @DaudDaud-op2qk หลายเดือนก่อน

    👍👍👍👍😁😁 it is amaizng

  • @lucasferreira8229
    @lucasferreira8229 ปีที่แล้ว

    Is there anything like this in VS Code?

  • @חגידוד-ש2ח
    @חגידוד-ש2ח 2 ปีที่แล้ว +2

    In 7:02 minute you have shown you clicking on Public Item one option in the list, my list not inlclude this option (Puclib Item is missing, my list starts from Primary)

    • @CodingJackpot
      @CodingJackpot  2 ปีที่แล้ว

      Which version of visual studio are you using ?

    • @boyinpyjamas
      @boyinpyjamas 2 ปีที่แล้ว

      i have same issue with VS 2022 did you fix it?

    • @חגידוד-ש2ח
      @חגידוד-ש2ח 2 ปีที่แล้ว

      @@boyinpyjamas Not exactly, the problem is proabbly in my windows or in my windows installtion because from other pc of mine it work fine.

  • @mrbond1074
    @mrbond1074 2 ปีที่แล้ว

    At the finish point is it ready to share with other machines and will it work same over there ?

    • @CodingJackpot
      @CodingJackpot  2 ปีที่แล้ว

      Yes if the exe is properly installed on the other machine it should work

  • @jeffreycaballero8231
    @jeffreycaballero8231 หลายเดือนก่อน

    Why did you use the Setup1(.msi) instead of setup(.exe)?

  • @maduravineetha9683
    @maduravineetha9683 2 ปีที่แล้ว

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

  • @shubhamjain703
    @shubhamjain703 2 ปีที่แล้ว

    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

  • @letuslearn8433
    @letuslearn8433 2 ปีที่แล้ว

    Thank you bro. it is an interesting video.

  • @angelukpong
    @angelukpong ปีที่แล้ว

    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.

  • @RebelComander
    @RebelComander 2 ปีที่แล้ว

    After the setup file has run and installed my application it won't launch. Clicking on it and nothing happens. Any ideas?

  • @jdhirhe
    @jdhirhe 9 หลายเดือนก่อน

    Thank you very much

  • @gibranaakib7386
    @gibranaakib7386 3 หลายเดือนก่อน

    publish items not coming in addproject outputgroup

  • @newwspaper2110
    @newwspaper2110 2 ปีที่แล้ว

    hi i have a question when it runs how do i make it download something onto the computer

    • @CodingJackpot
      @CodingJackpot  2 ปีที่แล้ว

      Download process can be started after the installation is finished..

  • @ap_channel4090
    @ap_channel4090 ปีที่แล้ว

    excellent work

  • @vidhyadhardharmadhikari6981
    @vidhyadhardharmadhikari6981 หลายเดือนก่อน

    very nice..

  • @terojsevi8090
    @terojsevi8090 ปีที่แล้ว

    Hello,why mine become tmp file not exe?

  • @HadrielWonda
    @HadrielWonda 2 ปีที่แล้ว

    I'm having a little problem downloading the extension... the installer isnt coming up after iclose vs

    • @CodingJackpot
      @CodingJackpot  2 ปีที่แล้ว

      You can try running the exe file generated in the bin folder if it's working then the installer should also work fine

  • @surya.banerjee
    @surya.banerjee ปีที่แล้ว

    It's very helpful 👍😀

  • @learnwithme395
    @learnwithme395 2 ปีที่แล้ว

    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

  • @VORP125
    @VORP125 2 ปีที่แล้ว +1

    This doesn't work for me! Program gets installed, but it doesn't work when I launch it. My program changes values in a game through pointers with offsets.

    • @deepikanath4475
      @deepikanath4475 2 ปีที่แล้ว

      Having similar issue in vs2022 for a vb app. Installer is built and does its thing. But the program doesn’t launch after I click the icon.

    • @sar0_00-t2v
      @sar0_00-t2v 2 ปีที่แล้ว

      Is your project on windows form app or windows form app .NET framework?

  • @jeffdn1
    @jeffdn1 ปีที่แล้ว

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

  • @zombie4847
    @zombie4847 2 ปีที่แล้ว

    i love your videos