#include "nversion.h" Samba Plugin installer call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs' call SysLoadFuncs /* based upon work from Dmitriy Kuminov */ parse arg aArgs Message = ''; Package = '' if pos(" Message:",aArgs) = 0 then parse arg aFile " Package:" Package else parse arg aFile " Message:" Message name = filespec('N', aFile) ext = translate(right(name, 4)) search_path = "" select when (ext == '.DLL') then do config_sys = SysBootDrive()'\CONFIG.SYS' do while lines(config_sys) line = strip(linein(config_sys)) if (left(line, 8) == 'LIBPATH=') then do search_path = substr(line, 9) leave end end call lineout config_sys search_path = SysQueryExtLibPath('B')';'search_path';'SysQueryExtLibPath('E') end when (ext == '.EXE') then search_path = value('PATH',, 'OS2ENVIRONMENT') when (ext == '.HLP') then search_path = value('BOOKSHELF',, 'OS2ENVIRONMENT') otherwise search_path = '' end if (search_path \= '') then do ok = value('CHKREQ_SEARCH_PATH', search_path, 'OS2ENVIRONMENT') real_file = SysSearchPath('CHKREQ_SEARCH_PATH', name) ok = value('CHKREQ_SEARCH_PATH', '', 'OS2ENVIRONMENT') end else real_file = "" /* generate the message string to return */ if real_file <> "" then MsgStr = ""; else do if Message = '' then MsgStr = 'REQUIRES="' || strip(Package) || '"' else MsgStr = Message end return MsgStr rc=RxFuncAdd('SysLoadFuncs','REXXUTIL','SysLoadFuncs') rc=SysLoadFuncs BaseDir=translate(strip(value("NDFSDIR",,"OS2ENVIRONMENT"))) if BaseDir = '' then do ms=WirexxShowMessage('NetDrive not found','Installing plugin for EVFS.',0) BaseDir = SysBootDrive()||'\ecs\dll' end rc = WirexxPutEnv('ndfs',BaseDir) call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs' call SysLoadFuncs langs = "EN,DE,FR" lang = translate(left(strip(value("LANG",,"OS2ENVIRONMENT")),2)) if pos(lang,langs) = 0 then lang = 'EN' SELECT when lang = 'FR' then do rc = WirexxPutEnv('welcome','Bienvenue dans l''installation du composant enfichable Samba pour NetDrive!') rc = WirexxPutEnv('accept','Veuillez prendre connaissance et accepter l''accord de licence suivant.') rc = WirexxPutEnv('target','Veuillez s‚lectionner le dossier de destination') rc = WirexxPutEnv('re_install','Si vous effectuez une mise … jour de SearchPlus, le dossier d''installation par d‚faut sera celui actuellement utilis‚ par l''ancienne version.') rc = WirexxPutEnv('ready','Veuillez confirmer les options d''installation.') rc = WirexxPutEnv('scfind','Modifications du fichier CONFIG.SYS pr‚vues: param‚trage de la variable SCFINDUTILITY … SearchPlus.exe pour en faire le programme de recherche du systŠme par d‚faut. Ces modifications n‚cessiteront un red‚marrage.') rc = WirexxPutEnv('over_write','Veuillez s‚lectionner de maniŠre … ‚craser tout fichier existant.') rc = WirexxPutEnv('install','~Installation') rc = WirexxPutEnv('license','~J''accepte') rc = WirexxPutEnv('next','~Suivant') rc = WirexxPutEnv('fr_sel','SELECT DESELECT') end when lang = 'DE' then do rc = WirexxPutEnv('welcome','Willkommen zur Installation des Samba plugin fr NetDrive!') rc = WirexxPutEnv('accept','Bitte lesen folgenden Text und akzeptieren sie die Lizenzvereinbarung.') rc = WirexxPutEnv('target','W„hlen Sie bitte das Zielverzeichnis.') rc = WirexxPutEnv('re_install','Wenn dies ein Update ist, dann ist das Installationsverzeichnis das aktuelle Verzeichnis des Plugins.') rc = WirexxPutEnv('install','~Installation') rc = WirexxPutEnv('license','~Ich stimme zu') rc = WirexxPutEnv('next','W~eiter') rc = WirexxPutEnv('de_sel','SELECT DESELECT') end otherwise do rc = WirexxPutEnv('welcome','Welcome to the installation of the Samba plugin for NetDrive!') rc = WirexxPutEnv('accept','Please read and accept the following license-agreement.') rc = WirexxPutEnv('target','Please select target directory.') rc = WirexxPutEnv('re_install','If you are updating the Samba plugin for NetDrive, the default installation directory will be the current directory.') rc = WirexxPutEnv('install','~Installation') rc = WirexxPutEnv('license','I ~accept') rc = WirexxPutEnv('next','~Next') rc = WirexxPutEnv('en_sel','SELECT DESELECT') end end return Parse Arg subject . Return WirexxGetEnv(subject) This package contains the core files. This package contains the English helpfile This package contains the French helpfile Dieses Paket enth„lt die deutsche Hilfedatei =("get_env next") =("get_env welcome") readme.txt =("get_env next") Additional requirements:

=("ChkREQ Z.DLL Message:Please install the Z.DLL from http:/rpm.netlabs.org/release/00/zip/zlib-1_2_5-4_oc00.zip") =("get_env next") Additional explanation for Netdrive: The NetDrive Control Program (ndctl.exe) must be started before the installation of this plugin. Normally it is started during boot. 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). INSTALLATION (OR DEINSTALLATION) WILL FAIL, IF THE CONTROL PROGRAM HAS NOT BEEN STARTED! If you are not sure, please start the Control Program NOW and then continue the installation. =("get_env license") =("get_env accept") COPYING =("get_env install") =("get_env target") =("get_env re_install")