README revision 3906
119N/A/*
119N/A * CDDL HEADER START
119N/A *
119N/A * The contents of this file are subject to the terms of the
119N/A * Common Development and Distribution License, Version 1.0 only
119N/A * (the "License"). You may not use this file except in compliance
119N/A * with the License.
119N/A *
119N/A * You can obtain a copy of the license at
119N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE
119N/A * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
119N/A * See the License for the specific language governing permissions
119N/A * and limitations under the License.
119N/A *
119N/A * When distributing Covered Code, include this CDDL HEADER in each
119N/A * file and include the License file at
119N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
119N/A * add the following below this CDDL HEADER, with the fields enclosed
119N/A * by brackets "[]" replaced with your own identifying information:
119N/A * Portions Copyright [yyyy] [name of copyright owner]
119N/A *
119N/A * CDDL HEADER END
5356N/A *
119N/A *
5841N/A * Copyright 2008 Sun Microsystems, Inc.
119N/A */
119N/A
1244N/A WHAT is winlauncher.exe
119N/A ========================
618N/Awinlauncher.exe is a small windows executable that is intended to be used by
1244N/Athe command line files to perform certain operations. It is not intended to
844N/Abe a final user interface and that is one of the reasons why is placed under
844N/Athe lib subdirectory.
618N/A
1258N/ASee the comments in winlauncher.c file and common.c for more information.
119N/A
2899N/A WHAT is opends_service.exe
2899N/A ========================
5680N/Aopends_service.exe is a small windows executable that is intended to be used by
5680N/Athe command line files to be able to run OpenDS as a windows service (or not
119N/Ato configure it as windows service). It is not intended to be a final user
5715N/Ainterface and that is one of the reasons why is placed under the lib
5715N/Asubdirectory.
5715N/A
5715N/ASee the comments in service.c file and common.c for more information.
7292N/A
7292N/A WHAT is launcher_administrator.exe
5841N/A ========================
5841N/Alauncher_administrator.exe is a small windows executable that is intended to
5841N/Abe used by the command line files to launch operations that require
5841N/Aadministrator privileges on Vista. Basically is a wrapper containing a
5841N/Amanifest that specifies to require administrator privileges to be run. This
119N/Ais required if UAC is enabled on Vista so that we have a prompt for the user
119N/Aasking for confirmation.
119N/A
1940N/ASee the comments in winlauncher.c file and common.c for more information.
1940N/A
1940N/A INSTRUCTIONS TO COMPILE winlauncher.exe
3817N/A ========================
Using Visual C++ and the command line you must set your environment
variables to point to your Visual Studio install. You can set the environment
variables by changing to the \bin subdirectory of your Visual C++ installation
and running the VCVARS32.bat batch file.
This will basically update your PATH, INCLUDE and LIB environment variables
to point to the correct paths of your Visual Studio install.
Go to the directory where the source files winlauncher.c, winlauncher.h,
common.c and common.h are and launch the following command:
> cl winlauncher.c common.c
This will generate the binary winlauncher.exe.
NOTE: An alternative to this mode is to compile winlauncher.exe using the
Makefile by running:
> nmake all
(See INSTRUCTIONS TO COMPILE opends_service.exe for more information).
************************
Using Visual C++ graphical interface you just must to Create a Project and add
winlauncher.c, winlauncher.h, common.c and common.h to the project.
You can build winlauncher.c and then winlauncher.exe with the commands in the
menu 'Build'.
************************
Using gcc (for instance you can get it with the open source project MinGW -
Minimalist GNU for Windows), you must include the directory where the gcc
binaries are on your PATH environment variable.
Go to the directory where the source files winlauncher.c and winlauncher.h are
and launch the following command:
> gcc common.c winlauncher.c -o winlauncher.exe
This will generate the binary winlauncher.exe.
INSTRUCTIONS TO COMPILE opends_service.exe and administrator_launcher.exe
========================
service.c (the main code file for opends_service.exe) uses windows resources and
so it requires Windows libraries to be compiled.
The fastest way of generating opends_service.exe is to do it using the command
line.
Using Visual C++ and the command line you must set your environment
variables to point to your Visual Studio install. You can set the environment
variables by changing to the \bin subdirectory of your Visual C++ installation
and running the VCVARS32.bat batch file.
Then go to the directory where the source files are and run the following
command:
> nmake all
This command will generate both opends_service.exe and winlauncher.exe.
See the comments in the file Makefile for more information.