cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
peterbi
Level 7

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
Labels (1)
0 Kudos
(2) Replies
RobertDickau
Flexera Alumni

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.
0 Kudos
peterbi
Level 7

Thank you Robert for the clarification!

I will have to keep the script.
0 Kudos