uninstall-tool icon indicating copy to clipboard operation
uninstall-tool copied to clipboard

Could the working directory be set to that of the executable being traced?

Open jrmoore opened this issue 1 year ago • 0 comments

When tracing an installation or program execution, the working directory for the newly created process seems to default to the one of the Uninstall Tool process, which is "%ProgramFiles%\Uninstall Tool" if launched using the shortcuts created during installation.

Some programs use the current working directory to write files to, e.g., configuration ones, and after tracing any such programs the Uninstall Tool folder would contain files pertaining to the traced program instead. Setting the working directory to the one where the process to be traced is for the new process addresses the issue.

jrmoore avatar Aug 13 '24 08:08 jrmoore