Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: output to stdout during command line installation #764

Closed
2 tasks done
marcoesters opened this issue Mar 12, 2024 · 1 comment · Fixed by #847
Closed
2 tasks done

Windows: output to stdout during command line installation #764

marcoesters opened this issue Mar 12, 2024 · 1 comment · Fixed by #847
Labels
type::feature request for a new feature or capability

Comments

@marcoesters
Copy link
Contributor

Checklist

  • I added a descriptive title
  • I searched open requests and couldn't find a duplicate

What is the idea?

While a decision has not been made about a replacement for NSIS (#646), it might be worth exploring adding stdout output to the Windows command line installer.

This could be a good start: https://forums.winamp.com/forum/developer-center/nsis-discussion/261756-write-to-command-line-when-silent#post3290436

Why is this needed?

There is currently no way to debug failures in command line installers. Using log files causes other issues (e.g., writing outside the installation directory with GUI installers when the "Browse..." button is clicked).

What should happen?

There should be an additional flag that allows users to output to stdout (or suppress output to stdout).

Additional Context

No response

@jaimergp
Copy link
Contributor

jaimergp commented Jul 5, 2024

I saw there are a few examples in Github if we search for System::Call 'kernel32::AttachConsole. The most complete examples seem to be:

So I think we won't be able to forward every message from NSIS to stdout, but we can definitely print our custom messages to stdout there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type::feature request for a new feature or capability
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants