Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There are a couple alternatives for installing as a service virtually any Windows executable.</p> <h2>Method 1: Use instsrv and srvany from rktools.exe</h2> <p>For Windows Home Server or Windows Server 2003 (works with WinXP too), the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=9D467A69-57FF-4AE7-96EE-B18C4790CFFD&amp;displaylang=en" rel="nofollow noreferrer">Windows Server 2003 Resource Kit Tools</a> comes with utilities that can be used in tandem for this, called <strong>instsrv.exe</strong> and <strong>srvany.exe</strong>. See this Microsoft KB article <a href="http://support.microsoft.com/kb/137890" rel="nofollow noreferrer">KB137890</a> for details on how to use these utils. </p> <p>For Windows Home Server, there is a great user friendly wrapper for these utilities named aptly "<a href="http://forum.wegotserved.com/index.php?autocom=downloads&amp;showfile=7" rel="nofollow noreferrer">Any Service Installer</a>". </p> <h2>Method 2: Use ServiceInstaller for Windows NT</h2> <p>There is another alternative using <a href="http://www.kcmultimedia.com/smaster/" rel="nofollow noreferrer">ServiceInstaller for Windows NT</a> (<a href="http://www.kcmultimedia.com/smaster/download.html" rel="nofollow noreferrer">download-able here</a>) with <a href="http://conort.googlepages.com/runanywindowsapplicationasntservice" rel="nofollow noreferrer">python instructions available</a>. Contrary to the name, it works with both Windows 2000 and Windows XP as well. Here are some instructions for how to install a python script as a service.</p> <blockquote> <p><strong>Installing a Python script</strong></p> <p>Run ServiceInstaller to create a new service. (In this example, it is assumed that python is installed at c:\python25)</p> <pre><code>Service Name : PythonTest Display Name : PythonTest Startup : Manual (or whatever you like) Dependencies : (Leave blank or fill to fit your needs) Executable : c:\python25\python.exe Arguments : c:\path_to_your_python_script\test.py Working Directory : c:\path_to_your_python_script </code></pre> <p>After installing, open the Control Panel's Services applet, select and start the PythonTest service.</p> </blockquote> <p>After my initial answer, I noticed there were closely related Q&amp;A already posted on SO. See also:</p> <p><a href="https://stackoverflow.com/questions/32404/can-i-run-a-python-script-as-a-service-in-windows-how">Can I run a Python script as a service (in Windows)? How?</a></p> <p><a href="https://stackoverflow.com/questions/34328/how-do-i-make-windows-aware-of-a-service-i-have-written-in-python">How do I make Windows aware of a service I have written in Python?</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload