[PATCH] Add chooser-only mode to setup.exe

Dave Korn dave.korn.cygwin@googlemail.com
Sat Feb 6 06:48:00 GMT 2010


    Hi gang,

  I think we talked about this idea before once.  It's a variant of
setup.exe's unattended mode that skips through everything automatically except
for the chooser page.  I decided to call it 'package manager mode', because
that's what I'm planning on using it for, but don't mind if anyone wants to
change the option name.

setup/ChangeLog:

	* choose.cc (ChooserPage::PlaceDialog): Only skip resizing window
	in fully-unattended mode, not chooser-only mode.
	(ChooserPage::OnUnattended): Return appropriate status to run page
	or not according to kind of unattended mode.
	* choose.h (ChooserPage::OnUnattended): Remove inline implementation
	and retain prototype only.
	* main.cc (PackageManagerOption): New boolean option.
	(main): Take it into account when setting unattended_mode.
	* proppage.cc (PropertyPage::DialogProc): Use new enum type when
	setting unattended_mode.
	* state.cc (unattended_mode): Change from bool to enum attend_mode.
	* state.h (enum attend_mode): Declare new enum type.
	(unattended_mode): Update extern declaration to use it.

  Ok?

    cheers,
      DaveK

-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup-chooseronly-mode.diff
Type: text/x-c
Size: 4170 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20100206/9986d15b/attachment.bin>


More information about the Cygwin-apps mailing list