John Riker

John Riker

  • NA
  • 85
  • 16.1k

Embed .exe files?

Dec 13 2020 11:22 AM
I have a program I am writing and it makes calls like 
 
  1. System.Diagnostics.Process videoprocess = new System.Diagnostics.Process();  
  2.   System.Diagnostics.ProcessStartInfo videostartInfo = new  
  3.   System.Diagnostics.ProcessStartInfo  
  4.   {  
  5.       WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden,  
  6.       FileName = "cmd.exe",  
 ....
 
But then it calls a third party exe file that I have sitting in a temp folder.  It's not something I built or compiled or is even C# based.  Is there a way to package in Visual Studio 2019 other files that I use rather than having to remember to install them somewhere when I am done writing the program and move it to another computer?
 
Also note this particular program in general the exe sits in a folder when extracted called bin.  It also has a utils folder with Python files in it and the executables apparently  assume the python files are in a utils folder at the same level of the bin folder when it looks for it.  Plus apparently I need to have Python in the path for the computer this program is running on.  Not sure if that's relevant but in case there is a way to have all this just work would be great.   

Answers (1)