cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Pilgrim

Using custom rules with installation log

Does anyone know if it's possible to log messages from a custom installer rule? In addition, when using a custom installer rule (Project->Rules) that evaluates to false and logging is enabled, the installation fails as expected but a STATUS: SUCCESSFUL message is reported in the installation log. Is this the intended behavior? Thanks.
Labels (1)
0 Kudos
2 Replies
Highlighted
Pilgrim

Re: Using custom rules with installation log

CustomError error =(CustomError) ip.getService(CustomError.class);
error.setLogDescription("ExecuteCommand");
error.appendError(cmd, CustomError.ERROR);
error.log();
0 Kudos
Highlighted
Pilgrim

Re: Using custom rules with installation log

I appreciate the response. I've tried that without success. From my readings, access to that class is only available from InstallerProxy, CustomCodePanelProxy, and CustomCodeConsoleProxy objects, not from a CustomCodeRuleProxy.
0 Kudos