Quick Nav
- Installing the EXE Image
- Removing Ejscript
- Silent Installation
- Running Ejscript
- Running as Windows Application
- Running in the Console
- Running as a Service
See Also
Installing on Windows
The Embedthis Ejscript Server install distribution for Windows is published in one formats
-
a ZIPped EXE Windows Install executable called:
appweb-VERSION-BUILD-WIN-i386.exe.zip
Installing the EXE Image
- Login with administrator privileges.
- Run winzip and extract the contents of the Zipped EXE install image (Ejscript-VERSION-BUILD-WIN-i3886.exe.zip) to a folder of your choosing.
- Select Run from the Start menu and browse to the location holding the EXE install image (Ejscript-VERSION-BUILD-WIN-i386.exe) and select it.
- Click OK.
Removing Ejscript
- Login with administrator privileges<
- Run the Add / Remove Programs applet from the control panel.
- Select the Embedthis Ejscript Server and choose remove.
Silent Installation
If you need to do batch or unattended installations, you can install Ejscript silently. Use the /silent switch to suppress questions and /verysilent to suppress all visual output.Running Ejscript
The Ejscript program may be run manually or it may be configured to start automatically as a windows service. Ejscript is configured by default to listen on port 7777. To test that it is serving pages, point your browser at http://localhost:7777. To tailor the Embedthis Ejscript configuration, including the default port, you may wish to edit the Ejscript.conf configuration file.
Running Ejscript as a Windows Application
To run Ejscript manually you will need to first stop it running a a service. To do this, right click on the Ejscript icon in the system tray (usually bottom left of the screen) and select Stop. Alternatively, select Services from the Administrative Programs group in the system Control panel. Scroll down for Embedthis Ejscript and double click. Then select Stop to stop the Ejscript Service. Once the service is stopped, you can start Ejscript manually.- Display the contents of Programs > Embedthis Ejscript under the Start menu.
- Select Embedthis Ejscript. The application will be started and its icon will appear in the
status area of the Windows taskbar.
Running Ejscript from the Console
- Select Run from the Start menu and type:
c:\Ejscript\Ejscript -l stdout:2
- Click OK<
- A command.com window will appear
- To exit the application, close the window
Running Ejscript as a Windows Service
- Login with administrator privileges.
- Select Run from the Start menu and browse to the Ejscript installation directory and select Ejscript.exe
- Type in the Open field:
{Installation Directory}\Ejscript.exe -c -i "-d -c"This will install Ejscript as a service. When Ejscript is started by the Windows Service Control Manager, it will pass the "-d" switch to Ejscript which instructs it to run as a daemon (service). - Click OK.
- To remove Ejscript as a service, repeat the procedure above but use the uninstall switch -u.
To tailor the Embedthis Ejscript configuration, you may wish to edit the Ejscript.conf configuration file and then restart Ejscript.