标签: windows permissions
您好我在VB.Net 2010 framework 2.0中工作。 在我的应用程序中,我想运行带有Process.start的Setup.exe。 我想知道启动我的应用程序的用户是否有权运行setup.exe 感谢您提前回复。
答案 0 :(得分:1)
致电
new WindowsPrincipal(WindowsIdentity.GetCurrent()).IsInRole(WindowsBuiltInRole.Administrator)