Trying to add an exit confirmation dialog to Cygwin setup.exe, failing

Terry Fleming
Mon Mar 16 14:24:00 GMT 2009

$ diff original/setup-2.573.2.3/ setup-2.573.2.3/
> if(((uMsg==WM_SYSCOMMAND)&&((wParam&0xfff0)==SC_CLOSE))||
> 	(((uMsg==WM_COMMAND)&&(wParam==2))))
> 		if(MessageBox(hwnd,
> 			"Are you sure you want to exit setup? Any current download or installation will be aborted.",
> 			"Exit Cygwin Setup?", MB_YESNO)==IDNO) return 0;


More information about the Cygwin-apps mailing list