How to Create Setup.exe in Visual Studio 2019 using VS Installer Projects

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys welcome back to my channel i'm longpamai and in this video i'll be showing you step by step on how to deploy net application using visual studio installer projects and in the following video i'll also give a detailed walkthrough on how to deploy office solutions for both document level projects as well as for the add-ins so before we get started if you haven't please do not forget to subscribe and hit the bell icon for upcoming videos first you can verify if you have the installer projects ready by going by creating a new project and from the search you just type in setup and hit enter if you see this set up projects that means you're good to go otherwise you can go to marketplace.visualstudio.com i'll leave the link in the video description so basically what you'll have to do is you have to go to this page you click on download so once you click on download uh it'll go to your downloads folder click on show and just refresh it so basically you just need to install this and once you install this you'll have to restart your visual studio okay and that that will be it you should be able to see it from giving your projects after that since i already uh have it i'm not gonna reinstall it okay so here's the vsix file so you just need to you know like right click install follow the instructions very simple so once you're done just restart close your visual studio and start again okay okay so to demonstrate this i'm going to create a brand new project um let's create a winform project i'm going to call this 1x and this will be in my youtube directory and creed let's give it a moment i'm just going to change some basic stuff um okay first f4 i'm gonna just name this s1x deploy demo something like that and let's change the icon as well so i'm going to do our documents ico and this okay and let's add label something to differentiate the version version 1.0 okay let's load this up ctrl f5 starting to build okay so here's our phone okay maybe we'll just change how it looks up okay so just a basic form like this uh now i'm gonna assign uh the present you can change the icon here as well but it won't show the impact so i'm just gonna go to signing just to make sure that uh it's not altered so i'm gonna create a the test certificate now if you have existing certificate you can select done okay so here is our tam key i'm going to assign this assembly using that okay and that's it save it um if you use click once to deploy you know like dot net solutions like i mean even for for you know like win applications you can still do it it's quite useful but for now we're gonna use the installer i'm gonna build or you can go here and build as well like this okay so all good now i'm gonna right click on this solution and add and then click on new project and from here now you can search for setup and you can use the wizard as well and then do it but for now we're gonna just use this okay um just name of the project for the setup now this will be in the same folder as this okay so if i go to folder yeah this folder is the wonder i'll project this and if you go in here you'll see the project is added here in the same folder now first thing uh this is for application folder now i'm gonna add primary output and then we'll create two circles one for program and one program menu which is for here and then at the desktop as well um i'm gonna import the logo first let's add this as our demo logo and then i'm going to create a sort good now you can rename this to how you want it to appear um the name of the shortcode i'm gonna drag this into the desktop folder now it's here coming back here creating one more shortcut from the primary output click ok i'm gonna keep the name consistent and then i'm gonna drag it here to programs okay uh one more thing we can do here is we can add f4 we can add um the icon for this as well now browse and select the one that was uploaded here um this robot.ico is the one i uploaded yep click ok ok do the same thing for the one which is here okay and okay so that's gonna be pretty much it from here as we go back here um a couple of things that we can change here the author uh it comes pre-filled i'm gonna add vba e to that uh and then manufacturer i'll just show you in a moment how where this is going to reflect product name can be this linux and then maybe support url can be um give me one second okay so for the support url i'm gonna paste the youtube you know like just the youtube link and then you can change all this other information but the the product name and the manufacturer is something you want to update and i'm gonna leave the rest of this as it is okay uh what else so we've done here okay so i'm just gonna ensure you know like the latest things are incorporated i just rebuild this project and then i'm gonna build this one it's the first time i'm building this um okay still building just give it a moment okay so bill succeeded um and it's ready one more thing like before you create this before you build this you can uh go here and select all the prerequisites that you know like uh some of them are pre selected here for example and then you can choose from where it's gonna download uh this one uh for this you'll need the users to have the internet otherwise this will fail otherwise you can also specify the location from where it's gonna download this okay so go go for this and just click okay for this and then um as you go here i'm going to check this box and we want this setup to be in the release folder and then i'm going to click okay i'm gonna leave this as well as in release okay i'm gonna save it once more and then rebuild okay so to succeed and now if i go here you can directly install from here and check it as well or you can open the folder okay so if you go to release folder you'll see two files one is the msi and then the exe file so you can run either of them actually to install it so i'm going to quickly demonstrate that now right click install so here you see the the app name and then here as well here you can specify the folder where it's going to be installed and then yeah just me for now and then click next and next i'm gonna go to my control panel and so once it's installed we should be able to see it here let's give it a moment and done okay so it's done click close and now we should be able to see here i'm just press f5 so here's the publisher that we put in the name of the product and this is the version the size installed on and here you see the held url so once they click here it will lead them to the link that you put in and then if we go to desktop this is the application we just installed now if i run this probably my antivirus is gonna okay so this is the one we just created now similarly if you go to your programs you should see this here it's the one okay now if you go here and just uninstall this all these relevant data should be removed from here as well as from here again okay so you can see like it automatically clear off okay so that's all for now in this video if you have any questions do comment on the video below and if you think this video is informative do not forget to leave a like and i'll talk to you guys in the next video [Music] bye [Music] you
Info
Channel: VBA A2Z
Views: 44,251
Rating: undefined out of 5
Keywords: how to create setup file in visual studio, visual studio, c#, .net, c# winforms, how to create setup.exe in visual studio 2019, visual studio setup project, create an installer from visual studio, how do you create an installer, how do i create a project in visual studio 2019, how do i create a setup file in visual studio, how do i setup an exe file, how to create msi package in visual studio 2019, create an msi file, create setup windows form application c#, vb.net, vba exe file
Id: 6Mfp2EXmVNI
Channel Id: undefined
Length: 11min 43sec (703 seconds)
Published: Fri Jul 24 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.