home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
lfncall.zip
/
INSTALL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1997-09-26
|
10KB
|
283 lines
/*
* LFNCall V 1.4
*
* Installationsprogramm mit Erzeugung der notwendigen Symbole
* (c) 1997 Thomas Bohn, Vogelwiese 65, D-18435 Stralsund, Germany
*
*/
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
call SysLoadFuncs
'@Echo off'
'cls'
say''
say' ┌───────────────────────────────────────────────────────────────────┐'
say' │ LFNCall V 1.4 │'
say' │ (c) Thomas Bohn 1997 │'
say' │ Installationsprogramm / install program │'
say' └───────────────────────────────────────────────────────────────────┘'
say''
say 'Bitte wählen Sie die Sprache. / Please select your language.'
say ''
say '(D)eutsch'
say '(E)nglish'
say ''
pull Spr
say ''
if Spr="D" then do
say 'Die notwendigen Dateien werden in das WIN-OS/2-Verzeichnis kopiert.'
say 'Mit dem Deinstallationsprogramm "DEINSTAL.CMD" können sie falls nötig'
say 'wieder entfernt werden.'
say ''
say 'Start mit <Eingabe>...Abbruch mit "E" und <Eingabe>...'
end
if Spr="E" then do
say 'The nessesary files will be copied to the WIN-OS/2-Directory.'
say 'With "DEINSTAL.CMD" all files can be removed.'
say ''
say 'Start with <Enter>...Cancel with "C" and <Enter>...'
end
pull taste
if taste="E" then exit
if taste="C" then exit
tmppfad=value('TMP',,'OS2ENVIRONMENT')
windir = SysIni( 'USER', 'PM_INSTALL', 'WINOS2_LOCATION' )
Ende=pos('00'x,windir)-1
Pfad=substr(windir,1,Ende)
if Spr="D" then say 'Kopiere Dateien...'
if Spr="E" then say 'Copying files...'
'copy LFN.EXE ' Pfad
'copy LFN.ICO ' Pfad
'copy LFNR.EXE ' Pfad
'copy LFNDMN.EXE ' Pfad
'copy LFND.CMD ' Pfad
'copy LFNCALL.CMD ' Pfad
'copy LFNCALL.INI ' Pfad
'copy DSTART.EXE ' Pfad
'copy BC450RTL.DLL ' Pfad
if Spr="D" then do
say 'Generiere Ordner...'
title = "LFN-Aufrufe"
end
if Spr="E" then do
say 'Generating folder...'
title = "LFN-Calls"
end
classname = 'WPFolder'
location = '<WP_DESKTOP>'
setup = 'OBJECTID=<LFN_Folder>;OPEN=DEFAULT'
result=SysCreateObject(classname,title,location,setup,r)
if not result=0 then
do
if Spr="D" then say 'Fehler beim Erstellen des Ordners !'
if Spr="E" then say 'error while creating folder !'
exit
end
if Spr="D" then do
say 'Und jetzt die Programmsymbole...'
title = "LFN-Dämon"
end
if Spr="E" then do
say 'And now the program-icons...'
title = "LFN-Daemon"
end
classname = 'WPProgram'
location = '<LFN_Folder>'
setup = 'OBJECTID=<LFN-Daemon>;EXENAME=LFNDMN.EXE;STARTUPDIR='Pfad
call SysCreateObject classname,title,location,setup,r
title = "LFN-Reset"
classname = 'WPProgram'
location = '<WP_START>'
setup = 'OBJECTID=<LFN-Reset>;EXENAME=LFNR.EXE;STARTUPDIR='Pfad';MINWIN=HIDE;MINIMIZED=YES;ICONFILE=LFN.ICO'
call SysCreateObject classname,title,location,setup,r
say ''
if Spr="D" then do
say 'Es werden jetzt die Pfade einiger Standard-Windows-Programme abgefragt.'
say 'Geben Sie den Pfad ohne die .EXE-Datei an, z.B. G:\MSOFFICE.'
say ''
say 'Wenn WINWORD installiert ist, geben Sie bitte jetzt das Verzeichnis an,'
say 'in dem sich WINWORD.EXE befindet (sonst weiter mit <Eingabe>):'
end
if Spr="E" then do
say 'Now I must know the position of some Windows-programs.'
say 'Please type the path without the .EXE-file, for example G:\MSOFFICE.'
say ''
say 'If WINWORD is installed, type now the path with the WINWORD.EXE,'
say 'if it isn't installed type only <Enter>:'
end
pull Verz
if length(Verz) > 0 then do
if right(Verz, 1) \= "\" then do
Verz = Verz || "\"
end
assoc=SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.DOC' )
Ende=length(assoc)-1
assalt=substr(assoc,1,Ende)
SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.DOC', '00'x )
rc = stream('winword.ico','c','query exists')
title = "Winword-LFN"
classname = 'WPProgram'
location = '<LFN_Folder>'
setup = 'OBJECTID=<Winword-LFN>;EXENAME=LFN.EXE;STARTUPDIR='Pfad';MINWIN=HIDE;MINIMIZED=YES;PARAMETERS='tmppfad' 'Verz'WINWORD.EXE;ICONFILE='rc';ASSOCFILTER=*.DOC'
call SysCreateObject classname,title,location,setup,r
assneu=SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.DOC' )
assset = assneu || assalt
Erg = SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.DOC', assset )
end
say ''
if Spr="D" then do
say 'Wenn EXCEL installiert ist, geben Sie bitte jetzt das Verzeichnis an,'
say 'in dem sich EXCEL.EXE befindet (sonst weiter mit <Eingabe>):'
end
if Spr="E" then do
say 'If EXCEL is installed, type now the path with the EXCEL.EXE,'
say 'if it isn't installed type only <Enter>:'
end
pull Verz
if length(Verz) > 0 then do
if right(Verz, 1) \= "\" then do
Verz = Verz || "\"
end
assoc=SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.XLS' )
Ende=length(assoc)-1
assalt=substr(assoc,1,Ende)
SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.XLS', '00'x )
rc = stream('excel.ico','c','query exists')
title = "Excel-LFN"
classname = 'WPProgram'
location = '<LFN_Folder>'
setup = 'OBJECTID=<Excel-LFN>;EXENAME=LFN.EXE;STARTUPDIR='Pfad';MINWIN=HIDE;MINIMIZED=YES;PARAMETERS='tmppfad' 'Verz'EXCEL.EXE;ICONFILE='rc';ASSOCFILTER=*.XLS'
call SysCreateObject classname,title,location,setup,r
assneu=SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.XLS' )
assset = assneu || assalt
Erg = SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.XLS', assset )
end
say ''
if Spr="D" then do
say 'Wenn WORDPRO für Windows installiert ist, geben Sie bitte das Verzeichnis an,'
say 'in dem sich WORDPRO.EXE befindet (sonst weiter mit <Eingabe>):'
end
if Spr="E" then do
say 'If WORDPRO is installed, type now the path with the WORDPRO.EXE,'
say 'if it isn't installed type only <Enter>:'
end
pull Verz
if length(Verz) > 0 then do
if right(Verz, 1) \= "\" then do
Verz = Verz || "\"
end
assoc=SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.LWP' )
Ende=length(assoc)-1
assalt=substr(assoc,1,Ende)
SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.LWP', '00'x )
rc = stream('wordpro.ico','c','query exists')
title = "Wordpro-LFN"
classname = 'WPProgram'
location = '<LFN_Folder>'
setup = 'OBJECTID=<Wordpro-LFN>;EXENAME=LFN.EXE;STARTUPDIR='Pfad';MINWIN=HIDE;MINIMIZED=YES;PARAMETERS='tmppfad Verz'WORDPRO.EXE;ICONFILE='rc';ASSOCFILTER=*.LWP'
call SysCreateObject classname,title,location,setup,r
assneu=SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.LWP' )
assset = assneu || assalt
Erg = SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.LWP', assset )
end
say ''
if Spr="D" then do
say 'Wenn 1-2-3 installiert ist, geben Sie bitte jetzt das Verzeichnis an,'
say 'in dem sich 123W.EXE befindet (sonst weiter mit <Eingabe>):'
end
if Spr="E" then do
say 'If 1-2-3 is installed, type now the path with the 123W.EXE,'
say 'if it isn't installed type only <Enter>:'
end
pull Verz
if length(Verz) > 0 then do
if right(Verz, 1) \= "\" then do
Verz = Verz || "\"
end
assoc=SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.WK?' )
Ende=length(assoc)-1
assalt=substr(assoc,1,Ende)
SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.WK?', '00'x )
rc = stream('123.ico','c','query exists')
title = "123-LFN"
classname = 'WPProgram'
location = '<LFN_Folder>'
setup = 'OBJECTID=<123-LFN>;EXENAME=LFN.EXE;STARTUPDIR='Pfad';MINWIN=HIDE;MINIMIZED=YES;PARAMETERS='tmppfad Verz'123W.EXE;ICONFILE='rc';ASSOCFILTER=*.WK?'
call SysCreateObject classname,title,location,setup,r
assneu=SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.WK?' )
assset = assneu || assalt
Erg = SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.WK?', assset )
end
*/
say ''
if Spr="D" then do
say 'Wenn CorelDraw installiert ist, geben Sie bitte jetzt das Verzeichnis an,'
say 'in dem sich CORELDRW.EXE befindet (sonst weiter mit <Eingabe>):'
end
if Spr="E" then do
say 'If CorelDraw is installed, type now the path with the CORELDRW.EXE,'
say 'if it isn't installed type only <Enter>:'
end
pull Verz
if length(Verz) > 0 then do
if right(Verz, 1) \= "\" then do
Verz = Verz || "\"
end
assoc=SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.CDR' )
Ende=length(assoc)-1
assalt=substr(assoc,1,Ende)
SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.CDR', '00'x )
rc = stream('corel.ico','c','query exists')
title = "CorelDraw-LFN"
classname = 'WPProgram'
location = '<LFN_Folder>'
setup = 'OBJECTID=<CorelDraw-LFN>;EXENAME=LFN.EXE;STARTUPDIR='Pfad';MINWIN=HIDE;MINIMIZED=YES;PARAMETERS='tmppfad Verz'CORELDRW.EXE;ICONFILE='rc';ASSOCFILTER=*.CDR'
call SysCreateObject classname,title,location,setup,r
assneu=SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.CDR' )
assset = assneu || assalt
Erg = SysIni( 'USER', 'PMWP_ASSOC_FILTER', '*.CDR', assset )
end
say ''
say ''
if Spr="D" then do
say 'Nach dem im Installationsprogramm verwendeten Prinzip können weitere'
say 'Startsymbole für andere Windows-Programme erzeugt werden.'
say 'Sehen Sie sich dazu die Einstellungen eines solchen Symboles an.'
say 'Es wird immer LFN.EXE aufgerufen, das als Parameter ein temporäres'
say 'Bearbeitungsverzeichnis und den Aufruf des eigentlichen Programmes erhält.'
say 'Als Arbeitsverzeichnis ist immer das WIN-OS/2-Verzeichnis einzutragen.'
say 'Weiterhin ist es wichtig, die entsprechende Erweiterung (z.B. *.DOC bei'
say 'Winword) mit dem Symbol zu verknüpfen, um den Aufruf der zu bearbeitenden'
say 'Datei über Doppelklick bzw. "Öffnen" im Kontextmenü zu ermöglichen.'
say 'Zu empfehlen ist in diesem Zusammenhang das Programm "ASSOEDIT" von Henk'
say 'Kelder.'
say ''
say 'Fertig.'
end
if Spr="E" then do
say 'Following the installation you can set up other programs to use with'
say 'LFNCall. Look at the settings of one of the objects in the LFN-Folder.'
say 'Always LFN.EXE is be called, as parameters it gets a temporary folder'
say 'and the name of the program, which to be called.'
say 'As working directory you must always set the WIN-OS/2-Directory.'
say 'Then you must set the assoziation with the file type (for ex. *.DOC for'
say 'Winword). Recommended for this is the program "ASSOEDIT" from Henk Kelder.'
say ''
say 'Ready.'
end
say ''