PROACTIVETG
asked on
How to run code as "administrator" user with UAC enabled.
ASKER
In the code we have the credentials of the administrator (encrypted).
We need to register the .dll files only after software upgrades of a specific accounting application. Seems the application upgrade works but misses the last part of the upgrade (registering the .dlls). Since there are so many upgrades we want users to upgrade the application but they do not have rights to register .dlls.
We need to register the .dll files only after software upgrades of a specific accounting application. Seems the application upgrade works but misses the last part of the upgrade (registering the .dlls). Since there are so many upgrades we want users to upgrade the application but they do not have rights to register .dlls.
What we do for our QuickBooks clients is schedule the upgrades so we can go to all the machines in one client and upgrade QB. We do that as administrator. This works fine.
I am not sure what to suggest short of reducing the number of upgrades or scheduling them so they can be managed.
Turning off UAC is indeed dangerous.
I am not sure what to suggest short of reducing the number of upgrades or scheduling them so they can be managed.
Turning off UAC is indeed dangerous.
ASKER
Understood. What we are really looking for is someone to help us run the C# code. See attached script.
ASKER
No one have an answer?
Any code that registers DLL's or does like work, needs to run as Administrator and have UAC authorized at the time of the install. I have not seen installs as you wish run as an ordinary user.
So I think you have to run scheduled maintenance at the computers to do what you want.
So I think you have to run scheduled maintenance at the computers to do what you want.
ASKER
So what I'm asking is not possible?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
How often to you need to register this DLL? Register it once and then done?