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
精彩评论