2 IMPORTANT NOTE: IF THIS FILE IS CHANGED, WININST-6.EXE MUST BE RECOMPILED
3 WITH THE MSVC6 WININST.DSW WORKSPACE FILE MANUALLY, AND WININST-7.1.EXE MUST
4 BE RECOMPILED WITH THE MSVC 2003.NET WININST-7.1.VCPROJ FILE MANUALLY.
6 IF CHANGES TO THIS FILE ARE CHECKED INTO PYTHON CVS, THE RECOMPILED BINARIES
7 MUST BE CHECKED IN AS WELL!
12 /* zip-archive headers
13 * See: http://www.pkware.com/appnote.html
17 long tag
; /* must be 0x06054b50 */
28 long tag
; /* must be 0x02014b50 */
30 short version_extract
;
33 short last_mod_file_time
;
34 short last_mod_file_date
;
44 long ofs_local_header
;
48 long tag
; /* must be 0x04034b50 */
52 short last_mod_file_time
;
53 short last_mod_file_date
;
62 struct meta_data_hdr
{
70 /* installation scheme */
72 typedef struct tagSCHEME
{
77 typedef int (*NOTIFYPROC
)(int code
, LPSTR text
, ...);
80 extract_file(char *dst
, char *src
, int method
, int comp_size
,
81 int uncomp_size
, NOTIFYPROC notify
);
84 unzip_archive(SCHEME
*scheme
, char *dirname
, char *data
,
85 DWORD size
, NOTIFYPROC notify
);
88 map_new_file(DWORD flags
, char *filename
, char
89 *pathname_part
, int size
,
90 WORD wFatDate
, WORD wFatTime
,
94 ensure_directory (char *pathname
, char *new_part
,
97 /* codes for NOITIFYPROC */
99 #define CAN_OVERWRITE 2
100 #define FILE_CREATED 3
102 #define SYSTEM_ERROR 5
104 #define FILE_OVERWRITTEN 7