Difference between revisions of "Running CTP as a Windows Service"

From MircWiki
Jump to: navigation, search
Line 4: Line 4:
 
The [http://mirc.rsna.org/CTP/CTP-installer.jar CTP installer] program is a self-extracting program that copies all the necessary files into a directory called <b>CTP</b> wherever the user requests it to be created. The installer creates a <b>windows</b> subdirectory containing these files:
 
The [http://mirc.rsna.org/CTP/CTP-installer.jar CTP installer] program is a self-extracting program that copies all the necessary files into a directory called <b>CTP</b> wherever the user requests it to be created. The installer creates a <b>windows</b> subdirectory containing these files:
  
*<b>CTP.exe</b> - the service which is run by the Windows service manager. It launches the CTP.jar program and monitors its operation.
+
*<b>CTP.exe</b> - the service which is run by the Windows service manager. It starts and stops the CTP.jar program.
*<b>CTPw.exe</b> - the properties applet which allows the administrator to adjust the parameters which determine how CTP.jar runs, including the memory pool allocations.
+
*<b>CTPw.exe</b> - the service monitor which allows the administrator to adjust the parameters which determine how CTP.jar runs.
 
*<b>install.bat</b> - the Windows batch job which installs the CTP.exe service and provides a default set of parameters.
 
*<b>install.bat</b> - the Windows batch job which installs the CTP.exe service and provides a default set of parameters.
 
*<b>uninstall.bat</b> - the Windows batch job which uninstalls the CTP.exe service.
 
*<b>uninstall.bat</b> - the Windows batch job which uninstalls the CTP.exe service.
Line 13: Line 13:
 
To install the service:
 
To install the service:
  
# Log into Windows in an account with administrator privileges
+
<ol>
# Launch a command window with administrator privileges
+
<li> Log into Windows in an account with administrator privileges
 +
<li> Launch a command window with administrator privileges
 
::* Click Start
 
::* Click Start
 
::* Type <b><tt>cmd</tt></b>
 
::* Type <b><tt>cmd</tt></b>
 
::* Type <b>Ctrl-Shift-Enter</b>
 
::* Type <b>Ctrl-Shift-Enter</b>
# Navigate to the <b>CTP</b> directory.
+
</ol>
# Enter the command: <b><tt>install.bat</tt></b>
+
<ol start="3">
 +
<li>Navigate to the <b>CTP</b> directory.
 +
<li> Enter the command: <b><tt>install.bat</tt></b>
 +
</ol>

Revision as of 19:23, 4 June 2010

This article describes how to install CTP as a Windows service. It is intended for administrators who want CTP to start automatically when its host computer starts and shut down cleanly when its host computer shuts down. This is the most convenient way to run CTP on a Windows system for applications in which CTP acts a resource for a clinical trial or as a front-end to another system.

1 Background

The CTP installer program is a self-extracting program that copies all the necessary files into a directory called CTP wherever the user requests it to be created. The installer creates a windows subdirectory containing these files:

  • CTP.exe - the service which is run by the Windows service manager. It starts and stops the CTP.jar program.
  • CTPw.exe - the service monitor which allows the administrator to adjust the parameters which determine how CTP.jar runs.
  • install.bat - the Windows batch job which installs the CTP.exe service and provides a default set of parameters.
  • uninstall.bat - the Windows batch job which uninstalls the CTP.exe service.

2 Installing the CTP Service

To install the service:

  1. Log into Windows in an account with administrator privileges
  2. Launch a command window with administrator privileges
    • Click Start
    • Type cmd
    • Type Ctrl-Shift-Enter
  1. Navigate to the CTP directory.
  2. Enter the command: install.bat