开发者

Check Installer Permissions with Windows Visual Studio 2008 C#

开发者 https://www.devze.com 2022-12-09 21:06 出处:网络
Lots of Installer questions, but I can\'t find the answer to what I want. I\'ve got an installer that can log in an Administrator account to continue the setup, but I don开发者_如何学Go\'t know how t

Lots of Installer questions, but I can't find the answer to what I want.

I've got an installer that can log in an Administrator account to continue the setup, but I don开发者_如何学Go't know how to check the current user to see if he/she already has Administrator or Power User privileges.

How can I check to see what kind of permissions the current user has before calling my Administrator login form?


You can already put in the installer the command runas, read more at Wikipedia - Remember that this command will make the person need to use the administrator privileges.

For Windows XP I suggest you to read:

  • Microsoft Windows XP Runas
  • In Windows, how can I run an administrator task from a non-admin account?
  • HOW TO: Use the RUN AS Command to Start a Program as an Administrator in Windows XP
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号