I have a WPF application that I want to make it able to start always as an Adminstrator.I've been reading a lot about it and it seems that I have to create my own manifest file and pass it ot the Application properties so on runtime int starts as an Administrator.
The application itself loads a file and sometimes the file might demands administrator access so it can be modified.That is why I am looking for a way after the Application gets installed to be able always to get started in administrator mode.
解决方案
To add an Manifest click right on your project file on the Solution Explorer:
Select Add
New item
Choose Application Manifest File
File should named app.manifest and didn't rename it.
You have to change the element in your Manifest to start always as an Adminstrator:
BTW: Good Article to this Question