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
- :
- How to write to installation log from a custom code
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
Sep 13, 2010
06:47 AM
How to write to installation log from a custom code
hi
I'm trying to write to the installation log from a custom code using the InstallerProxy.getLogOutput api unfortunately unsuccessfully.
my code:
StringBuilder builder = new StringBuilder(sdf.format(new Date())).append(" - ").append(str);
try
{
ip.getLogOutput().writeBytes(builder.toString());
}
catch (IOException e)
{
e.printStackTrace();
}
any ideas why?
I'm trying to write to the installation log from a custom code using the InstallerProxy.getLogOutput api unfortunately unsuccessfully.
my code:
StringBuilder builder = new StringBuilder(sdf.format(new Date())).append(" - ").append(str);
try
{
ip.getLogOutput().writeBytes(builder.toString());
}
catch (IOException e)
{
e.printStackTrace();
}
any ideas why?
1 Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Oct 25, 2010
08:12 PM
javadoc says it only works during install phase, not pre or post install actions, maybe that's the issue?
