W
wil70
Guest
I developed a c# application that require to be installed and run as an admin.
But I need a normal user to be able to start and use this application (with the application running as admin I guess).
What is the best practice for this?
How can an admin install the application with its credential for a user, and then have the application run for the user without requiring the admin to always enter its access control rights (like it uses the one from the admin automatically, the user shall be able to exit or start the application by him/herself)?
In other words:
1. A User login to windows (this user is not an admin)
2. User install the application
2. The Application require the admin privilege
3. An admin enter its admin login/password
4. The application install, once installed
5. The user start the application (or login to windows after a windows restart), the application start without asking for the admin credentials anymore as it was already installed with those credentials but the application can still run as if the admin did run it.
Is it the right way to do it?
thanks you for your help
fyi: The application add itself to the registry to start automatically as the user login "SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Run"
ie. As an example "Task manager" does some admin operation but any user can start Task Manager.
ie. Here is one example of a call that might require admin right when it is run by a user "Process.HasExited" if the process it "Task Manager"...same thing some registry operations require admin rights.
w.
Continue reading...
But I need a normal user to be able to start and use this application (with the application running as admin I guess).
What is the best practice for this?
How can an admin install the application with its credential for a user, and then have the application run for the user without requiring the admin to always enter its access control rights (like it uses the one from the admin automatically, the user shall be able to exit or start the application by him/herself)?
In other words:
1. A User login to windows (this user is not an admin)
2. User install the application
2. The Application require the admin privilege
3. An admin enter its admin login/password
4. The application install, once installed
5. The user start the application (or login to windows after a windows restart), the application start without asking for the admin credentials anymore as it was already installed with those credentials but the application can still run as if the admin did run it.
Is it the right way to do it?
thanks you for your help
fyi: The application add itself to the registry to start automatically as the user login "SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Run"
ie. As an example "Task manager" does some admin operation but any user can start Task Manager.
ie. Here is one example of a call that might require admin right when it is run by a user "Process.HasExited" if the process it "Task Manager"...same thing some registry operations require admin rights.
w.
Continue reading...