How to run external executable within BVMS SDK scriplet?
For more details about how to execute scriplets in the BVMS SDK, please check:
External processes can be started within server scriptlets. Check details on C# System.Diagnostics, Process Class.
System.Diagnostics.Process.Start("C:
temp
executable.exe");
Limitation to keep in mind is that when they have some UI, this is never shown and there is no user interaction possible, because they are running under the 'Local System' account. The reason is that Windows services can't start applications with UI and this is one Windows security design rule.
Further explanation for the above Limitation
The CentralServer which executes ServerScripts is running as Windows service under the 'Local System' account. Windows services are prohibited from interacting with a user or the desktop.
When a ServerScript starts further processes, they will be started, but they are child processes and they derive all properties from the parent process. That includes the user context, all security attributes and limitations as well. In this case, the new created child process is prohibited from interacting with a user or the desktop.