2014年2月19日 星期三

C# - How to Add the Administrator permission in vs2008 project


1. Right click project -> Add .. -> Add new item -> Application Manifest File.

2. Open "app.manifest" and replace this ...



to 


3. Save ...

Reference : 

1. http://stackoverflow.com/questions/7666408/how-to-request-administrator-permissions-when-the-program-starts

2. http://social.msdn.microsoft.com/Forums/vstudio/en-US/f6cd003f-ba3b-44f3-817f-2d8b4e11a0eb/getting-the-admin-rights-in-c?forum=netfxbcl

沒有留言: