Frage

I am trying to write my software so that it has administrator rights. Because it has to create files and be able to delete them, But if it is not started by right clicking on it, and clicking on run as administrator it is blocked from doing so.

Any solution would be great.

I did manage to find the following pages. But cannot make sense of it:

Update

I'm trying to read files from the program files directory, and write them elsewhere.

War es hilfreich?

Lösung

It transpires in the comments that you are trying to read from the program files folder rather than write to it. In which case your program does not need elevation and can run as standard user. You do not need to add the UAC requireAdministrator manifest.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top