okay now you'll probably not believe it but i managed to still get the error :(
the vbs file is now:
Function FindAndReplace(textToReplace, editProp)
Const ForReading = 1
Const ForWriting = 2
pathToFile = Session.Property("APPDIR") + "resource\UI\Teammenu.res"
replaceWith = Session.Property ...
FOLLOW US
Get the latest news in Application Packaging