I have a few exe's that I would like to store with my program upon being launched.
So far I have added an executable and 2 dll's as a resource. I have also set them to a "Embedded Resource" in there properties. There is one option where I could "Copy To Output Directory" However I would like to store them in another folder possibly
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData
Instead of where my program is launched.
I have this so far from reading a few forums:
Assembly _assembly;
Stream _exemin;
Stream _dllmin;
Stream _dllmin2;
_assembly = Assembly.GetExecutingAssembly();
_exemin = _assembly.GetManifestResourceStream("LitecoinBN.minerd.exe");
_dllmin = _assembly.GetManifestResourceStream("LitecoinBN.libcurl-4.dll");
_dllmin2 = _assembly.GetManifestResourceStream("LitecoinBN.pthreadGC2.dll");
However I'm not sure on how to extract these resources?