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=chkndenv>
|
---|
8 | rc=RxFuncAdd('SysLoadFuncs','REXXUTIL','SysLoadFuncs')
|
---|
9 | rc=SysLoadFuncs
|
---|
10 | BaseDir=translate(strip(value("NDFSDIR",,"OS2ENVIRONMENT")))
|
---|
11 | if BaseDir = '' then do
|
---|
12 | ms=WirexxShowMessage('NetDrive not found','Installing plugin for EVFS.',0)
|
---|
13 | BaseDir = SysBootDrive()||'\ecs\dll'
|
---|
14 | end
|
---|
15 | rc = WirexxPutEnv('ndfs',BaseDir)
|
---|
16 | </REXX>
|
---|
17 |
|
---|
18 | <REXX NAME=nls>
|
---|
19 | call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs'
|
---|
20 | call SysLoadFuncs
|
---|
21 | langs = "EN,DE,FR"
|
---|
22 | lang = translate(left(strip(value("LANG",,"OS2ENVIRONMENT")),2))
|
---|
23 | if pos(lang,langs) = 0 then lang = 'EN'
|
---|
24 |
|
---|
25 | SELECT
|
---|
26 | when lang = 'FR' then do
|
---|
27 | rc = WirexxPutEnv('welcome','Bienvenue dans l''installation du composant enfichable Samba pour NetDrive!')
|
---|
28 | rc = WirexxPutEnv('accept','Veuillez prendre connaissance et accepter l''accord de licence suivant.')
|
---|
29 | rc = WirexxPutEnv('target','Veuillez slectionner le dossier de destination')
|
---|
30 | rc = WirexxPutEnv('re_install','Si vous effectuez une mise
|
---|
31 | jour de SearchPlus, le dossier d''installation par dfaut sera celui actuellement utilis par l''ancienne version.')
|
---|
32 | rc = WirexxPutEnv('ready','Veuillez confirmer les options d''installation.')
|
---|
33 | rc = WirexxPutEnv('scfind','Modifications du fichier CONFIG.SYS prvues: paramtrage de la variable SCFINDUTILITY
|
---|
34 | SearchPlus.exe pour en faire le programme de recherche du systme par dfaut. Ces modifications ncessiteront un redmarrage.')
|
---|
35 | rc = WirexxPutEnv('over_write','Veuillez slectionner de manire
|
---|
36 | craser tout fichier existant.')
|
---|
37 | rc = WirexxPutEnv('install','~Installation')
|
---|
38 | rc = WirexxPutEnv('license','~J''accepte')
|
---|
39 | rc = WirexxPutEnv('next','~Suivant')
|
---|
40 | rc = WirexxPutEnv('fr_sel','SELECT DESELECT')
|
---|
41 | end
|
---|
42 |
|
---|
43 | when lang = 'DE' then do
|
---|
44 | rc = WirexxPutEnv('welcome','Willkommen zur Installation des Samba plugin fr NetDrive!')
|
---|
45 | rc = WirexxPutEnv('accept','Bitte lesen folgenden Text und akzeptieren sie die Lizenzvereinbarung.')
|
---|
46 | rc = WirexxPutEnv('target','Whlen Sie bitte das Zielverzeichnis.')
|
---|
47 | rc = WirexxPutEnv('re_install','Wenn dies ein Update ist, dann ist das Installationsverzeichnis das aktuelle Verzeichnis des Plugins.')
|
---|
48 | rc = WirexxPutEnv('install','~Installation')
|
---|
49 | rc = WirexxPutEnv('license','~Ich stimme zu')
|
---|
50 | rc = WirexxPutEnv('next','W~eiter')
|
---|
51 | rc = WirexxPutEnv('de_sel','SELECT DESELECT')
|
---|
52 | end
|
---|
53 |
|
---|
54 | otherwise do
|
---|
55 | rc = WirexxPutEnv('welcome','Welcome to the installation of the Samba plugin for NetDrive!')
|
---|
56 | rc = WirexxPutEnv('accept','Please read and accept the following license-agreement.')
|
---|
57 | rc = WirexxPutEnv('target','Please select target directory.')
|
---|
58 | rc = WirexxPutEnv('re_install','If you are updating the Samba plugin for NetDrive, the default installation directory will be the current directory.')
|
---|
59 | rc = WirexxPutEnv('install','~Installation')
|
---|
60 | rc = WirexxPutEnv('license','I ~accept')
|
---|
61 | rc = WirexxPutEnv('next','~Next')
|
---|
62 | rc = WirexxPutEnv('en_sel','SELECT DESELECT')
|
---|
63 | end
|
---|
64 | end
|
---|
65 | return
|
---|
66 | </REXX>
|
---|
67 |
|
---|
68 | <REXX NAME=get_env>
|
---|
69 | Parse Arg subject .
|
---|
70 | Return WirexxGetEnv(subject)
|
---|
71 | </REXX>
|
---|
72 |
|
---|
73 | <PCK INDEX=1
|
---|
74 | PACKAGEID="netlabs.org\Samba\Client plugin\<$NDPSMB_INSTALL>"
|
---|
75 | =("nls")
|
---|
76 | =("chkndenv")
|
---|
77 | TITLE="Samba Client Plugin for Netdrive and EVFS"
|
---|
78 | TARGET="$(NDFS)\InstallPackages\ndpsmb"
|
---|
79 | FIXED
|
---|
80 | SELECT
|
---|
81 | DEEXECUTE="$(NDFS)\InstallPackages\ndpsmb\uninst.cmd"
|
---|
82 | >This package contains the core files.
|
---|
83 | </PCK>
|
---|
84 |
|
---|
85 | <PCK INDEX=2
|
---|
86 | PACKAGEID="netlabs.org\Samba\Client plugin help_EN\<$NDPSMB_INSTALL>"
|
---|
87 | TARGET="$(1)"
|
---|
88 | FIXED =("get_env en_sel")
|
---|
89 | REQUIRES=1
|
---|
90 | TITLE="English helpfile"
|
---|
91 | EXECUTE="$(1)\instpl.cmd EN"
|
---|
92 | >This package contains the English helpfile
|
---|
93 | </PCK>
|
---|
94 |
|
---|
95 | <PCK INDEX=3
|
---|
96 | PACKAGEID="netlabs.org\Samba\Client plugin help_FR\<$NDPSMB_INSTALL>"
|
---|
97 | TARGET="$(1)"
|
---|
98 | FIXED =("get_env fr_sel")
|
---|
99 | REQUIRES=1
|
---|
100 | TITLE="French helpfile"
|
---|
101 | EXECUTE="$(1)\instpl.cmd FR"
|
---|
102 | >This package contains the French helpfile
|
---|
103 | </PCK>
|
---|
104 |
|
---|
105 | <PCK INDEX=4
|
---|
106 | PACKAGEID="netlabs.org\Samba\Client plugin help_DE\<$NDPSMB_INSTALL>"
|
---|
107 | TARGET="$(1)"
|
---|
108 | FIXED =("get_env de_sel")
|
---|
109 | REQUIRES=1
|
---|
110 | TITLE="Deutsche Hilfedatei"
|
---|
111 | EXECUTE="$(1)\instpl.cmd DE"
|
---|
112 | >Dieses Paket enthlt die deutsche Hilfedatei
|
---|
113 | </PCK>
|
---|
114 |
|
---|
115 | </HEAD>
|
---|
116 |
|
---|
117 | <!-- Here come the different pages. They are linked by
|
---|
118 | the <NEXTBUTTON> tags, which must have a target.
|
---|
119 | Each page must have a TYPE= attribute, which tells
|
---|
120 | WarpIn what will be visible on that page. -->
|
---|
121 | <BODY>
|
---|
122 | <!-- page 1: introductory page -->
|
---|
123 |
|
---|
124 | <PAGE INDEX=1 TYPE=README>
|
---|
125 | <NEXTBUTTON TARGET=2>=("get_env next")</NEXTBUTTON>
|
---|
126 | <TEXT>=("get_env welcome")</TEXT>
|
---|
127 | <README EXTRACTFROMPCK="1" format=PLAIN>readme.txt</README>
|
---|
128 | </PAGE>
|
---|
129 |
|
---|
130 | <PAGE INDEX=2 TYPE=TEXT>
|
---|
131 | <NEXTBUTTON TARGET=3>=("get_env next")</NEXTBUTTON>
|
---|
132 | <TEXT>
|
---|
133 | Additional explanation for Netdrive:
|
---|
134 |
|
---|
135 | The NetDrive Control Program (ndctl.exe) must be started before the installation of this plugin. Normally it is started during boot.
|
---|
136 |
|
---|
137 | 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).
|
---|
138 |
|
---|
139 | INSTALLATION (OR DEINSTALLATION) WILL FAIL, IF THE CONTROL PROGRAM IS NOT STARTED!
|
---|
140 |
|
---|
141 | If you are not sure, please start the Control Program NOW and then continue the installation.</TEXT>
|
---|
142 |
|
---|
143 | </PAGE>
|
---|
144 |
|
---|
145 | <PAGE INDEX=3 TYPE=README>
|
---|
146 | <NEXTBUTTON TARGET=4>=("get_env license")</NEXTBUTTON>
|
---|
147 |
|
---|
148 | <TEXT>=("get_env accept")</TEXT>
|
---|
149 |
|
---|
150 | <README EXTRACTFROMPCK="1" format=PLAIN>COPYING</README>
|
---|
151 |
|
---|
152 | </PAGE>
|
---|
153 | <!-- The TYPE=CONTAINER will list the packages which can be installed. -->
|
---|
154 |
|
---|
155 |
|
---|
156 | <PAGE INDEX=4 TYPE=CONTAINER>
|
---|
157 | <NEXTBUTTON TARGET=0>=("get_env install")</NEXTBUTTON>
|
---|
158 | <TEXT>=("get_env target")
|
---|
159 | =("get_env re_install")</TEXT>
|
---|
160 | </PAGE>
|
---|
161 |
|
---|
162 | <!-- Display another TEXT page to inform the user
|
---|
163 | that installation will begin. We use the TARGET=0
|
---|
164 | with the NEXTBUTTON tag which starts installation. -->
|
---|
165 | </BODY>
|
---|
166 | </WARPIN>
|
---|