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