Language Reference - Appendix 

Setting Up Web Server as a Windows Service

 

The PxPlus Web Server can be installed as a Windows Service using one of the following three methods:

Method 1:

From the PxPlus IDE Main Launcher:

Expand the Installation and Setup category and select Install Windows Services to launch the Install Windows Services window.

From the Type of Service drop box, select PxPlus Web Server.

After entering the service settings in the grid, select the Install button.

Method 2:

From the Command line:

Enter "*plus/web/service" to install (or uninstall) the Web Server.

Method 3:

Run the following code:

0010 LET COMMAND$=QUO+ARG(0)+QUO
0020 LET COMMAND$+=" -i"
0030 LET COMMAND$+=" PvxWeb"
0040 LET COMMAND$+=" 'Pvx Web Server'"
0050 LET COMMAND$+=" 2" ! Manual start (1 = Autostart)
0060 OPEN (1)"*web"
0070 LET COMMAND$+=" '"+PTH(1)+"'" ! Web directory
0080 CLOSE (1)
0090 LET COMMAND$+=" 'webhide.ini webserv'"
0100 LET COMMAND$+=" 'The PxPlus web server'"
0110 ! 
0120 INVOKE CONTROL COMMAND$

Copy and paste the above lines into a PxPlus session and enter "RUN" to execute them.

To remove the service from the system, execute the following program:

0010 LET COMMAND$=QUO+ARG(0)+QUO
0020 LET COMMAND$+=" -u"
0030 LET COMMAND$+=" PvxWeb"
0040 !
0050 INVOKE CONTROL COMMAND$

Copy and paste the above lines into a PxPlus session and enter "RUN" to execute them.

When installed, the service will default to Manual start. To have the service start automatically when the system is booted, you will need to go to your Windows Control Panel and change the start_up setting to Automatic.