Hello everyone,
My application programmed in C# copy, move, and create files.... but if the user choose to use it on the disc where windows is installed, the process have to have the admin rights. (Otherwise : Access denied)
The current solution is that the user has to run the application "as Administrator". But it would be more friendly to ask for the admin rights even if the user has no checked the "Run as admin".
Question :
How could I ask for admin rights before my application is launched by the user ?
My application programmed in C# copy, move, and create files.... but if the user choose to use it on the disc where windows is installed, the process have to have the admin rights. (Otherwise : Access denied)
The current solution is that the user has to run the application "as Administrator". But it would be more friendly to ask for the admin rights even if the user has no checked the "Run as admin".
Question :
How could I ask for admin rights before my application is launched by the user ?