I would suggest you to eliminate any ";" at the beginning or the end of the string to minimize problems when the application is added. Instead of adding "appdir;", it could be ";appdir".
====================================================================
Option Explicit
Dim temp
temp = "AppDir1;AppDir2;InstDir;AppDir3;AppDir4;"
WScript.Echo temp & vbcrlf
WScript.Echo strDel(temp,"appdir1",";")
WScript.Echo strDel(temp,"appdir2",";")
WScript.Echo strDel(temp,"instdir",";")
WScript.Echo strDel(temp,"appdir3",";")
WScript.Echo strDel(temp,"appdir4",";")
Function strDel(src, str, delim)
Dim key, temp
For Each key In Split(src,delim)
If UCase(key) = UCase(str) Then
temp = Replace(Replace(src,key,""),String(2,delim),delim)
Exit For
End If
Next
If Left(temp,1) = delim Then
temp = Right(temp,Len(temp)-1)
End If
If Right(temp,1) = delim Then
temp = Left(temp,Len(temp)-1)
End If
strDel = temp
End Function