1 | #include "nversion.h"
|
---|
2 |
|
---|
3 | <WARPIN VERSION="1.0.18" CODEPAGE=850">
|
---|
4 | <HEAD>
|
---|
5 | <TITLE>Samba Plugin installer</TITLE>
|
---|
6 |
|
---|
7 | <REXX NAME=ChkREQ>
|
---|
8 | call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
|
---|
9 | call SysLoadFuncs
|
---|
10 | /* based upon work from Dmitriy Kuminov */
|
---|
11 | parse arg aArgs
|
---|
12 | Message = ''; Package = ''
|
---|
13 | if pos(" Message:",aArgs) = 0
|
---|
14 | then parse arg aFile " Package:" Package
|
---|
15 | else parse arg aFile " Message:" Message
|
---|
16 | name = filespec('N', aFile)
|
---|
17 | ext = translate(right(name, 4))
|
---|
18 | search_path = ""
|
---|
19 | select
|
---|
20 | when (ext == '.DLL') then do
|
---|
21 | config_sys = SysBootDrive()'\CONFIG.SYS'
|
---|
22 | do while lines(config_sys)
|
---|
23 | line = strip(linein(config_sys))
|
---|
24 | if (left(line, 8) == 'LIBPATH=') then do
|
---|
25 | search_path = substr(line, 9)
|
---|
26 | leave
|
---|
27 | end
|
---|
28 | end
|
---|
29 | call lineout config_sys
|
---|
30 | search_path = SysQueryExtLibPath('B')';'search_path';'SysQueryExtLibPath('E')
|
---|
31 | end
|
---|
32 | when (ext == '.EXE') then search_path = value('PATH',, 'OS2ENVIRONMENT')
|
---|
33 | when (ext == '.HLP') then search_path = value('BOOKSHELF',, 'OS2ENVIRONMENT')
|
---|
34 | otherwise search_path = ''
|
---|
35 | end
|
---|
36 | if (search_path \= '') then do
|
---|
37 | ok = value('CHKREQ_SEARCH_PATH', search_path, 'OS2ENVIRONMENT')
|
---|
38 | real_file = SysSearchPath('CHKREQ_SEARCH_PATH', name)
|
---|
39 | ok = value('CHKREQ_SEARCH_PATH', '', 'OS2ENVIRONMENT')
|
---|
40 | end
|
---|
41 | else real_file = ""
|
---|
42 |
|
---|
43 | /* generate the message string to return */
|
---|
44 | if real_file <> "" then MsgStr = ""; else do
|
---|
45 | if Message = '' then MsgStr = 'REQUIRES="' || strip(Package) || '"'
|
---|
46 | else MsgStr = Message
|
---|
47 | end
|
---|
48 | return MsgStr
|
---|
49 | </REXX>
|
---|
50 |
|
---|
51 | <REXX NAME=chkndenv>
|
---|
52 | rc=RxFuncAdd('SysLoadFuncs','REXXUTIL','SysLoadFuncs')
|
---|
53 | rc=SysLoadFuncs
|
---|
54 | BaseDir=translate(strip(value("NDFSDIR",,"OS2ENVIRONMENT")))
|
---|
55 | if BaseDir = '' then do
|
---|
56 | ms=WirexxShowMessage('NetDrive not found','Installing plugin for EVFS.',0)
|
---|
57 | BaseDir = SysBootDrive()||'\ecs\dll'
|
---|
58 | end
|
---|
59 | rc = WirexxPutEnv('ndfs',BaseDir)
|
---|
60 | </REXX>
|
---|
61 |
|
---|
62 | <REXX NAME=nls>
|
---|
63 | call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
|
---|
64 | call SysLoadFuncs
|
---|
65 | langs = "EN,DE,FR"
|
---|
66 | lang = translate(left(strip(value("LANG",,"OS2ENVIRONMENT")),2))
|
---|
67 | if pos(lang,langs) = 0 then lang = 'EN'
|
---|
68 |
|
---|
69 | SELECT
|
---|
70 | when lang = 'FR' then do
|
---|
71 | rc = WirexxPutEnv('welcome','Bienvenue dans l''installation du composant enfichable Samba pour NetDrive!')
|
---|
72 | rc = WirexxPutEnv('accept','Veuillez prendre connaissance et accepter l''accord de licence suivant.')
|
---|
73 | rc = WirexxPutEnv('target','Veuillez slectionner le dossier de destination')
|
---|
74 | rc = WirexxPutEnv('re_install','Si vous effectuez une mise
|
---|
75 | jour de SearchPlus, le dossier d''installation par dfaut sera celui actuellement utilis par l''ancienne version.')
|
---|
76 | rc = WirexxPutEnv('ready','Veuillez confirmer les options d''installation.')
|
---|
77 | rc = WirexxPutEnv('scfind','Modifications du fichier CONFIG.SYS prvues: paramtrage de la variable SCFINDUTILITY
|
---|
78 | SearchPlus.exe pour en faire le programme de recherche du systme par dfaut. Ces modifications ncessiteront un redmarrage.')
|
---|
79 | rc = WirexxPutEnv('over_write','Veuillez slectionner de manire
|
---|
80 | craser tout fichier existant.')
|
---|
81 | rc = WirexxPutEnv('install','~Installation')
|
---|
82 | rc = WirexxPutEnv('license','~J''accepte')
|
---|
83 | rc = WirexxPutEnv('next','~Suivant')
|
---|
84 | rc = WirexxPutEnv('fr_sel','SELECT DESELECT')
|
---|
85 | end
|
---|
86 |
|
---|
87 | when lang = 'DE' then do
|
---|
88 | rc = WirexxPutEnv('welcome','Willkommen zur Installation des Samba plugin fr NetDrive!')
|
---|
89 | rc = WirexxPutEnv('accept','Bitte lesen folgenden Text und akzeptieren sie die Lizenzvereinbarung.')
|
---|
90 | rc = WirexxPutEnv('target','Whlen Sie bitte das Zielverzeichnis.')
|
---|
91 | rc = WirexxPutEnv('re_install','Wenn dies ein Update ist, dann ist das Installationsverzeichnis das aktuelle Verzeichnis des Plugins.')
|
---|
92 | rc = WirexxPutEnv('install','~Installation')
|
---|
93 | rc = WirexxPutEnv('license','~Ich stimme zu')
|
---|
94 | rc = WirexxPutEnv('next','W~eiter')
|
---|
95 | rc = WirexxPutEnv('de_sel','SELECT DESELECT')
|
---|
96 | end
|
---|
97 |
|
---|
98 | otherwise do
|
---|
99 | rc = WirexxPutEnv('welcome','Welcome to the installation of the Samba plugin for NetDrive!')
|
---|
100 | rc = WirexxPutEnv('accept','Please read and accept the following license-agreement.')
|
---|
101 | rc = WirexxPutEnv('target','Please select target directory.')
|
---|
102 | rc = WirexxPutEnv('re_install','If you are updating the Samba plugin for NetDrive, the default installation directory will be the current directory.')
|
---|
103 | rc = WirexxPutEnv('install','~Installation')
|
---|
104 | rc = WirexxPutEnv('license','I ~accept')
|
---|
105 | rc = WirexxPutEnv('next','~Next')
|
---|
106 | rc = WirexxPutEnv('en_sel','SELECT DESELECT')
|
---|
107 | end
|
---|
108 | end
|
---|
109 | return
|
---|
110 | </REXX>
|
---|
111 |
|
---|
112 | <REXX NAME=get_env>
|
---|
113 | Parse Arg subject .
|
---|
114 | Return WirexxGetEnv(subject)
|
---|
115 | </REXX>
|
---|
116 |
|
---|
117 | <PCK INDEX=1
|
---|
118 | PACKAGEID="netlabs.org\Samba\Client plugin\<$NDPSMB_INSTALL>"
|
---|
119 | =("nls")
|
---|
120 | =("chkndenv")
|
---|
121 | =("ChkREQ LIBC065.DLL Package:netlabs.org\kLIBC\LIBC 0.6 Runtime\0\6\5")
|
---|
122 | =("ChkREQ GCC446.DLL Package:netlabs.org\GCC4\Core\1\2\0")
|
---|
123 | =("ChkREQ STDCPP.DLL Package:netlabs.org\GCC4\Core\1\2\1")
|
---|
124 | TITLE="Samba Client Plugin for Netdrive and EVFS"
|
---|
125 | TARGET="$(NDFS)\InstallPackages\ndpsmb"
|
---|
126 | FIXED
|
---|
127 | SELECT
|
---|
128 | DEEXECUTE="$(NDFS)\InstallPackages\ndpsmb\uninst.cmd"
|
---|
129 | >This package contains the core files.
|
---|
130 | </PCK>
|
---|
131 |
|
---|
132 | <PCK INDEX=2
|
---|
133 | PACKAGEID="netlabs.org\Samba\Client plugin help_EN\<$NDPSMB_INSTALL>"
|
---|
134 | TARGET="$(1)"
|
---|
135 | FIXED =("get_env en_sel")
|
---|
136 | REQUIRES=1
|
---|
137 | TITLE="English helpfile"
|
---|
138 | EXECUTE="$(1)\instpl.cmd EN"
|
---|
139 | >This package contains the English helpfile
|
---|
140 | </PCK>
|
---|
141 |
|
---|
142 | <PCK INDEX=3
|
---|
143 | PACKAGEID="netlabs.org\Samba\Client plugin help_FR\<$NDPSMB_INSTALL>"
|
---|
144 | TARGET="$(1)"
|
---|
145 | FIXED =("get_env fr_sel")
|
---|
146 | REQUIRES=1
|
---|
147 | TITLE="French helpfile"
|
---|
148 | EXECUTE="$(1)\instpl.cmd FR"
|
---|
149 | >This package contains the French helpfile
|
---|
150 | </PCK>
|
---|
151 |
|
---|
152 | <PCK INDEX=4
|
---|
153 | PACKAGEID="netlabs.org\Samba\Client plugin help_DE\<$NDPSMB_INSTALL>"
|
---|
154 | TARGET="$(1)"
|
---|
155 | FIXED =("get_env de_sel")
|
---|
156 | REQUIRES=1
|
---|
157 | TITLE="Deutsche Hilfedatei"
|
---|
158 | EXECUTE="$(1)\instpl.cmd DE"
|
---|
159 | >Dieses Paket enthlt die deutsche Hilfedatei
|
---|
160 | </PCK>
|
---|
161 |
|
---|
162 | </HEAD>
|
---|
163 |
|
---|
164 | <!-- Here come the different pages. They are linked by
|
---|
165 | the <NEXTBUTTON> tags, which must have a target.
|
---|
166 | Each page must have a TYPE= attribute, which tells
|
---|
167 | WarpIn what will be visible on that page. -->
|
---|
168 | <BODY>
|
---|
169 | <!-- page 1: introductory page -->
|
---|
170 |
|
---|
171 | <PAGE INDEX=1 TYPE=README>
|
---|
172 | <NEXTBUTTON TARGET=2>=("get_env next")</NEXTBUTTON>
|
---|
173 | <TEXT>=("get_env welcome")</TEXT>
|
---|
174 | <README EXTRACTFROMPCK="1" format=PLAIN>readme.txt</README>
|
---|
175 | </PAGE>
|
---|
176 | <PAGE INDEX=2 TYPE=README>
|
---|
177 | <NEXTBUTTON TARGET=3>=("get_env next")</NEXTBUTTON>
|
---|
178 | <TEXT>
|
---|
179 | Additional requirements:
|
---|
180 | </TEXT>
|
---|
181 | <README FORMAT=HTML>
|
---|
182 | <P>=("ChkREQ Z.DLL Message:Please install the <B>Z.DLL</B> from http:/rpm.netlabs.org/release/00/zip/zlib-1_2_5-4_oc00.zip")
|
---|
183 | </README>
|
---|
184 | </PAGE>
|
---|
185 |
|
---|
186 | <PAGE INDEX=3 TYPE=TEXT>
|
---|
187 | <NEXTBUTTON TARGET=4>=("get_env next")</NEXTBUTTON>
|
---|
188 | <TEXT>
|
---|
189 | Additional explanation for Netdrive:
|
---|
190 |
|
---|
191 | The NetDrive Control Program (ndctl.exe) must be started before the installation of this plugin. Normally it is started during boot.
|
---|
192 |
|
---|
193 | You can start it via the "Control Panel" in your NetDrive folder (Menu NetDrive - Control Program - Start) or via commandline in your NDFSDIR (=("get_env ndfs")) (DETACH NDCTL.EXE).
|
---|
194 |
|
---|
195 | INSTALLATION (OR DEINSTALLATION) WILL FAIL, IF THE CONTROL PROGRAM HAS NOT BEEN STARTED!
|
---|
196 |
|
---|
197 | If you are not sure, please start the Control Program NOW and then continue the installation.</TEXT>
|
---|
198 |
|
---|
199 | </PAGE>
|
---|
200 |
|
---|
201 | <PAGE INDEX=4 TYPE=README>
|
---|
202 | <NEXTBUTTON TARGET=5>=("get_env license")</NEXTBUTTON>
|
---|
203 |
|
---|
204 | <TEXT>=("get_env accept")</TEXT>
|
---|
205 |
|
---|
206 | <README EXTRACTFROMPCK="1" format=PLAIN>COPYING</README>
|
---|
207 |
|
---|
208 | </PAGE>
|
---|
209 | <!-- The TYPE=CONTAINER will list the packages which can be installed. -->
|
---|
210 |
|
---|
211 |
|
---|
212 | <PAGE INDEX=5 TYPE=CONTAINER>
|
---|
213 | <NEXTBUTTON TARGET=0>=("get_env install")</NEXTBUTTON>
|
---|
214 | <TEXT>=("get_env target")
|
---|
215 | =("get_env re_install")</TEXT>
|
---|
216 | </PAGE>
|
---|
217 |
|
---|
218 | <!-- Display another TEXT page to inform the user
|
---|
219 | that installation will begin. We use the TARGET=0
|
---|
220 | with the NEXTBUTTON tag which starts installation. -->
|
---|
221 | </BODY>
|
---|
222 | </WARPIN>
|
---|