Skip to main content
14-Alexandrite
November 14, 2022
Solved

Run EMS as background job.

  • November 14, 2022
  • 1 reply
  • 2135 views

Hi,

Is it possible to run the EMS (wsems.exe) without any command prompt window.

When we run EMS using wsems.exe file it opens a command prompt window to show the logs, but we want to run EMS without any window. User can check the logs in the log file when ever he/she wants but the command prompt window should not be available for the user to close. 

Best answer by wcui

first, please make sure  there is no service called "EMS" on your windows server, if it exist, run "sc delete EMS" to remove this service.

second, please try starting cmd as Administrator then run  "install.bat -wseme  EMS"  again.

1 reply

16-Pearl
November 17, 2022

wcui_0-1668652486206.png

There is a install_services folder inside each EMS installer. You can use the bat/shell file inside the folder to register EMS as automatic services.

you can refer to below link for more details.

http://support.ptc.com/help/thingworx/edge_microserver/en/#page/c_sdk/c_ems_wsems_installing_distribution_running.html

14-Alexandrite
November 17, 2022

Hi,

 

when i try to do the step 6 of 'Running EMS as a Daemon (Linux) or as a Windows Service', I only see a window flashing for few seconds and it also kills my cmd window. But when I try to run the wsems.exe by simply clicking on it 2 times it works, meaning that there are no errors in my config.json,  but it runs in the foreground not in the background.

16-Pearl
November 17, 2022

did you change into folder "\microserver\install_services" before running install.bat or install.bat shell?