❔ Install and run an EXE
hello, i want to make a .NET windows form Button Install and run an EXE. what code is required to do this?
5 Replies
You can easily create a WinForms app using a template in Visual Studio. The template includes a fully functional WinForms app that creates a window with no content. However, you can easily style the window with a designer. To get the .exe file from the app you just need to create the app and look in the folder <YouProjectFolder>/bin/debug, there you can find the exe file and to run the app you just need double click on the file. However, .NET must be installed on all PCs on which you want to run the app. An alternative is to build the app in .NET Framework since .NET Framework is installed by default on Windows and .NET is not.
This video might be useful if you want to learn more about WinForms: https://www.youtube.com/watch?v=0zLZQesgV5o
IAmTimCorey
YouTube
Intro to Windows Forms (WinForms) in .NET 6
Windows Forms, also known as WinForms, is one of the original project types in .NET. It is designed to be a rapid application development environment for desktop applications. Over the past twenty years, other desktop application types such as WPF, UWP, and now .NET MAUI have come along. So, when would we use WinForms? In this video, I am going ...
thats not what they asked
did you get that from chatgpt or something?
you can use HttpClient to save to a file stream
and then Process.Start to run the exe
thanks, i am looking at a video now
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.