home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 January / Chip_2001-01_cd1.bin / tema / interb / InterBase_WI-V6.0-server.exe / server / SDK / include / IBInstall.pas < prev    next >
Pascal/Delphi Source File  |  2000-06-23  |  8KB  |  217 lines

  1. {******************************************************}
  2. {                                                      }
  3. {  ibinstall.pas                                       }
  4. {                                                      }
  5. {  Description:                                        }
  6. {          InterBase Install API definitions        }
  7. {                                                      }
  8. {  Copyright (c) InterBase Software Corporation, 1999  }
  9. {                                                      }
  10. {******************************************************}
  11.  
  12. unit IBInstall;
  13.  
  14. interface
  15.  
  16. uses
  17.   Windows;
  18.  
  19. type
  20.   OPTIONS_HANDLE = Integer;
  21.   POPTIONS_HANDLE = ^OPTIONS_HANDLE;
  22.   MSG_NO = Longint;
  23.   OPT = Longint;
  24.   TEXT = PChar;
  25.   FP_ERROR = function(msg: MSG_NO; data: Pointer; error_msg: TEXT): Integer; stdcall;
  26.   FP_STATUS = function(status: integer; data: Pointer; const status_msg: TEXT):
  27.                        Integer; stdcall;
  28.  
  29. const
  30.   IB_INSTALL_DLL = 'ibinstall.dll';
  31.  
  32.   { These are the values the FP_ERROR routine can return. }
  33.   isc_install_fp_retry    = -1;
  34.   isc_install_fp_continue =  0;
  35.   isc_install_fp_abort    =  1;
  36.  
  37.    { isc_install_get_info info_types }
  38.    isc_install_info_destination    =  1;
  39.    isc_install_info_opspace        =  2;
  40.    isc_install_info_opname         =  3;
  41.    isc_install_info_opdescription  =  4;
  42.  
  43.  
  44.   ISC_INSTALL_MAX_MESSAGE_LEN   = 300;
  45.   ISC_INSTALL_MAX_MESSAGES      = 200;
  46.   ISC_INSTALL_MAX_PATH          = MAX_PATH;
  47.  
  48.   { Basic Components used to install InterBase }
  49.   INTERBASE                     = 1000;
  50.   IB_SERVER                     = 1001;
  51.   IB_CLIENT                     = 1002;
  52.  
  53.   IB_CMD_TOOLS                  = 1003;
  54.   IB_CMD_TOOLS_DB_MGMT          = 1004;
  55.   IB_CMD_TOOLS_USR_MGMT         = 1005;
  56.   IB_CMD_TOOLS_DB_QUERY         = 1006;
  57.  
  58.   IB_GUI_TOOLS                  = 1007;
  59.   IB_DOC                        = 1011;
  60.  
  61.   IB_EXAMPLES                   = 1012;
  62.   IB_EXAMPLE_API                = 1013;
  63.   IB_EXAMPLE_DB                 = 1014;
  64.   IB_DEV                        = 1015;
  65.   IB_REPLICATION                = 1016;
  66.   IB_REPL_MANAGER               = 1017;
  67.   IB_REPL_SERVER                = 1018;
  68.  
  69.   IB_CONNECTIVITY               = 1101;
  70.   IB_ODBC_CLIENT                = 1102;
  71.   IB_JDBC                       = 1110;
  72.   IB_JDBC_CLIENT                = 1103;
  73.   IB_JDBC_SERVER                = 1105;
  74.  
  75.   { Error and warning codes }
  76.   isc_install_optlist_empty           = -1;
  77.   isc_install_actlist_empty           = -2;
  78.   isc_install_fp_copy_delayed         = -3;
  79.   isc_install_fp_delete_delayed       = -4;
  80.   isc_install_option_not_found        = -5;
  81.   isc_install_msg_version             = -6;
  82.   isc_install_cant_load_msg           = -7;
  83.   isc_install_invalid_msg             = -8;
  84.   isc_install_invalid_tbl             = -9;
  85.   isc_install_cant_create_msg         = -10;
  86.   isc_install_handle_not_allocated    = -11;
  87.   isc_install_odbc_comp_notfound      = -12;
  88.   isc_install_cant_delete             = -13;
  89.   isc_install_cant_rmdir              = -14;
  90.   isc_install_key_nonempty            = -15;
  91.  
  92.   isc_install_success                 = 0;
  93.  
  94.   { File and directory related errors }
  95.   isc_install_path_not_valid          = 1;
  96.   isc_install_path_not_exists         = 2;
  97.   isc_install_cant_write              = 3;
  98.   isc_install_type_unknown            = 4;
  99.   isc_install_cant_move_file          = 5;
  100.   isc_install_device_not_valid        = 6;
  101.   isc_install_data_truncated          = 7;
  102.   isc_install_cant_get_temp           = 8;
  103.   isc_install_no_file                 = 9;
  104.   isc_install_cant_load_lib           = 10;
  105.   isc_install_cant_lookup_lib         = 11;
  106.   isc_install_file_exists             = 12;
  107.   isc_install_cant_open_log           = 13;
  108.   isc_install_write_error             = 14;
  109.   isc_install_read_error              = 15;
  110.   isc_install_invalid_log             = 16;
  111.   isc_install_cant_read               = 17;
  112.   isc_install_no_diskspace            = 18;
  113.   isc_install_cant_create_dir         = 19;
  114.   isc_install_msg_syntax              = 20;
  115.   isc_install_fp_delete_error         = 21;
  116.   isc_install_fp_rename_error         = 22;
  117.   isc_install_fp_copy_error           = 23;
  118.  
  119.   { Precheck related errors }
  120.   isc_install_system_not_supported    = 24;
  121.   isc_install_server_running          = 25;
  122.   isc_install_classic_found           = 26;
  123.   isc_install_no_privileges           = 27;
  124.   isc_install_cant_get_free_space     = 28;
  125.   isc_install_guardian_running        = 29;
  126.   isc_install_invalid_option          = 30;
  127.   isc_install_invalid_handle          = 31;
  128.   isc_install_message_not_found       = 32;
  129.  
  130.   { TCP/IP services related }
  131.   isc_install_no_stack                = 33;
  132.   isc_install_cant_add_service        = 34;
  133.   isc_install_invalid_port            = 35;
  134.   isc_install_invalid_service         = 36;
  135.   isc_install_no_proto                = 37;
  136.   isc_install_no_services_entry       = 38;
  137.   isc_install_sock_error              = 39;
  138.   isc_install_conversion_error        = 40;
  139.  
  140.  
  141.   { Operations errors }
  142.   isc_install_cant_copy               = 41;
  143.   isc_install_no_mem                  = 42;
  144.   isc_install_queue_failed            = 43;
  145.   isc_install_invalid_param           = 44;
  146.   isc_install_fp_error_exception      = 45;
  147.   isc_install_fp_status_exception     = 46;
  148.   isc_install_user_aborted            = 47;
  149.  
  150.   { Registry related errors }
  151.   isc_install_key_exists              = 48;
  152.   isc_install_cant_create_key         = 49;
  153.   isc_install_cant_set_value          = 50;
  154.   isc_install_cant_open_key           = 51;
  155.   isc_install_cant_delete_key         = 52;
  156.   isc_install_cant_query_key          = 53;
  157.   isc_install_cant_delete_value       = 54;
  158.  
  159.   { OS services related errors }
  160.   isc_install_service_existed         = 55;
  161.   isc_install_cant_create_service     = 56;
  162.   isc_install_cant_open_service       = 57;
  163.   isc_install_cant_query_service      = 58;
  164.   isc_install_service_running         = 59;
  165.   isc_install_cant_delete_service     = 60;
  166.   isc_install_cant_open_manager       = 61;
  167.   isc_install_system_error            = 62;
  168.   isc_install_com_regfail             = 63;
  169.   isc_install_dcom_required           = 64;
  170.  
  171.   { ODBC installation errors }
  172.   isc_install_odbc_general            = 65;
  173.   isc_install_core_version            = 66;
  174.   isc_install_drv_version             = 67;
  175.   isc_install_tran_version            = 68;
  176.  
  177.  
  178. function isc_install_clear_options(pHandle: POPTIONS_HANDLE):MSG_NO; stdcall;
  179.                                    external IB_INSTALL_DLL;
  180.  
  181. function isc_install_execute(Handle: OPTIONS_HANDLE; src_dir, dest_dir: TEXT;
  182.                              status_func: FP_STATUS; status_data: Pointer;
  183.                              error_func: FP_ERROR; error_data: Pointer;
  184.                              uninstal_file_name: TEXT):MSG_NO; stdcall;
  185.                              external IB_INSTALL_DLL;
  186.  
  187. function isc_install_get_info(info_type :integer; option :OPT; info_buffer : Pointer;
  188.                               buf_len : Cardinal): MSG_NO; stdcall; external IB_INSTALL_DLL;
  189.  
  190. function isc_install_get_message(Handle: OPTIONS_HANDLE; message_no: MSG_NO;
  191.                                  message_txt: Pointer; message_len: Cardinal):
  192.                                  MSG_NO; stdcall; external IB_INSTALL_DLL;
  193.  
  194. function isc_install_load_external_text(msg_file_name: TEXT):MSG_NO; stdcall;
  195.                                         external IB_INSTALL_DLL;
  196.  
  197. function isc_install_precheck(Handle: OPTIONS_HANDLE; src_dir, dest_dir: TEXT):
  198.                               MSG_NO; stdcall; external IB_INSTALL_DLL;
  199.  
  200. function isc_install_set_option(pHandle: POPTIONS_HANDLE; option: OPT):MSG_NO;
  201.                                 stdcall; external IB_INSTALL_DLL;
  202.  
  203. function isc_uninstall_execute(uninstall_file_name: TEXT; status_func: FP_STATUS;
  204.                                status_data: pointer; error_func: FP_ERROR; error_data: pointer):
  205.                                MSG_NO; stdcall; external IB_INSTALL_DLL;
  206.  
  207. function isc_uninstall_precheck(uninstall_file_name: TEXT):MSG_NO; stdcall;
  208.                                 external IB_INSTALL_DLL;
  209.  
  210. function isc_install_unset_option(pHandle: POPTIONS_HANDLE; option: OPT):MSG_NO;
  211.                                   stdcall; external IB_INSTALL_DLL;
  212.  
  213.  
  214. implementation
  215.  
  216. end.
  217.