Monday, August 06, 2007

Creating Windows Services(VS2005)

1. By default, a Windows Service project is missing an installer. From a service design view, right click select “Add Installer”.
2. By default, the ServiceProcessInstaller component is configured to use a “User” account, change it to either “LocalService” or “LocalSystem” depending on security concerns.
3. By default, a setup project does not invoke the custom installers contained within assemblies added to it. From the setup project’s Custom Actions Editor, right click select “Add Custom Action…” and select the primary output from the service application.
4. When having difficulties, use the installutil tool to obtain detailed installation progress logging output.

No comments: