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

Поделиться
HTML-код
  • Опубликовано: 23 янв 2025

Комментарии • 257

  • @mohamednaji6850
    @mohamednaji6850 2 года назад +79

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

  • @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 2 года назад +4

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

  • @amyputnam1316
    @amyputnam1316 2 года назад +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 Год назад

      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

  • @tzgardner
    @tzgardner Год назад +1

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

  • @belfordmcpimface3482
    @belfordmcpimface3482 Год назад

    Useful and current two years later. Subscribed.

  • @חגידוד-ש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.

  • @muhammedballi6189
    @muhammedballi6189 Год назад

    I have an error when io build 10:19 and dont know how to fix:
    ERROR: File 'QuizProto.exe' of project output 'Primäre Ausgabe from QuizProto (Active)' targeting 'AMD64' is not compatible with the project's target platform 'x86'
    ERROR: File 'QuizProto.exe' of project output 'Primäre Ausgabe from QuizProto (Active)' targeting 'AMD64' is not compatible with the project's target platform 'x86'
    WARNING: File 'QuizProto.exe' of project output 'Primäre Ausgabe from QuizProto (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'
    WARNING: File 'QuizProto.exe' of project output 'Primäre Ausgabe from QuizProto (Active)' targeting 'x64' is not compatible with the project's target platform 'x86'

  • @jimbobwylie
    @jimbobwylie 2 года назад +3

    This is incredible! Thank you so much for this!

  • @PulkitsoftLLP
    @PulkitsoftLLP 9 месяцев назад

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

  • @arindampaul4190
    @arindampaul4190 Год назад +1

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

  • @SUBHENDUBISWAS-b5k
    @SUBHENDUBISWAS-b5k Месяц назад

    Thank you Sir , I am very much pleased and satisfied with your project.

  • @MahadeoPaighan
    @MahadeoPaighan 2 года назад

    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

  • @mintheinwin4959
    @mintheinwin4959 Год назад +1

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

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

  • @RahulSharmaOfficial
    @RahulSharmaOfficial Год назад

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

  • @DulakshiHansika-kj1jd
    @DulakshiHansika-kj1jd Год назад +1

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

  • @matyimartinak3331
    @matyimartinak3331 2 года назад +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 6 месяцев назад

      bruh desktop stuff are only shortcuts

  • @bohdankovalevich1770
    @bohdankovalevich1770 Год назад

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

  • @prashanttippimath1706
    @prashanttippimath1706 Год назад

    One of the best video for desktop app creation ,thanks

  • @igorgasparik1944
    @igorgasparik1944 Год назад

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

  • @atulmahankal
    @atulmahankal 2 года назад +1

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

  • @manavpatel7281
    @manavpatel7281 Год назад

    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

  • @cmcotrading
    @cmcotrading 9 месяцев назад

    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

  • @KidToyz
    @KidToyz Год назад

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

  • @akilarsath6499
    @akilarsath6499 6 месяцев назад

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

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

  • @mujeebrahman8173
    @mujeebrahman8173 Год назад

    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

  • @cinematicsensations219
    @cinematicsensations219 7 месяцев назад

    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?

  • @mostainbillah
    @mostainbillah 2 месяца назад

    Do you have any calculator making project for visual basic 2022

  • @paulcooper555
    @paulcooper555 3 месяца назад

    Excellent intro for newbies - Thank you Coding Jackpot

  • @nelsonrivers8546
    @nelsonrivers8546 Год назад

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

  • @GolemGamingWWR
    @GolemGamingWWR Месяц назад

    Thank you so much for this video! It is indeed helpful!

  • @sophiayu4506
    @sophiayu4506 2 года назад

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

  • @sudiptamodak5840
    @sudiptamodak5840 9 месяцев назад

    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?

  • @araradsarkissian2859
    @araradsarkissian2859 8 месяцев назад

    Works fine! Thank you for your time! :)

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

  • @legendaryrababa
    @legendaryrababa 2 года назад

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

  • @emirkaancati5218
    @emirkaancati5218 2 года назад

    Thanks to you I got my first setup ever :D

  • @nmarks
    @nmarks 2 года назад +1

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

  • @gmqazi06
    @gmqazi06 Год назад

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

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

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

  • @abdelfattahkhatab760
    @abdelfattahkhatab760 Год назад

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

  • @saroo_000
    @saroo_000 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?

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

  • @hipockt4
    @hipockt4 2 года назад

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

  • @rodgdl4482
    @rodgdl4482 Год назад

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

  • @pravallikavanjarapu6788
    @pravallikavanjarapu6788 4 месяца назад

    Is that execuatble file works in another system?

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

  • @hungchip
    @hungchip Год назад

    How to change Icon Installer/Uninstaller in Control Panel?

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

  • @carlossantamaria1820
    @carlossantamaria1820 Год назад

    Does this work with a MAUI app as well?

  • @sohamshinge5906
    @sohamshinge5906 9 дней назад

    My App runs perfect fine but In my project I had used images and I have followed all your steps but can't see images after installation

  • @jeffreycaballero8231
    @jeffreycaballero8231 4 месяца назад

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

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

  • @muhammadjibrilmuqoddas2235
    @muhammadjibrilmuqoddas2235 Год назад

    Can everyone use the app? In different device

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

  • @orltokata9208
    @orltokata9208 2 года назад +1

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

  • @UPBear
    @UPBear Год назад

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

  • @MinhTri-mh7bh
    @MinhTri-mh7bh 2 года назад

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

  • @arajamgochian2372
    @arajamgochian2372 Год назад

    Excellent and clear tutorial. Thank you.

  • @eduardoalvarado8720
    @eduardoalvarado8720 5 месяцев назад

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

  • @vishprabhum
    @vishprabhum Год назад

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

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

  • @etcast1559
    @etcast1559 8 месяцев назад

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

  • @jibsbadung8332
    @jibsbadung8332 Год назад

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

  • @ПавелВайт
    @ПавелВайт Год назад

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

  • @CésarAchón-g2f
    @CésarAchón-g2f Год назад

    if my project is connected to a database, and i share it to a coworker , will it work ? i tried using published project but doesn't let me login because it's an untrusted source or something,(i'm a begineer)

    • @CésarAchón-g2f
      @CésarAchón-g2f Год назад

      i mean when i try it in the other computer doesnt work, it works just fine on my pc

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

    • @saroo_000
      @saroo_000 2 года назад

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

  • @kiddmahobele8373
    @kiddmahobele8373 2 года назад

    Great Tutorial and great desktop background

  • @jeffdn1
    @jeffdn1 2 года назад

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

  • @Dineshdinesh-mo3qi
    @Dineshdinesh-mo3qi 3 месяца назад

    Super video bro❤..

  • @lucasferreira8229
    @lucasferreira8229 2 года назад

    Is there anything like this in VS Code?

  • @lighton9451
    @lighton9451 10 месяцев назад

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

  • @robertmccully2792
    @robertmccully2792 Год назад

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

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

  • @Airsoftshowoffs
    @Airsoftshowoffs 2 года назад

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

  • @clemencedelmas970
    @clemencedelmas970 2 года назад

    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.

  • @klemenbrecko9755
    @klemenbrecko9755 Год назад

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

  • @mrbond1074
    @mrbond1074 2 года назад

    after this done can i share this to my friends for their pc and will it work there as working in my machine ?

    • @CodingJackpot
      @CodingJackpot  2 года назад

      yes it will work that's the purpose of an exe file

    • @mrbond1074
      @mrbond1074 2 года назад

      @@CodingJackpot ok let me try this personally then will inform

    • @mrbond1074
      @mrbond1074 2 года назад

      @@CodingJackpot I tried to run my code in other machine but says "The code execution cannot proceed because ucrtbased.dll was not found ". Now what bro

    • @mrbond1074
      @mrbond1074 2 года назад

      Bro I am stuck

  • @hoshi2592
    @hoshi2592 7 месяцев назад

    Thank you forda clear tutorial :>

  • @LoganBigHat
    @LoganBigHat 2 года назад

    How i can set the Default installation folder ? Example: "C:\Programm" and remove the choose of installation folder ?

    • @CodingJackpot
      @CodingJackpot  2 года назад

      User will always have a choice to change the default location.
      If you want to change the default installation location then you can right click application folder and in properties you will get default location property

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

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

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

  • @KamrulIslam-tp9qk
    @KamrulIslam-tp9qk 2 года назад

    if i share the .exe file to someone can he/she install it if his/her pc doesn't have the extension file installed?

    • @CodingJackpot
      @CodingJackpot  2 года назад

      .net framework is required for the exe to install and run on client pc

    • @KamrulIslam-tp9qk
      @KamrulIslam-tp9qk 2 года назад

      @@CodingJackpot ok thank you

  • @DjSashaWaksOfficial
    @DjSashaWaksOfficial 7 месяцев назад

    Striaght to the Point - Thank you :)

  • @matteoverardo8005
    @matteoverardo8005 2 года назад

    Hi, on minute 6.58 I don't have "Publish Items". Is it because my project is C++ and not C#?

    • @CodingJackpot
      @CodingJackpot  2 года назад +1

      You should have that option irrespective of programming language selected

    • @k0r0z1f
      @k0r0z1f 2 года назад

      Hey, I hope you found out but in the VS installer you need to make sure that .Net desktop is installed

    • @matteoverardo8005
      @matteoverardo8005 2 года назад

      Ok thanks I will check.

    • @matteoverardo8005
      @matteoverardo8005 2 года назад

      @@k0r0z1f , Hi, yes desktop.NET is installed but maybe some options are missing.

    • @matteoverardo8005
      @matteoverardo8005 2 года назад

      @@CodingJackpot Hi, instead of "Publish Items" I used "Primary Output" but I don't know what the difference is.

  • @DaudDaud-op2qk
    @DaudDaud-op2qk 4 месяца назад

    👍👍👍👍😁😁 it is amaizng

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

  • @maduravineetha9683
    @maduravineetha9683 2 года назад

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

  • @lopo8000
    @lopo8000 3 года назад

    is there a way to do it without using microsofts installer plugin?

    • @CodingJackpot
      @CodingJackpot  3 года назад

      Currently it is the simplest and user friendly one .. we will do our study and let you know if there is any other way ..

  • @amarnathreddysurapureddy9111
    @amarnathreddysurapureddy9111 Год назад

    This tool use for python also or not, If it is anybody help me I want suggestion

  • @tomazis100
    @tomazis100 2 года назад

    Hi. How can I give my app to a client or someone else to run it on another computer? Thanks in advance!

    • @CodingJackpot
      @CodingJackpot  2 года назад

      you can share the .exe file and it can be installed on his/her computer just by clicking on the exe it can be installed .. the same way it is installed on your computer

    • @tomazis100
      @tomazis100 2 года назад

      Thank you

    • @tomazis100
      @tomazis100 2 года назад

      It seems i have other problems too. I create the setup file , it installs on another computer but when i click the shortcut the application doesnt run, nothing happens. Any ideas?

  • @ჯჯჯჯჯჯჯჯჯ
    @ჯჯჯჯჯჯჯჯჯ 11 месяцев назад

    Great Video!

  • @mostainbillah
    @mostainbillah 2 месяца назад

    ❤ thank you very much❤

  • @gibranaakib7386
    @gibranaakib7386 5 месяцев назад

    publish items not coming in addproject outputgroup

  • @lonelyjonathan9964
    @lonelyjonathan9964 6 месяцев назад

    Thank you. It worked

  • @frankkoslowski6917
    @frankkoslowski6917 2 года назад +4

    Very nice.
    Just don't see the point of introducing the convoluted icon addition process in Visual Studio when one can use the standard method of creating a shortcut directly from where the executable is situated, and then simply embellish the standard icon of the executable on the desktop with an icon of choice from anywhere on the computer.
    The point being that Visual Studio, as seen over a period of several years, seems to somewhat complicate simple manipulation in the name of Visual Studio platform centralization of all processes.
    Am I overlooking something in the general procedure of creating apps?