Quantcast
Channel: Flexera Community Forums
Viewing all articles
Browse latest Browse all 4553

Output to STDERR is always in 3's

$
0
0
  1. In the Log Settings area of the Project, I am redirecting STDERR and STDOUT to the log.
  2. In JVM Settings, I goto the Installer Settings tab and add the following under Additional arguments, '-Dlax.debug.level=5 -Dlax.debug.all=true'


I am noticing my output is in triplicate. Ex:

Quote:

== INSTALLER ERRORS ============================================================================
Administrator privilege is required to run this software.
Please login as a user with administrator rights and then
run the installation.

Administrator privilege is required to run this software.
Please login as a user with administrator rights and then
run the installation.

Administrator privilege is required to run this software.
Please login as a user with administrator rights and then
run the installation.

== INSTALLER WARNINGS ============================================================================
Configuration Warnings not accessible because you don't have admin rights.

Configuration Warnings not accessible because you don't have admin rights.

Configuration Warnings not accessible because you don't have admin rights.

== INSTALLER INFORMATION =========================================================================
Configuration Information not accessible because you don't have admin rights.

Configuration Information not accessible because you don't have admin rights.

Configuration Information not accessible because you don't have admin rights.
When I am outputting this from my Java CustomCodeRule class, I am doing this:

Quote:

PrintWriter CfgWriter;
try {
CfgWriter = new PrintWriter( Log, "UTF-8" );
CfgWriter.write( "== INSTALLER ERRORS ===========================================" );
CfgWriter.write( Errors );
CfgWriter.write( "== INSTALLER WARNINGS ==========================================" );
CfgWriter.write( Warnings );
CfgWriter.write( "== INSTALLER INFORMATION ========================================" );
CfgWriter.write( Info );
}
catch ( IOException ioe ) {
setIOE( ioe.getMessage );
}
where 'setIOE' is a function that sets some flags.

When I run this code in Netbeans, it is one of each. Only when I run it under InstallAnywhere do I get these triplicates. Is there something wrong with my extra arguments?
CfgWriter.write

Viewing all articles
Browse latest Browse all 4553

Trending Articles