diff --git a/Source/exehead/exec.c b/Source/exehead/exec.c index 516a859d..7480d47f 100644 --- a/Source/exehead/exec.c +++ b/Source/exehead/exec.c @@ -1514,7 +1514,10 @@ static int NSISCALL ExecuteEntry(entry *entry_) log_dolog=parm1; log_printf2("logging set to %d",parm1); #if !defined(NSIS_CONFIG_LOG_ODS) && !defined(NSIS_CONFIG_LOG_STDOUT) - if (parm1) build_g_logfile(); + if (parm1) + build_g_logfile(); + else + log_write(1); #endif } else