/build/static/layout/Breadcrumb_cap_w.png

check if user has local admin rights bevor install msi

hello

I am looking for a solution how to check if the user, who is trying to install the package, has local admin rights or not.

thx for you help

olivier

0 Comments   [ + ] Show comments

Answers (7)

Posted by: jgeluk 19 years ago
Senior Yellow Belt
0
In InstallShield there is a build in property called AdminUser.
See InstallShield help:

Property Name
AdminUser

Description
This property is set by the installer at installation and is only set on Windows NT or Windows 2000 or later if the user has administrative privileges. AdminUser is always set on Windows 9x.

Guess Wise will have such a propery as well.
Hope this will help.
Posted by: olivier 19 years ago
Orange Senior Belt
0
hello

thx for your help. Found this msi property.

but how do I make a check for that? I want that the installation stop if a user has no admin right.

regards

Olivier
Posted by: jgeluk 19 years ago
Senior Yellow Belt
0
make a check for that

In InstallShield go to Description, General Information, Product Properties.
Under Product Properties you'll find an option Install Condition.
Here you can set a condition like:
AdminUser=1, with a message popping up if AdminUser<>1 like:
You ain't admin, install won't continue.
Posted by: olivier 19 years ago
Orange Senior Belt
0
Hi
If I set a property AdminUser with Value 1 it is still installing my package.

regards

Olivier
Posted by: MSIMaker 19 years ago
2nd Degree Black Belt
0
Set the property ALLUSERS=1 in trhe property table.

This will stop users from installing the application unless they have admin rights.
Posted by: jgeluk 19 years ago
Senior Yellow Belt
0
I'm not sure if you can overrule the AdminUser property....
Posted by: MSIMaker 19 years ago
2nd Degree Black Belt
0
I think you will find that the AdminUser property is only set by the installer service if the user is an administrator.

Setting ALLUSERS=1 does not allow non admins to install the app.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ