This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- How to add a rule for user having admin privileges?
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 23, 2008
08:26 AM
How to add a rule for user having admin privileges?
I want to display the panel only when the user is administrator or has administrator rights. For user 'administrator', we can put the Rule as
if "$USER_NAME$" equals "Administrator"
But how can we put a rule for a user who has administrator privileges?
if "$USER_NAME$" equals "Administrator"
But how can we put a rule for a user who has administrator privileges?
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 23, 2008
10:37 AM
I believe there is custom code that you can download from the support site which will require that the user be administrator. You could probably use that code to set a rule which will display your panel when they are the admin.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 24, 2008
04:56 AM
AFAIK there used to be such a plugin, but it was retired long ago, when they discovered that it didn't work too well.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2008
01:06 AM
Th reason i'm asking this is because the behaviour is different for IA7.1.3 and IA2008 VP1 on Windows OS. This is the scenario:
I set a variable twice in my project file:
1. set environment variable action: for current user
rule: if $USER_NAME$ does not equal "Administrator"
2. set environment variable action: for all users
rule: if $USER_NAME$ equals "Administrator"
and this is how I calculate the user name:
String user_name = (String) System.getProperty("user.name");
The strange thing is that, when running the installer with a user having admin privileges,
using IA7.1.3, the above variable is set for 'All users' and is set for 'system environment variables"
using IA2008VP1, the variable is set for 'current user' and is set in 'User variables'
Why so?
I set a variable twice in my project file:
1. set environment variable action: for current user
rule: if $USER_NAME$ does not equal "Administrator"
2. set environment variable action: for all users
rule: if $USER_NAME$ equals "Administrator"
and this is how I calculate the user name:
String user_name = (String) System.getProperty("user.name");
The strange thing is that, when running the installer with a user having admin privileges,
using IA7.1.3, the above variable is set for 'All users' and is set for 'system environment variables"
using IA2008VP1, the variable is set for 'current user' and is set in 'User variables'
Why so?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 03, 2008
03:18 AM
I guess it should not change the system variables and set the variable in User varaibles. Then how come in IA7.1.3, it change the System variables?