Sunday, May 25, 2014

C# - Embedded exe and dll's

Hello


I have an app that has another program embedded within it with some DLL's.



string path = Path.GetTempPath() + "appProg.exe";
File.WriteAllBytes(path, _1stCavDiv_Launcher.Properties.Resources._appProg);
Process.Start(path);



Issue is, the exe wont work unless the DLL's are in the same folder as it - Any one know how I can extract the embedded files in the same tem folder?

No comments:

Post a Comment