Many applications are installed using the REXX procedural language. Rather than use the WinCreateObject function, you can use REXX's SysCreateObject function.
A sample REXX implementation might resemble the following:
/* Register and load the Rexx Utility Functions */ call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs' call SysLoadFuncs
/* Create a new Mindex class object */ /* */ /* Call SysCreateObject Rexx Utility function, and pass it */ /* a class name (Mindex); */ /* */ /* then pass it the icon title ('My Product Index'); */ /* */ /* then pass it the folder I want the object in (<WP_DESKTOP>; */ /* */ /* then pass it the setup string with INDEX= set to the names */ /* of the help files that I want to be in my index */ /* (in this case C:\myprod\myhelp\myprod.hlp); the */ /* default value of INDEX is equal to the HELP */ /* environment variable; */ /* */ /* then pass it a unique object id (MYINDEX); */ /* */ /* then tell me if the installation was successful. */ if SysCreateObject("Mindex", "My Product Index", "<WP_DESKTOP>",, "INDEX=C:\MYPROD\HELP\MYPROD.HLP; OBJECTID=<MYINDEX>") then Say 'Installation of My Product Index was successful!' else Say 'Installation of My Product Index failed!'