the answer to the question:
Is it possible to launch an application deployed with ClickOnce with administrator permissions?
It has a very simple answer:
The solution is two paragraphs later, so you can save the following text. The correct way to define an application requires certain permissions is through a manifesto. In it, you can indicate everything that requires an application at run time. The step by step, is on MSDN and is described in:
- Step 6: Create and Embed an Application Manifest (UAC)
The problem is that if we have an application that then we deploy with ClickOnce, we apply this change in the manifest, and then try to compile we find a beautiful
Error 1 ClickOnce does not support the request execution level ‘requireAdministrator’.
And now? as one of the solutions comes from the hand of this post , where what is being done is basically to check if the application is launched with ADMIN and otherwise permits, launch the application again with the appropriate permissions.
I have created a small class that in addition to applying this process displays a message warning that the application will be launched again.
In my case it was enough and with some exceptions that occur to me from memory, I think it may be enough
Saludos @ Home