home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
hmakeos2.zip
/
HMinstal.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
2002-04-01
|
6KB
|
165 lines
/* rexx-program generating a Hypermake folder and
program objects with *.HMP file association,
pointing to HMAKE.EXE and E.EXE
Author: Martin Vieregg, Germany, Jan 1997 ... Apr 2002 */
Call RxFuncAdd 'SysLoadFuncs','RexxUtil','SysLoadFuncs'
Call SysLoadFuncs
CurrentDir = directory()
say "German language (press Y or N) "
pull YesNo
if ((YesNo = "Y") | (YesNo = "y") | (YesNo = "J") | (YesNo = "j") ) then
German = TRUE
else
German = FALSE
rc = SysOpenObject("<MVhmakeFolder>", ICON, TRUE)
if (rc = 1) then DO
if (German = TRUE) then DO
say "Der Programmordner Hypermake ist schon vorhanden.";
say "Sollen die Hypermake Objekte gelöscht werden ? (drücken Sie J oder N) "
END
else DO
say "The Hypermake program folder already exists.";
say "Do you want to delete all these WPS Objects ? (press Y or N) "
END
pull Contin
if ((Contin = "N") | (Contin = "n")) then EXIT
Call Destroy "<MVhmake_hymake>"
Call Destroy "<MVhmake_comp>"
Call Destroy "<MVhmake_edit>"
Call Destroy "<MVhmakeAssocFolder>"
Call Destroy "<MVhmakeDirShadow>"
Call Destroy "<MVhmakeButtonLib>"
Call Destroy "<MVhmake_DocuHelp>"
Call Destroy "<MVhmake_DocuHTML>"
Call Destroy "<MVhmakeFolder>"
"@pause"
exit
END
if (German = TRUE) then DO
say "Bevor Sie mit diesem Programm fortfahren, müssen Sie die Hypermake Verzeich-"
say "nisse und Dateien selbst in das Verzeichnis Ihrer Wahl kopiert haben."
say "Weitermachen ? (drücken Sie J oder N) "
pull Contin
if ((Contin = "N") | (Contin = "n")) then EXIT
say "Es wird ein Hypermake Ordner auf der Arbeitsoberfläche erzeugt..."
Call SysCreateObject "WPFolder", "Hypermake", "<WP_DESKTOP>",,
"OBJECTID=<MVhmakeFolder>;ICONFILE="CurrentDir"\HMP.ICO;"
Call SysCreateObject "WPFolder", "HMP Zuordnungen", "<MVhmakeFolder>",,
"OBJECTID=<MVhmakeAssocFolder>;"
Call SysCreateObject "WPProgram", "Hypermake", "<MVhmakeFolder>",,
"OBJECTID=<MVhmake_hymake>;EXENAME="CurrentDir"\HYMAKE.EXE;ICONFILE="CurrentDir"\HMP.ICO;ASSOCFILTER=*.HMP,,;"
Call SysCreateObject "WPProgram", "kompiliere Projekt (Kommandozeile)", "<MVhmakeAssocFolder>",,
"OBJECTID=<MVhmake_comp>;EXENAME="CurrentDir"\HMAKE.EXE;ICONFILE="CurrentDir"\HMP.ICO;ASSOCFILTER=*.HMP,,;"
Call SysCreateObject "WPProgram", "editiere Projektdatei", "<MVhmakeAssocFolder>",,
"OBJECTID=<MVhmake_edit>;EXENAME=E.EXE;ASSOCFILTER=*.HMP,,;"
Call SysCreateObject "WPProgram", "Button Bibliothek", "<MVhmakeFolder>",,
"OBJECTID=<MVhmakeButtonLib>;EXENAME=NETSCAPE.EXE;PARAMETERS="CurrentDir"\Buttons\Content.htm;STARTUPDIR="CurrentDir"\Buttons;"
Call SysCreateObject "WPProgram", "Doku als IBM Hilfe", "<MVhmakeFolder>",,
"OBJECTID=<MVhmake_DocuHelp>;EXENAME=VIEW.EXE;PARAMETERS="CurrentDir"\German\Hymake.hlp;"
Call SysCreateObject "WPProgram", "Doku in HTML", "<MVhmakeFolder>",,
"OBJECTID=<MVhmake_DocuHTML>;EXENAME=NETSCAPE.EXE;PARAMETERS="CurrentDir"\German\Doku\Index.html;STARTUPDIR="CurrentDir"\German\Doku;"
Call SysCreateObject "WPShadow", "ShadowOfHyperMake", "<MVhmakeFolder>",,
"OBJECTID=<MVhmakeDirShadow>;SHADOWID="CurrentDir";"
say "Es wurde erfolgreich ein Hypermake Ordner mit einigen Objekten erstellt."
say "Sie können den Ordner irgendwo in einen anderen Ordner Ihrer"
say "Arbeitsoberfläche verschieben."
say "Zum Deinstallieren dieser Objekte starten Sie dieses Programm erneut."
say ""
say "Wenn Sie die Kommandozeilenversion benutzen wollen, so müssen Sie die"
say "Datei KBDVIO32.DLL in ein Verzeichnis spielen, das unter LIBPATH in der"
say "CONFIG.SYS eingetragen ist. Üblicherweise ist hierfür C:\OS2\DLL ein"
say "passendes Verzeichnis."
END
ELSE DO
say "Before running this installation program, you have to copy the Hypermake"
say "directories and files to the location of your choice by yourself."
say "Continue ? (press Y or N) "
pull Contin
if ((Contin = "N") | (Contin = "n")) then EXIT
say "creation of a Hypermake folder on the desktop..."
Call SysCreateObject "WPFolder", "Hypermake", "<WP_DESKTOP>",,
"OBJECTID=<MVhmakeFolder>;ICONFILE="CurrentDir"\HMP.ICO;"
Call SysCreateObject "WPFolder", "HMP Associations", "<MVhmakeFolder>",,
"OBJECTID=<MVhmakeAssocFolder>;"
Call SysCreateObject "WPProgram", "compile project", "<MVhmakeAssocFolder>",,
"OBJECTID=<MVhmake_comp>;EXENAME="CurrentDir"\HMAKE.EXE;ICONFILE="CurrentDir"\HMP.ICO;ASSOCFILTER=*.HMP,,;"
Call SysCreateObject "WPProgram", "edit project file", "<MVhmakeAssocFolder>",,
"OBJECTID=<MVhmake_edit>;EXENAME=E.EXE;ASSOCFILTER=*.HMP,,;"
Call SysCreateObject "WPProgram", "Button Library", "<MVhmakeFolder>",,
"OBJECTID=<MVhmakeButtonLib>;EXENAME=NETSCAPE.EXE;PARAMETERS="CurrentDir"\Buttons\Content.htm;STARTUPDIR="CurrentDir"\Buttons;"
Call SysCreateObject "WPProgram", "Docu in IBM Help", "<MVhmakeFolder>",,
"OBJECTID=<MVhmake_DocuHelp>;EXENAME=VIEW.EXE;PARAMETERS="CurrentDir"\English\Hymake.hlp;"
Call SysCreateObject "WPProgram", "Docu in HTML", "<MVhmakeFolder>",,
"OBJECTID=<MVhmake_DocuHTML>;EXENAME=NETSCAPE.EXE;PARAMETERS="CurrentDir"\English\Docu\Index.html;STARTUPDIR="CurrentDir"\English\Docu;"
Call SysCreateObject "WPShadow", "ShadowOfHyperMake", "<MVhmakeFolder>",,
"OBJECTID=<MVhmakeDirShadow>;SHADOWID="CurrentDir";"
say "Successful creation of a Hypermake folder on your desktop"
say "containing some objects."
say "You can drop the folder somewhere into a folder of your desktop."
say "To deinstal these objects run this program again."
say ""
say "To run the commandline version, please copy the file kbdvio32.dll to a"
say "directory where other dll files resides which is part of your LIBPATH"
say "statement in the CONFIG.SYS. Normally the target directory is C:\OS2\DLL"
END
"copy kbdvio32.dll c:\os2\dll"
"@pause"
exit
Destroy:
if SysDestroyObject(ARG(1)) then DO
if (German = TRUE) then DO
say "löschen von "ARG(1)" OK"
END
else DO
say "deleting "ARG(1)" OK"
END
END
else DO
if (German = TRUE) then DO
say "löschen von "ARG(1)" fehlgeschlagen"
END
else DO
say "deleting "ARG(1)" failed"
END
END
return