2006-10-28 19:45:02 +00:00
|
|
|
/*
|
|
|
|
* config.h
|
|
|
|
*
|
|
|
|
* This file is a part of NSIS.
|
|
|
|
*
|
2009-02-01 14:44:30 +00:00
|
|
|
* Copyright (C) 1999-2009 Nullsoft and Contributors
|
2006-10-28 19:45:02 +00:00
|
|
|
*
|
|
|
|
* Licensed under the zlib/libpng license (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
*
|
|
|
|
* Licence details can be found in the file COPYING.
|
|
|
|
*
|
|
|
|
* This software is provided 'as-is', without any express or implied
|
|
|
|
* warranty.
|
|
|
|
*/
|
|
|
|
|
2002-08-02 10:01:35 +00:00
|
|
|
#ifndef NSIS_CONFIG_H
|
|
|
|
#define NSIS_CONFIG_H
|
|
|
|
|
|
|
|
#ifndef APSTUDIO_INVOKED // keep msdev's resource editor from mangling the .rc file
|
|
|
|
|
2006-02-24 19:10:42 +00:00
|
|
|
#include "sconf.h"
|
|
|
|
|
2002-08-02 10:01:35 +00:00
|
|
|
#ifndef NSIS_CONFIG_VISIBLE_SUPPORT
|
2002-08-21 16:32:42 +00:00
|
|
|
#ifdef NSIS_CONFIG_LICENSEPAGE
|
|
|
|
#undef NSIS_CONFIG_LICENSEPAGE
|
|
|
|
#endif
|
|
|
|
#ifdef NSIS_CONFIG_COMPONENTPAGE
|
|
|
|
#undef NSIS_CONFIG_COMPONENTPAGE
|
|
|
|
#endif
|
|
|
|
#ifdef NSIS_SUPPORT_BGBG
|
|
|
|
#undef NSIS_SUPPORT_BGBG
|
|
|
|
#endif
|
2002-09-18 19:08:53 +00:00
|
|
|
#ifdef NSIS_CONFIG_ENHANCEDUI_SUPPORT
|
2003-09-04 18:25:57 +00:00
|
|
|
#undef NSIS_CONFIG_ENHANCEDUI_SUPPORT
|
2002-09-18 19:08:53 +00:00
|
|
|
#endif
|
2002-08-02 10:01:35 +00:00
|
|
|
#endif
|
|
|
|
|
2002-09-18 18:42:57 +00:00
|
|
|
#ifdef NSIS_CONFIG_ENHANCEDUI_SUPPORT
|
|
|
|
#ifndef NSIS_SUPPORT_HWNDS
|
|
|
|
#define NSIS_SUPPORT_HWNDS
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2003-11-24 14:22:50 +00:00
|
|
|
#ifdef NSIS_CONFIG_LOG_ODS
|
|
|
|
#ifndef NSIS_CONFIG_LOG
|
|
|
|
#error NSIS_CONFIG_LOG_ODS relies on NSIS_CONFIG_LOG, but NSIS_CONFIG_LOG is not defined
|
|
|
|
#endif
|
|
|
|
#endif
|
2002-08-02 10:01:35 +00:00
|
|
|
|
2006-01-27 17:53:00 +00:00
|
|
|
#ifdef NSIS_CONFIG_LOG_STDOUT
|
|
|
|
#ifndef NSIS_CONFIG_LOG
|
|
|
|
#error NSIS_CONFIG_LOG_STDOUT relies on NSIS_CONFIG_LOG, but NSIS_CONFIG_LOG is not defined
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2006-04-05 18:45:03 +00:00
|
|
|
#ifdef NSIS_CONFIG_LOG_TIMESTAMP
|
|
|
|
#ifndef NSIS_CONFIG_LOG
|
|
|
|
#error NSIS_CONFIG_LOG_TIMESTAMP relies on NSIS_CONFIG_LOG, but NSIS_CONFIG_LOG is not defined
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
2002-08-02 10:01:35 +00:00
|
|
|
#if defined(NSIS_CONFIG_CRC_SUPPORT) && defined(NSIS_CONFIG_VISIBLE_SUPPORT)
|
2002-08-21 16:32:42 +00:00
|
|
|
#define _NSIS_CONFIG_VERIFYDIALOG
|
2002-08-02 10:01:35 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(NSIS_CONFIG_UNINSTALL_SUPPORT) && defined(NSIS_CONFIG_VISIBLE_SUPPORT)
|
2002-08-21 16:32:42 +00:00
|
|
|
#define _NSIS_CONFIG_UNINSTDLG
|
2002-08-02 10:01:35 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(NSIS_CONFIG_UNINSTALL_SUPPORT) && defined(NSIS_CONFIG_VISIBLE_SUPPORT)
|
2002-08-21 16:32:42 +00:00
|
|
|
#define _NSIS_CONFIG_UNINSTDLG
|
2002-08-02 10:01:35 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef EXEHEAD
|
|
|
|
#ifdef NSIS_CONFIG_COMPRESSION_SUPPORT
|
|
|
|
#ifndef NSIS_COMPRESS_USE_ZLIB
|
|
|
|
#ifndef NSIS_COMPRESS_USE_BZIP2
|
2003-11-24 00:08:58 +00:00
|
|
|
#ifndef NSIS_COMPRESS_USE_LZMA
|
|
|
|
#error compression is enabled but zlib, bzip2 and lzma are disabled.
|
|
|
|
#endif
|
2002-08-02 10:01:35 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef NSIS_COMPRESS_USE_ZLIB
|
|
|
|
#ifdef NSIS_COMPRESS_USE_BZIP2
|
|
|
|
#error both zlib and bzip2 are enabled.
|
|
|
|
#endif
|
2003-11-24 00:08:58 +00:00
|
|
|
#ifdef NSIS_COMPRESS_USE_LZMA
|
|
|
|
#error both zlib and lzma are enabled.
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#ifdef NSIS_COMPRESS_USE_BZIP2
|
|
|
|
#ifdef NSIS_COMPRESS_USE_LZMA
|
|
|
|
#error both bzip2 and lzma are enabled.
|
|
|
|
#endif
|
2002-08-02 10:01:35 +00:00
|
|
|
#endif
|
|
|
|
|
2002-09-18 21:21:50 +00:00
|
|
|
#ifdef NSIS_CONFIG_COMPRESSION_SUPPORT
|
2003-11-24 00:08:58 +00:00
|
|
|
#ifdef NSIS_COMPRESS_WHOLE
|
|
|
|
#ifdef NSIS_CONFIG_VISIBLE_SUPPORT
|
|
|
|
#ifndef _NSIS_CONFIG_VERIFYDIALOG
|
|
|
|
#define _NSIS_CONFIG_VERIFYDIALOG
|
2002-08-21 16:32:42 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
2002-08-02 10:01:35 +00:00
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif // EXEHEAD
|
|
|
|
|
|
|
|
#ifdef NSIS_COMPRESS_WHOLE
|
|
|
|
#ifndef NSIS_CONFIG_COMPRESSION_SUPPORT
|
|
|
|
#error NSIS_COMPRESS_WHOLE defined, NSIS_CONFIG_COMPRESSION_SUPPORT not
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef NSIS_CONFIG_CRC_ANAL
|
|
|
|
#ifndef NSIS_CONFIG_CRC_SUPPORT
|
|
|
|
#error NSIS_CONFIG_CRC_ANAL defined but NSIS_CONFIG_CRC_SUPPORT not
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef NSIS_COMPRESS_BZIP2_LEVEL
|
|
|
|
#define NSIS_COMPRESS_BZIP2_LEVEL 9
|
|
|
|
#endif
|
|
|
|
|
2002-08-09 14:21:45 +00:00
|
|
|
#ifdef NSIS_CONFIG_PLUGIN_SUPPORT
|
|
|
|
#ifndef NSIS_SUPPORT_RMDIR
|
|
|
|
#error NSIS_CONFIG_PLUGIN_SUPPORT relies on NSIS_SUPPORT_RMDIR, but NSIS_SUPPORT_RMDIR is not defined
|
|
|
|
#endif
|
|
|
|
#ifndef NSIS_SUPPORT_FILE
|
|
|
|
#error NSIS_CONFIG_PLUGIN_SUPPORT relies on NSIS_SUPPORT_FILE, but NSIS_SUPPORT_FILE is not defined
|
|
|
|
#endif
|
|
|
|
#ifndef NSIS_SUPPORT_ACTIVEXREG
|
|
|
|
#error NSIS_CONFIG_PLUGIN_SUPPORT relies on NSIS_SUPPORT_ACTIVEXREG, but NSIS_SUPPORT_ACTIVEXREG is not defined
|
|
|
|
#endif
|
|
|
|
#ifndef NSIS_SUPPORT_STACK
|
|
|
|
#error NSIS_CONFIG_PLUGIN_SUPPORT relies on NSIS_SUPPORT_STACK, but NSIS_SUPPORT_STACK is not defined
|
|
|
|
#endif
|
2002-12-07 13:59:17 +00:00
|
|
|
#ifndef NSIS_SUPPORT_FNUTIL
|
|
|
|
#error NSIS_CONFIG_PLUGIN_SUPPORT relies on NSIS_SUPPORT_FNUTIL, but NSIS_SUPPORT_FNUTIL is not defined
|
|
|
|
#endif
|
2004-07-06 23:43:14 +00:00
|
|
|
#ifndef NSIS_SUPPORT_DELETE
|
|
|
|
#error NSIS_CONFIG_PLUGIN_SUPPORT relies on NSIS_SUPPORT_DELETE, but NSIS_SUPPORT_DELETE is not defined
|
|
|
|
#endif
|
|
|
|
#ifndef NSIS_SUPPORT_MESSAGEBOX
|
|
|
|
#error NSIS_CONFIG_PLUGIN_SUPPORT relies on NSIS_SUPPORT_MESSAGEBOX, but NSIS_SUPPORT_MESSAGEBOX is not defined
|
|
|
|
#endif
|
2002-08-09 14:21:45 +00:00
|
|
|
#endif
|
|
|
|
|
2003-05-24 13:50:24 +00:00
|
|
|
#if NSIS_MAX_INST_TYPES > 32
|
|
|
|
#error NSIS_MAX_INST_TYPES > 32
|
2002-08-02 10:01:35 +00:00
|
|
|
#endif
|
|
|
|
|
2003-09-04 18:25:57 +00:00
|
|
|
#ifndef NSIS_DEFAULT_LANG
|
|
|
|
#define NSIS_DEFAULT_LANG 1033
|
|
|
|
#endif
|
|
|
|
|
2002-08-02 10:01:35 +00:00
|
|
|
#endif//!APSTUDIO_INVOKED
|
|
|
|
|
|
|
|
#endif // NSIS_CONFIG_H
|