Microsoft used to keep a really good Shim library to hot patch troublesome applications. Application Compatibility Toolkit (ACT)/Microsoft Windows Application Compatibility Infrastructure.
https://learn.microsoft.com/en-us/windows/deployment/plannin...
This hack could be accomplished with one of those. In fact here is something that might work https://ryanwill.com/create-and-use-shims-with-microsoft-app...
>CorrectFilePaths – These are similar to symbolic links, but are defined per .EXE instead of system wide