I have executables written in C#. I want to try this situation on my windows service. Normally we started the executable in our program using the code below:
Process process = new Process();
process.StartInfo.FileName = applicationpathandname.exe;
process.Start();
I want to compare my executable for sign or password before i start it. If the sign or password doesn't match it should exit the main program in the Windows service. So my pseudocode would be like this:
*/load exe
*/compare sign or password of my assembly
*/if match start exe
*/else exit main program
In effect, I have two questions:
- Can I sign or password protect any executable or assembly?
- Can I reach that sign or password executable in my other C# program?