README revision 797b7557ad71a61ffb72a68f4457a3d999e7e252
2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License, Version 1.0 only
2N/A * (the "License"). You may not use this file except in compliance
2N/A * with the License.
2N/A *
2N/A * You can obtain a copy of the license at
2N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE
2N/A * or https://OpenDS.dev.java.net/OpenDS.LICENSE.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at
2N/A * trunk/opends/resource/legal-notices/OpenDS.LICENSE. If applicable,
2N/A * add the following below this CDDL HEADER, with the fields enclosed
2N/A * by brackets "[]" replaced with your own identifying information:
2N/A * Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A *
2N/A *
2N/A * Portions Copyright 2007 Sun Microsystems, Inc.
*/
WHAT is winlauncher.exe
========================
winlauncher.exe is a small windows executable that is intended to be used by
the command line files to perform certain operations. It is not intended to
be a final user interface and that is one of the reasons why is placed under
the lib subdirectory.
See the comments in winlauncher.c file and common.c for more information.
WHAT is opends_service.exe
========================
opends_service.exe is a small windows executable that is intended to be used by
the command line files to be able to run OpenDS as a windows service (or not
to configure it as windows service). It is not intended to be a final user
interface and that is one of the reasons why is placed under the lib
subdirectory.
See the comments in service.c file and common.c for more information.
WHAT is launcher_administrator.exe
========================
launcher_administrator.exe is a small windows executable that is intended to
be used by the command line files to launch operations that require
administrator privileges on Vista. Basically is a wrapper containing a
manifest that specifies to require administrator privileges to be run. This
is required if UAC is enabled on Vista so that we have a prompt for the user
asking for confirmation.
See the comments in winlauncher.c file and common.c for more information.
INSTRUCTIONS TO COMPILE winlauncher.exe
========================
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
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.