public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* [PATCH setup] When in unattended mode, ignore attempts to close via GUI
@ 2021-12-19 21:22 Jon Turney
  0 siblings, 0 replies; only message in thread
From: Jon Turney @ 2021-12-19 21:22 UTC (permalink / raw)
  To: cygwin-apps; +Cc: Jon Turney

Perhaps this should be controlled by a separate option, but making setup
non-interactive seems like a reasonable fit with the intent of
'--quiet-mode'.

This doesn't stop the installer being killed by TerminateProcess().

Addresses: https://cygwin.com/pipermail/cygwin/2021-November/250079.html
---
 propsheet.cc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/propsheet.cc b/propsheet.cc
index 00b2ad8..742e5da 100644
--- a/propsheet.cc
+++ b/propsheet.cc
@@ -161,6 +161,8 @@ static LRESULT CALLBACK PropSheetWndProc (HWND hwnd, UINT uMsg,
       if (wParam != 2)
 	break;
     areyousure:
+      if (unattended_mode == unattended)
+        return 0;
       if (mbox(hwnd, IDS_CONFIRM_EXIT, MB_YESNO) == IDNO)
 	return 0;
       break;
-- 
2.34.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-19 21:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-19 21:22 [PATCH setup] When in unattended mode, ignore attempts to close via GUI Jon Turney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).