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
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Suite Install: how to check AdminUser?
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
Dec 01, 2015
09:29 AM
Suite Install: how to check AdminUser?
Double click to bring up the suite installer, how to check if the user has administrator rights, and show a warning to block the installation?
- Tags:
- suite install
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Dec 02, 2015
08:46 AM
This isn't typically a question that makes sense. By blocking non-administrators from launching your installer, you are preventing an "over the shoulder authorization," instead requiring limited users to log off and have an administrative user log in. If you do not prevent this, so long as you correctly mark items that need elevation (this is the default for packages, and is configurable for actions), the suite will elevate once and invoke the relevant items in the elevated context.
That said, if you absolutely do need to block this scenario, you can create an action for your suite using C++ or InstallScript. The InstallScript code could call either Is(USER_ADMINISTRATOR, "") or Is(USER_INADMINGROUP, "") depending on your exact needs. See also SuiteSetProperty for communicating this information back to the suite.
That said, if you absolutely do need to block this scenario, you can create an action for your suite using C++ or InstallScript. The InstallScript code could call either Is(USER_ADMINISTRATOR, "") or Is(USER_INADMINGROUP, "") depending on your exact needs. See also SuiteSetProperty for communicating this information back to the suite.