Hello I am working in VB.Net 2010 framework 2.0. In my application I want to run a Setup.exe wit开发者_开发百科h Process.start. I want to know that whether the user who has started the my application is having the rights to run the setup.exe Thanks for any reply in advance.
Call
new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator)
精彩评论