在Delphi里面写好了NT服务的程序后,通过Run->Parameters里面加上/install参数后可以把服务程序把服务安装到本机上。但是应该怎样把这个NT服务程序打包,然后拿到其他机器上去安装使用呢?

解决方案 »

  1.   

    1.执行cmd:regsvr32  
    2.SC_HANDLE CreateService(    SC_HANDLE hSCManager, // handle to service control manager database  
        LPCTSTR lpServiceName, // pointer to name of service to start 
        LPCTSTR lpDisplayName, // pointer to display name 
        DWORD dwDesiredAccess, // type of access to service 
        DWORD dwServiceType, // type of service 
        DWORD dwStartType, // when to start service 
        DWORD dwErrorControl, // severity if service fails to start 
        LPCTSTR lpBinaryPathName, // pointer to name of binary file 
        LPCTSTR lpLoadOrderGroup, // pointer to name of load ordering group 
        LPDWORD lpdwTagId, // pointer to variable to get tag identifier 
        LPCTSTR lpDependencies, // pointer to array of dependency names 
        LPCTSTR lpServiceStartName, // pointer to account name of service 
        LPCTSTR lpPassword  // pointer to password for service account 
       );
      

  2.   

    To: wweijie(我是一只小小小小鸟) 用Delphi6自带的InstallShield Express可以吗?
      

  3.   

    look!  http://218.56.11.178:8020/web/technology.aspx1。->利用WISE工具捕获注册表信息 //捕获一下注册信息2。应用程序打包问题的解决方案   //打包3。工具:下载基地-》实用工具-》Wise Installation System - Professional Edition