| Prev | Next
Menu: Products - Portfolio - Services - Download - Order - Company

 
Topic #1.1.1.1.
Self-Help
   1.77 to 2.00  
   1.62 to 2.00  
   1.50 to 2.00  
   WH as a Service  
   D3/D4 to D5  
   What to Read  
   Unlock Hub  
   WebHub VCL Help  
   HTML Editors  
   HTML Import Wizard  
   Perf. Testing  
   Newsletter  
   Tech Notes  
*

  

Browsing >>WH as a Service: Tips that apply when you are running applications as NT services

Backing up an EXE when it is running as a Service
These steps enable you to safely backup your Hub (hub.exe) or any other application (e.g. aserver.exe) even though the application is running as an NT service. Do this before upgrading to a new version of the the application.
  1. Copy filename.exe to filename-backup.exe. (Use Copy and Paste, NOT Rename, because upon renaming a service's EXE, Microsoft Windows will change the registry in a non-helpful manner.)
Stopping the Hub when it is running as a service
  • At DOS, type
    net stop "WebHub Central"
    or

  • Run ht\htexe\hub-off.bat
Stopping a Custom WebHub Application when it is running as a service
  1. Go to DOS, and go to the directory containing the EXE.

  2. At DOS, type
    net stop appname
    where appname is the name of your program.

    For example, net stop aserver

Removing an EXE from NT Services
The syntax shown below is for The Hub, hub.exe. For a custom WebHub application, substitute its filename, e.g. aserver.
  1. Stop the service.

  2. Go to DOS, and go to the directory containing hub.exe.

  3. At DOS, run
    hub -remove
    
    That removes the registry entries such that hub.exe is no longer installed as a service.
Upgrading an EXE when it is running as a Service and you want the new version to run in the same directory as the old one
  1. Optional: stop your web server software temporarily.

  2. Stop the program (instructions above).

  3. Delete the program's EXE file. Note that the program will still be installed, even though you have stopped it and deleted the file.

  4. Copy the new program file into the same directory location, keeping the same program name.

  5. Start the program as a service using
    net start appname
    

  6. Restart your web server software.
Upgrading an EXE when it is running as a Service and you want the new version to run from a different directory, e.g. ht\htexe\hub.exe changes to ht\bin\hub.exe
  1. Optional: stop your web server software temporarily.

  2. Stop the program (instructions above).

  3. Remove the program from services by going to DOS, in the directory containing the program, and typing
    appname -remove
    
    For example, to remove the v1.77 Hub:
    c:
    cd \ht\htexe
    net stop "WebHub Central"
    hub -remove
    

  4. If you haven't already, position the new version of the program wherever you intend to keep it, e.g. WebHub Central Version 2 gets copied to ht\bin\hub.exe.

  5. Go to the directory containing the program, and install into NT services, e.g.
    c:
    cd \ht\bin
    hub -install
    

  6. Start your application, e.g.
    c:
    cd \ht\bin
    net start "WebHub Central"
    

  7. Restart your web server software.
The key to making all this work easily and smoothly is to avoid renaming the program while it is installed as a service.

Last updated 30-Nov-2006 Pacific Time


 
Path:  www.href.com to; Services to; Support to; Self-Help to; WH as a Service

Copyright © 1995-2012 HREF Tools Corp. All Rights Reserved Worldwide.
Running: WebHub-v2.167 compiled with d16_win32 on Microsoft-IIS/7.5,
Local Time: Fri, 25 May 2012 11:50:15.
Session 452429792, 63 pages sent to CCBot/1.0 (+http://www.commoncrawl.org/bot.html) at 38.107.179.230;
Time to produce this page: 16msec.