For permission to write VB.NET windows services. (C drive can read and write, etc., etc.)

1. First enter the project properties


2. In the security options, enable ClickOnce options

3. Open the Properties in app.manifest

The nodes of level 4. requestedExecutionLevel modify requireAdministrator

5. When you are finished, return to the second part, to enable ClickOnce options remove the check mark, you're done.

 

ps: permission level explanation

asInvoker current permissions, can only be understood as a general user privileges
requireAdministrator administrator privileges, if you run this program account without administrator privileges are not directly run
the highest authority highestAvailable user can get, if the user is not an administrator will run

The above operation is sometimes reported the following error:

ClickOnce does not support the requested execution level "requireAdministrator". WindowsApplication1

Processing Method: The above ClickOnce manipulated to remove the hook.

Published 13 original articles · won praise 3 · Views 5996

Guess you like

Origin blog.csdn.net/vszys/article/details/90715681