How to Embed a exe file and run it at runtime in C# WPF

Mojtaba_Hakim 281 Reputation points
2021-09-08T16:40:22.97+00:00

I'm using wpf
I have a exe as name AnyDesk.exe I included in my project
I want to merge it AnyDesk.exe in my build

my point is just run my exe of my project and no need the AnyDesk.exe because its embedded into my exe

130303-untitled.png

130342-2323.png

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,525 questions
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,694 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,484 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
778 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 82,326 Reputation points
    2021-09-08T17:36:09.407+00:00

    If it is copied to the output directory, you can just do :

     System.Diagnostics.Process.Start("AnyDesk.exe");
    

    to launch it

    1 person found this answer helpful.
    0 comments No comments