18.01.2015 Views

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

Technical Reference Manual - InduSoft

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Creating a New Project<br />

Password<br />

Startup Type<br />

Action pane<br />

Note: Try to avoid running the service under Local System. That account has too<br />

much privilege to the file system and too little privilege to run the OPC Client and<br />

Server modules properly. The best alternative is to create a user solely to run IWS<br />

and configure its privileges to fit the needs of your project. For more about this,<br />

see "Configuring User Privileges" below.<br />

The password for the specified user account. This is an optional setting; it is not needed if no<br />

user is specified or if the specified user does not have a password.<br />

How the Windows service will start. The following options are available:<br />

• Automatic: The service will start automatically when the computer starts up.<br />

• <strong>Manual</strong>: The service can be started manually in the Computer Management console or by<br />

clicking Start, as described below.<br />

• Disabled: The service will be created and then disabled. It cannot run until a user with<br />

Administrator privileges enables it in the Computer Management console.<br />

Start or stop the service. Please note that these buttons are not enabled until the service is<br />

actually created.<br />

Creating a New Service<br />

To create a new service:<br />

1. Next to the Project box, click … to open a standard Windows file browser. Use the browser to find and select<br />

your project file.<br />

2. In the User and Password boxes, type the username and password (if any) for the Windows user account<br />

under which the service will run.<br />

3. Select a Startup Type.<br />

4. Click Apply. The service is created with the specified settings.<br />

After the service has been created, it will appear in the Services console (Start > Control Panel > System and Security<br />

> Administrative Tools > Services) under the name "<strong>InduSoft</strong> Web Studio". You can use that console to quickly stop<br />

and restart the service, if you do not want to run the IWS development application.<br />

Command-line Utility<br />

You can also configure the service by using the command-line utility, StdSvcInst.exe. It offers a few more<br />

options than the Service Configuration tool described above — such as specifying a name and description for<br />

the service — and it can be used without running the IWS development application. The utility is located in<br />

the Bin folder of your IWS program directory. To run the utility, open a command prompt, navigate to the Bin<br />

folder (C:\Program Files\<strong>InduSoft</strong> Web Studio v7.1\Bin), and then enter the command with the desired<br />

parameters.<br />

The utility has the following command syntax:<br />

StdSvcInst { -create -app filepath -startup { auto | manual | disabled } -user username<br />

-password password -name displayname -descr description | -start | -stop | -delete }<br />

-create<br />

-app filepath<br />

Creates the Windows service.<br />

Specifies which project file (projectname.app) the service will load and run when it is started.<br />

(This is the same as the Project box in the Service Configuration dialog.) You must include the<br />

complete file path, and it must be enclosed in quotes.<br />

Page 104<br />

<strong>InduSoft</strong> Web Studio

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!