如何让一个NT服务程序运行后自动安装(40分)

  • 主题发起人 主题发起人 AI_Player
  • 开始时间 开始时间
A

AI_Player

Unregistered / Unconfirmed
GUEST, unregistred user!
用向导做出来的服务程序必须要先install再net start才能运行<br>如何直接双击程序,程序就自己安装或是以应用程序的模式运行<br>
 
老兄,我这有个ASTA提供的自动安装软件成服务的程序,说明见下,觉得有用的话,留EMAIL,<br>我给你发过来.<br><br>ASTA Services as NT Service<br>Many ASTA users have implemented their ASTA Servers as NT Services. Since ASTA now suports<br>16 3rd party Delphi Components, extending that support to NT Service version could be a bit<br>challenging.<br><br>So we at ASTA decided to create an Application (AstaServerLauncher) that could launch and<br>bounce back ASTA Servers if they go down AND to deliver an NT Service Version of<br>the same executable that would use the registry settings created by running it one time<br>as an normal EXE.<br><br>By supporting the One App as a service, we have enabled ALL AstaServers to run as an NT<br>Service.<br><br>=====================================================================================<br>AstaServerLauncher:<br>&nbsp;designed to launch ASTA servers and bounce them back if they go down.<br>&nbsp;Configure it to run one or more ASTA servers and any settings used will<br>&nbsp;be used by the AstaServiceLauncherNTS which it reads from the registry.<br><br>AstaServerLauncher NTS- NT Service Version of AstaServerLauncher<br><br>This does not have a user interface, it is run as a service and reads<br>the registry to tell which programs to start. &nbsp;Use the<br>AstaServiceLauncher to setup the Registry configuration.<br><br>To install it as a service run the program with the command line<br>parameter of /Install. &nbsp;(You can create a shortcut to use for this by<br>editing the shortcuts "Target" property and adding /Install to it)<br>(/Uninstall does the reverse)<br><br>Then in control panel, open up Services. &nbsp;Look for AstaServiceLauncherNTS<br>Double click it. &nbsp;Set it to manual or automatic start. &nbsp; &nbsp;Click on Allow<br>Service to Interact with desktop so that it is checked. &nbsp; (You can also<br>set it to run in its own session by selecting a particular account with<br>This Account radion button). &nbsp;Press OK.<br><br>You can start the service manually. &nbsp;Once started it will read the<br>registry and startup any programs that need AutoStarted. &nbsp; Then it will<br>keep those programs alive if they are set to AutoReStart.<br><br><br>
 
一堆E文,看不懂
 
接受答案了.
 
后退
顶部