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

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



.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
505 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,372 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.
8,205 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.
644 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Castorix31 71,716 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