/* Create eWorkplace installation objects English version (001) (C) 1998-2002 Ulrich M”ller. */ /* change the following language code to your language. */ LanguageCode = "001"; /* Here come the titles of the objects to be created. Translate these to your language. */ XWorkplace = "eCS"; OS2 = "eCS" WorkplaceShell = "Workplace Shell"; Screen = "Screen"; String = "Setup String"; FontFolder = "Fonts"; TrashCan = "Trash Can"; Lockup = "Lockup now"; FindObjects = "Find objects"; Shutdown = "Shut down"; /********************************************* * * NLS-independent portion * * Note: All of this was rewritten with V0.9.19, * but the NLS part above is unchanged. Just copy * the entire chunk below from instl001.cmd to your * translated file, and it should still work. * ********************************************/ call RxFuncAdd 'SysLoadFuncs', 'REXXUTIL', 'SysLoadFuncs' call SysLoadFuncs parse source dir; parse var dir x1 x2 dir; dir = filespec("D", dir)||filespec("P", dir); pdir = left(dir, length(dir)-8); idir = dir; dir = pdir||"bin\"; HelpLibrary = "HELPLIBRARY="pdir||"\help\xfldr"LanguageCode".hlp;" /* "Fonts" folder */ class = "XWPFontFolder"; title = FontFolder; setup = "DEFAULTVIEW=DETAILS;DETAILSCLASS=XWPFontObject;SORTCLASS=XWPFontObject;" id = "" target = ""; call CreateObject; /* create "Workplace Shell" */ class = "XFldWPS"; title = WorkplaceShell; setup = ""; id = ""; target = ""; call CreateObject; /* create "Screen" */ class = "XWPScreen"; title = Screen; setup = ""; id = ""; target = ""; call CreateObject; /* create "Setup String" template in Templates folder */ class = "XWPString"; title = String; setup = "TEMPLATE=YES;" id = ""; target = ""; call CreateObject; /* create trash can on desktop */ class = "XWPTrashCan"; title = TrashCan; setup = "DEFAULTVIEW=DETAILS;ALWAYSSORT=YES;DETAILSCLASS=XWPTrashObject;SORTCLASS=XWPTrashObject;" id = ""; target = ""; call CreateObject; commonXWPString = "DEFAULTOBJECT=;CONFIRMINVOCATION=NO;NOSTRINGPAGE=YES;HELPLIBRARY=WPHELP.HLP;HELPPANEL=" /* the following three added with V0.9.19 and redone with V0.9.20 */ commonXWPString = "DEFAULTOBJECT=;CONFIRMINVOCATION=NO;NOSTRINGPAGE=YES;HELPLIBRARY=WPHELP.HLP;HELPPANEL" /* create "Lockup" setup string object */ class = "XWPString"; title = Lockup; setup = "SETUPSTRING=MENUITEMSELECTED%3D705%3B;"commonXWPString"=8004;ICONRESOURCE=78,PMWP;" id = "" target = ""; call CreateObject; /* create "Find objects" setup string object */ class = "XWPString"; title = FindObjects; setup = "SETUPSTRING=MENUITEMSELECTED%3D8%3B;"commonXWPString"=1205;ICONRESOURCE=79,PMWP;"; id = ""; target = ""; call CreateObject; /* create "Shutdown" setup string object */ /* setup string modified to use POSTSHUTDOWN=YES V0.9.20 */ class = "XWPString"; title = Shutdown; setup = "SETUPSTRING=POSTSHUTDOWN%3DYES%3B;"commonXWPString"=4001;ICONRESOURCE=80,PMWP;" id = ""; target = ""; call CreateObject; /* create eCenter in eCS "Utilities" folder */ class = "XCenter"; title = "eCenter"; setup = ""; id = "" target = ""; call CreateObject; "@call "idir"crobj"LanguageCode exit; CreateObject: len = length(id); if (len == 0) then do Say 'Error with object "'title'": object ID not given.'; exit; end if (left(id, 1) \= '<') then do Say 'Error with object "'title'": object ID does not start with "<".'; exit; end if (right(id, 1) \= '>') then do Say 'Error with object "'title'": object ID does not end with ">".'; exit; end len = length(setup); if ((len > 0) & (right(setup, 1) \= ';')) then do Say 'Error with object "'title'": Setup string "'setup'" does not end in semicolon.'; exit; end call charout , 'Creating "'title'" of class "'class'", setup "'setup'"... ' rc = SysCreateObject(class, title, target, setup"TITLE="title";OBJECTID="id";", "U"); if (\rc) then do rc = SysCreateObject(class, title, "", setup"TITLE="title";OBJECTID="id";", "U"); end; if (\rc) then do Say 'Warning: object "'title'" of class "'class'" could not be created.' end else do Say "OK" end id = ""; return; CreateObjectWithShadow: idOld = id; call CreateObject; class = "WPShadow"; setup = "SHADOWID="idOld";" id = idOfShadow; target = ""; call CreateObject; return;