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
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Using custom rules with installation log
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
‎Mar 28, 2008
09:32 AM
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.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 28, 2008
09:58 AM
CustomError error =(CustomError) ip.getService(CustomError.class);
error.setLogDescription("ExecuteCommand");
error.appendError(cmd, CustomError.ERROR);
error.log();
error.setLogDescription("ExecuteCommand");
error.appendError(cmd, CustomError.ERROR);
error.log();
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 28, 2008
10:22 AM
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.
![](/skins/images/A5EADE085F77DE82FB3B14D6B307AE6A/responsive_peak/images/icon_anonymous_message.png)