omron — Running a Project Under Windows Services

Creating a New Project Running a Project Under Windows Services Your IWS project can be configured to run under Windows services. Microsoft Windows services, formerly known as NT services, allow you to create long-running programs that run in their own Windows sessions. These sessions can be automatically started when the computer boots, can be paused and restarted, and do not show any user interface. These features make services ideal for use on a server or whenever you need long-running functionality that does not interfere with other users who are working on the same computer.

You can also run services in the security context of a specific user account that is different from the logged-on user or the default computer account. For more information about services, please refer to the Microsoft Developer Network (MSDN) Library . Why would you want to run your project under Windows services? • To ensure that your project always runs with whatever system privileges it needs, regardless of the privileges of the user that is currently logged on to Windows; • To prevent the user from interfering with your project while it is running; or • To let your project keep running when there is no user logged on at all. Creating and Configuring the Windows Service Note:

All of the procedures described below were tested using Microsoft Windows XP Service Pack 3. Also, to perform these actions, you must be logged on as a user with administrative privileges and you should know how to use the Computer Management console. (To access the console, right-click the My Computer icon and choose Manage from the shortcut menu.) There are two ways to create and configure the Windows service for your project: you can use the Service Configuration tool in IWS itself, or you can use the command-line utility that is installed with IWS.

Service Configuration Tool You can configure and run a new service from within the development application by clicking Service on the Project tab of the ribbon. This opens the Service Configuration dialog: Service Configuration dialog Project box The location of the project file ( project_name .app ) that the service will load and run when it is started. This must be a complete file path. User box The Windows user account under which the service will run. This is an optional setting; if it's not used, then the service will run under Local System. Note: Try to avoid running the service under Local System.

That account has too much privilege to the file system and too little privilege to run the OPC Client and Server modules properly. The best alternative is to create a user Page 98 InduSoft Web Studio