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: Can 'USER_INADMINGROUP' be used as CA condition?
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
‎Aug 28, 2008
12:36 PM
Can 'USER_INADMINGROUP' be used as CA condition?
Hi,
An old story again, but new question 🙂
Working with IS2008 Basic MSI.
I used in my script and it works fine, but that's the only script code in my project, all other stuff are either DLL functions or CAs without IS script code. So I am wondering if I can make the script a CA so I don't have the script code in my project (i.e. leaving 'InstallScript' empty), I can take any kind of CAs, such as 'set property', or 'New Error', but not 'New InstallScript'.
I have tried to use it as condition such as:
- USER_INADMINGROUP
- USER_INADMINGROUP ="1"
- USER_INADMINGROUP <> "0"
- USER_INADMINGROUP <> null
- Is(USER_INADMINGROUP,"") (same as in script code)
- USER_INADMINGROUP = TRUE
I can try more to extend the list, but not sure if that's the right way to go and want to see if I can get quick help from you guys here.
Thanks,
Peter
An old story again, but new question 🙂
Working with IS2008 Basic MSI.
I used
I have tried to use it as condition such as:
- USER_INADMINGROUP
- USER_INADMINGROUP ="1"
- USER_INADMINGROUP <> "0"
- USER_INADMINGROUP <> null
- Is(USER_INADMINGROUP,"") (same as in script code)
- USER_INADMINGROUP = TRUE
I can try more to extend the list, but not sure if that's the right way to go and want to see if I can get quick help from you guys here.
Thanks,
Peter
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 28, 2008
01:39 PM
Alas, USER_INADMINGROUP and USER_POWERUSER are InstallScript constants and not MSI properties, and therefore can't be used directly in MSI conditions; you would need an InstallScript custom action that calls MsiSetProperty based on the result to use the constants' information in an MSI condition.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 28, 2008
02:37 PM
Thank you Robert for the clarification!
I will have to keep the script.
I will have to keep the script.