vassil
Level 3

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
elisa_dum
Level 3

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

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