On 31.01.2022 06:36, © Fxzx mic wrote:
Hello,
I want to know how to change the default value of the check boxes when creating 
a program shortcut after installation so that it is no longer checked by 
default.
Which part of the program needs to be changed?

[...]>
Can you please clarify with an example ?
Which shortcut do you mean ?

Maybe you should look on the Command Line options for already available
options :

$ ./setup-x86_64.exe --help
Cygwin setup 2.917

Command Line Options:

...
   -d --no-desktop                   Disable creation of desktop shortcut
...

On 31/01/2022 06:43, © Fxzx mic wrote:
>
> After installing (or updating) through the GUI, the program will
> finally have two check boxes to choose whether to create shortcuts,
> and the default status of these two check boxes is checked. I just
> want to know how to cancel this default behavior. I want to know
> where this behavior is written in the setup program source code.

If you search for that option text in the source code you'll end up looking at:

https://cygwin.com/git/?p=cygwin-apps/setup.git;a=blob;f=desktop.cc

Note that a patch to simply reverse the default setting of that option (i.e. make it unset by default, and require the user to click that checkbox to create the shortcuts (meaning that most users will have to do that) would not be acceptable.

Probably what's wanted is to remember the state of those checkboxes, if this isn't the first time setup has been run?

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to