在WIN2000 中如何註冊一個新的系統服務?

請參考NI的官方資料:

  1. Creating a Windows NT Service Using LabVIEW

也可以請參考微軟的支援網站:

  1. 使用登錄項目 (.reg) 檔案新增、修改或刪除登錄子機碼和登錄值
  2. 如何:建立使用者自訂服務

在操作時會使用到的兩個檔案:

  1. instsrv.rar
  2. srvany.rar

重點是以下的說明:

  1. Copy the files instsrv.exe and srvany.exe from the Windows NT Resource Kit into the same folder as CookieService.exe.
  2. Open a command prompt and navigate to the directory containing CookieService.exe.
  3. Type the command INSTSRV CookieService c:\<path>\srvany.exe. Replace <path> with the full path to the srvany.exe application.This creates a new service called CookieService and links it to the srvany.exe application.
  4. Select Start»Run to start the application regedit.
  5. Navigate to the key HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ CookieService.
  6. Right click the CookieService entry and select New»Key.
  7. Set the key name to Parameters.
  8. Right click the Parameters folder and select New»String from the shortcut menu.
  9. Type the name Application.
  10. Double click the Application string to open the Editing dialog box.
  11. Type the full path to the CookieService.exe application and click OK.