checking user has admin privilages - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

cuthbe
Posts: 12
Joined: Thu Feb 23, 2006 12:05 pm

checking user has admin privilages

All

How do i set the installer to check if user has admin privilages on the local machine.
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

Use the "AdminUser" Property. See the following page for details:
http://msdn.microsoft.com/library/defau ... inuser.asp

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
cuthbe
Posts: 12
Joined: Thu Feb 23, 2006 12:05 pm

So how do i setup this in the installer. Do i need to setup and Launch Conditions
Ionut wrote:Hi,

Use the "AdminUser" Property. See the following page for details:
http://msdn.microsoft.com/library/defau ... inuser.asp

Regards,
Denis
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

You can use "AdminUser" in any place where a Windows Installer Property can be used (including in a Launch Condition). However, it is not necessary to use a Launch Condition in order to abort the installation if the user does not have administrative privileges. You can set the Installation Type to "Per-machine only" (in the Install Parameters page) - the installation will fail if the user is not an administrator.

Please give me more details about what you are trying to achieve.

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”