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

Mojtaba_Hakim 281 Reputation points

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



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

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


    to launch it

    1 person found this answer helpful.
    0 comments No comments