omron — Running a Project Under Windows Services

Creating a New Project 3. Open a command prompt. 4. Navigate to the Bin directory. 5. Enter the command — for example, to set NTDemo as the project file: Example: Deleting the Service StdSvcInst –app "C:\Program Files\InduSoft Web Studio v7.0\Demos\NTDemo\NTDemo.app" To delete the service: 1. Make sure you're logged in as a user with administrative privileges. 2. Stop the service if it is running. 3. Open a command prompt. 4. Navigate to the Bin directory. 5. Enter the command:

StdSvcInst –delete Configuring User Privileges The service will run under the privileges of the user account specified in the User field of the Service Configuration tool (or by the -user switch of the command-line utility). If IWS needs some system resource to which that account doesn't have privileges, it will fail. Therefore, you must configure the account to have the necessary privileges. Note: The following actions can be performed only by a user with full administrator privileges. Enabling the User Account to Log On as a Service Before anything else, the specified user account must be enabled to log on to the computer as a service. To enable the account: 1.

Open the Local Security Settings console ( Start > Control Panel > Administrative Tools > Local Security Policy ). 2. In the console window, select the folder "Security Settings\Local Policies\User Rights Assignment". 3. In the list of available policies, double-click Log on as a service . Selecting the "Log on as a service" policy The Log on as a service properties page is displayed. 4. Click Add User or Group . The Select Users or Groups dialog is displayed. 5. Type the name of the user account under which you want the service to run. 6. Click OK .

Giving the User Account Full Control Over the Program Directory For your IWS project to run properly, the specified user account must have full control over the program directory and all of the files in it. To give the account those privileges: InduSoft Web Studio Page 101