This error occurs when the User folder is stored into a mapped drive.
The installation of WinAutomation requires elevated permissions. We cannot access a mapped network drive from an app run elevated.
To overcome the above, we should runt the CMD as administrator and execute the following commands:
Command 1: net use U: “User Folder path into the shared folder (eg. \\sharedFolder\Users data\ username)”
Command 2: net use
We try to install WinAutomation again.