What's going wrong?
There seems to be no way to run a windows process with no command window or a silent window. This results in lots of windows popping up and flickering when using PM2 to support an application with a UI. I also tried setting my electron ui window to top most but that does not resolve the problem completely
Can this be resolved?
Is there a workaround?
Is there a config setting I may not know about?
Great if this could work on Windows and Linux.
I may have to create a vbs file , powershell script or a small c++ or C# application to execute the out of process command or batch execution to put the proper windows api silent command parameters but not sure what unintended consequences that would have. was hoping to use something integrated with PM2 as a parameter
vbs example
https://www.winhelponline.com/blog/run-bat-files-invisibly-without-displaying-command-prompt/
C++
https://www.codeproject.com/Articles/2537/Running-console-applications-silently
c#
proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
powershell
https://superuser.com/questions/1331143/how-to-run-a-powershell-command-silently
powershell -windowstyle hidden -command
How could we reproduce this issue?
Run any process using PM2
Supporting information
What's going wrong?
There seems to be no way to run a windows process with no command window or a silent window. This results in lots of windows popping up and flickering when using PM2 to support an application with a UI. I also tried setting my electron ui window to top most but that does not resolve the problem completely
Can this be resolved?
Is there a workaround?
Is there a config setting I may not know about?
Great if this could work on Windows and Linux.
I may have to create a vbs file , powershell script or a small c++ or C# application to execute the out of process command or batch execution to put the proper windows api silent command parameters but not sure what unintended consequences that would have. was hoping to use something integrated with PM2 as a parameter
vbs example
https://www.winhelponline.com/blog/run-bat-files-invisibly-without-displaying-command-prompt/
C++
https://www.codeproject.com/Articles/2537/Running-console-applications-silently
c#
proc.StartInfo.CreateNoWindow = true;
proc.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
powershell
https://superuser.com/questions/1331143/how-to-run-a-powershell-command-silently
powershell -windowstyle hidden -command
How could we reproduce this issue?
Run any process using PM2
Supporting information