2 Copyright © 1995-2004, The AROS Development Team. All rights reserved.
9 #define INSTALLER_NAME "Installer"
10 #define INSTALLER_VERSION 43
11 #define INSTALLER_REVISION 3
14 This flag is not only for internal verbosity, but embraces outputs
15 where Intuition GUI is still missing (mostly errors), too.
22 # include <proto/arossupport.h>
24 # define DMSG(x...) kprintf(x)
26 # define DMSG(x...) /* */
36 #include <exec/exec.h>
37 #include <exec/execbase.h>
38 #include <proto/dos.h>
39 #include <proto/exec.h>
40 #include <proto/alib.h>
41 #include <proto/icon.h>
43 #include <proto/workbench.h>
46 #include <workbench/workbench.h>
47 #include <workbench/startup.h>
49 extern struct ExecBase
*SysBase
;
51 typedef struct ScriptArg
53 struct ScriptArg
*next
; /* Next argument */
54 struct ScriptArg
*parent
; /* Parent argument */
55 char *arg
; /* Either string or */
56 struct ScriptArg
*cmd
; /* ptr to list of arguments */
57 /* set one of them to NULL */
58 long int intval
; /* If argument is an integer *arg will
60 int ignore
; /* Parameters set this to 1 to disappear */
64 /* Error codes used for ( trap ... ) and onerror */
65 #define NOERROR 0 /* no error occurred */
66 #define USERABORT 1 /* user aborted */
67 #define OUTOFMEMORY 2 /* out of memory */
68 #define SCRIPTERROR 3 /* error in script */
69 #define DOSERROR 4 /* DOS error */
70 #define BADPARAMETER 5 /* bad parameter data */
72 #define NUMERRORS 5 /* Number of error codes */
74 typedef struct InstallerPrefs
76 char * transcriptfile
;
77 BPTR transcriptstream
;
78 int debug
, pretend
, nopretend
, novicelog
, noprint
;
80 int copyfail
, copyflags
;
81 ScriptArg onerror
, *onerrorparent
;
82 ScriptArg trap
[NUMERRORS
], *trapparent
[NUMERRORS
];
83 int minusrlevel
, defusrlevel
;
89 #define COPY_OKNODELETE 4
91 #define COPY_ASKUSER 2
103 ScriptArg
* procbody
;
111 long int intval
, intval2
;
116 /* Special characters */
117 #define SEMICOLON 0x3B
118 #define LINEFEED 0x0A
119 #define BACKSLASH 0x5C
130 #define MAXARGSIZE 1024
138 #endif /* _INSTALLER_H */