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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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.
Answered 06/24/2004 by: jgeluk
Senior Yellow Belt

Please log in to comment
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
Answered 06/24/2004 by: olivier
Orange Senior Belt

Please log in to comment
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.
Answered 06/28/2004 by: jgeluk
Senior Yellow Belt

Please log in to comment
0
Hi
If I set a property AdminUser with Value 1 it is still installing my package.

regards

Olivier
Answered 06/30/2004 by: olivier
Orange Senior Belt

Please log in to comment
0
Set the property ALLUSERS=1 in trhe property table.

This will stop users from installing the application unless they have admin rights.
Answered 06/30/2004 by: MSIMaker
Second Degree Black Belt

Please log in to comment
0
I'm not sure if you can overrule the AdminUser property....
Answered 07/01/2004 by: jgeluk
Senior Yellow Belt

Please log in to comment
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.
Answered 07/01/2004 by: MSIMaker
Second Degree Black Belt

Please log in to comment
Answer this question or Comment on this question for clarity