Hi all,
I had plans to release a launcher project with some excellent features, unfortunately it seems like I am taking a long time just making a tutorial how to run it, as it needs a web server and the code contains many optional features.
So, I decided that I'll release this for the moment since many developers need this piece of code.
please if you port this to another project .. nah nah ... it's not credits xD
just make sure that you have to get administrator rights in order to run this, so it would be a good idea to go to your manifest file and switch the level to [requireAdministrator]
the projects has 2 classes and the code is explained in details (sorry for those who hate too much information)
so basically what happens when the sframe is launched:
- the sframe checks the value of the EnvironmentVariables XXX_RUNNER (where *** is your Sframe.exe name)
- the sframe deals with this value as a value of an EventHandler and tries to signal it
- if the sframe fails, the message you have to run the sframe using the launcher appears
so the project is about creating an EventHandler, and passing its value to the sframe, the sframe then will signal it and be happy.
Note: you have to run the Sframe as a child process of the launcher to be able to send EnvironmentVariables ..
Note: everything about how the sframe works has been explained by glandu , I don't think I was going to be able to discover this alone, so thanks glandu
the C# project is attached.
I hope it will help.
Peace