Could simply do it from a search in both directories and use the path that was returned as result of the found msiexec and run it from there. Poor coding indeed.