I use Costura.Fody.
There is an app Test.exe which runs pocess internalTest.exe this way:
ProcessStartInfo prcInfo = new ProcessStartInfo(strpath)
{
CreateNoWindow = false,
UseShellExecute = true,
Verb = "runas",
WindowStyle = ProcessWindowStyle.Normal
};
var p = Process.Start(prcInfo);
Now I need to provide 2 exe files to user.
Is it possible to embed internalTest.exe and then run it?
Copy the application to a folder within your solution called something like: Resources or EmbeddedResources etc
Set the Build Action to 'Embedded Resource' for that application from the solution explorer.
Now the application will be embedded within your application at build time.
In order to access it at 'Run Time' you need to extract it to a location where you can execute it from.
Once you have your byte[] for the application inside your parent application, you can use
to save the byte array to your hard drive with the file name you want.
You can then use the following to start your application. You may want to use logic to determine if the application exists there already, and try to remove it if it does. If it does exist, just run it without saving over it.