views:

56

answers:

1

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'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?

+1  A: 

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:

Nathan Campos
Is this only available for Vista and up or can XP use it, too? 90% of our computers at this company are XP.
jp2code