You could also replace the readprofilestring code with the following UDF.

 Code:

$newpath=$newpath + GetAppPath($app)

function GetAppPath($AppName)
  select
    case $AppName="Java16"
      $GetAppPath="c:\program files\java\jre\bin"
    case $AppName="Oracle11"
      $GetAppPath="c:\program files\oracle11\bin"
  endselect
endfunction


Originally, I was thinking of doing more with the INI, but never did.