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