I wrote an app for my client which is an electron app.
In order to capture the screen, I'm using a .dll library since installation can't copy DLL to system32 folder, after installation I create a batch file to copy DLL to system32 folder.
Installation, installs app to C:\Users\user\AppData\Local\Programs\
If I run this batch as an administrator, it copies DLL to the System32 folder but the app cannot access it.
If I run the installation as an Administrator instead of C:\Users\user it installs in C:\Users\admin which is same result I can not access to DLL and now app installed to the admin user.
If I run the app as an admin result still the same. Can access DLL but this time trying to access the admin's temp folder which app not working again.
Why run as admin not just installing with privileges but instead installs to that user's folder?
Side note: there is a user called "admin" not administrator, I tried to enable Administrator user which had no password. I tried to install there everything is working. I switched back to the regular user it is not working there. I tried to change ownership of the System32 folder, didn't work either. What is the problem here?