home *** CD-ROM | disk | FTP | other *** search
- /* K.A.Ash (c) Copyright 1996 */
-
- call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
- call SysLoadFuncs
-
- '@SET ENDLIBPATH=..' /* setting this should save modifying true libpath */
- call RxFuncAdd 'KALoadFuncs', 'KARexx', 'KALoadFuncs'
- if \rc then do
- Say 'Failed to load dynamic link library'
- Say 'Attempting install' /* need to add ka_com.dll, ka_crtm.dll to LIBPATH */
- end
- else do
- call KALoadFuncs
- if QueryObjectPath( '<KA_UTILS>', path ) then do
- /* old version so attempt update */
- Say "An Existing object with id <KA_UTILS> was found called " path
- Say "Attempting update."
- end
- end
- /* First create outer menu object id <KA_UTILS> */
- if SysCreateObject('WPFolder', 'AppMenu', DIRECTORY(), 'OBJECTID=<KA_UTILS>', 'f') then do
- '@copy menu.dat 'DIRECTORY()||'\AppMenu > NUL'
- path = DIRECTORY()||'\AppMenu'
- rc = SysCreateShadow( '<WP_INFO>', '<KA_UTILS>' )
- rc = SysCreateShadow( '<WP_DRIVES>', '<KA_UTILS>' )
- end
- else
- say "Couldn't create object. <KA_UTILS>"
-
- /* now create a programs directory and add some files to it */
- if SysCreateObject('WPFolder', 'Programs', '<KA_UTILS>', 'OBJECTID=<KA_UTILS_PROGS>', 'f') then do
- ppath = path||'\Programs'
- '@echo MINI=YES> 'ppath||'\menu.dat'
- '@echo ABSTRACT SEPARATOR>>'ppath||'\menu.dat'
- '@echo ABSTRACT "<WP_OS2WIN>" "OS/2 Window" "cmd.exe">>'ppath||'\menu.dat'
- /* create some shadows */
- rc = SysCreateShadow( '<WP_CONFIG>', '<KA_UTILS_PROGS>' )
- rc = SysCreateShadow( '<WP_TOOLS>', '<KA_UTILS_PROGS>' )
- rc = SysCreateShadow( '<WP_GAMES>', '<KA_UTILS_PROGS>' )
- /* rc = SysCreateShadow( '<WP_OS2WIN>', '<KA_UTILS_PROGS>' ) */
- /* rc = SysCreateShadow( '<WP_PROMPTS>', '<KA_UTILS_PROGS>' ) */
- end
- else
- say "Couldn't create object. <KA_UTILS_PROGS>"
-
- /* now do settings */
- if SysCreateObject('WPFolder', 'Settings', '<KA_UTILS>', 'OBJECTID=<KA_UTILS_SETS>', 'f') then do
- ppath = path||'\Settings'
- '@echo MINI=YES> 'ppath||'\menu.dat'
- '@echo OABSTRACT "<WP_FNTPAL>" >>'ppath||'\menu.dat'
- '@echo OABSTRACT "<WP_LORESCLRPAL>" >>'ppath||'\menu.dat'
- '@echo OABSTRACT "<WP_SCHPAL28>" >>'ppath||'\menu.dat'
- '@echo ABSTRACT SEPARATOR>>'ppath||'\menu.dat'
- '@echo OABSTRACT "<WP_CONFIG>" "" "">>'ppath||'\menu.dat'
- '@echo OABSTRACT "<KA_UTILS_PROGS>" "Programs" "">>'ppath||'\menu.dat'
- end
- else
- say "Couldn't create object. <KA_UTILS_SETS>"
-
- /* move icon directory into taskbox directory */
- '@move icons .. >NUL 2>&1'
- exit 0