选中"Security",在界面中勾选"Enable ClickOnce Security Settings"后,在Properties下就有自动生成app.manifest文件。打开app.manifest文件,将<requestedExecutionLevel level="改为<requestedExecutionLevel level="requireAdministrator" uiAccess="false" />