C # Note17: Extracting files using Ionic.Zip.dll

Source: Internet
Author: User

Refer to related article: http://blog.csdn.net/jayzai/article/details/7563248

Ps:c# How to run a program as an administrator

"When using the WinForm program to get a call to the cmd command prompt, if it is more than Win7 operating system, it will need to be run as administrator to perform successfully, otherwise no effect or prompt error. 】

In visual Studio--Solution Explorer--right-click on the project name-Properties, find the "security" option, tick "Enable ClickOnce Security Settings", at this point, there will be an extra "app.manifest" file under the project, select it, and find the code snippet <requestedexecutionlevel level= "AsInvoker" uiaccess= "false"/> change it to: <requestedexecutionlevel level= " Requireadministrator "uiaccess=" false "/>", and then open the "Properties-security" interface again, remove the check before "Enable ClickOnce security Settings" before compiling and running.

C # Note17: Extracting files using Ionic.Zip.dll

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.