Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-31 Thread Brian Inglis

On 2022-01-31 08:46, Andrey Repin wrote:

Greetings, Jon Turney!


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


That's a feature silently longed for for a loong time. :) But this is such a
low priority, very few people actually mentioned it in the past years.


It could usefully be added similarly to last-action:

$ fgrep -A1 action /etc/setup/setup.rc
last-action
Download,Install

last-shortcut:
Desktop|StartMenu|none,...

--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

--
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


Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-31 Thread Andrey Repin
Greetings, Jon Turney!

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

That's a feature silently longed for for a loong time. :) But this is such a
low priority, very few people actually mentioned it in the past years.


-- 
With best regards,
Andrey Repin
Monday, January 31, 2022 18:45:55

Sorry for my terrible english...


-- 
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


Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-31 Thread Jon Turney

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


Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-31 Thread Samuel Lelièvre
2022-01-31 06:43 UTC, © Fxzx mic:
>
> Marco Atzeri, 2022年1月31日 14:25:
>
> > On 31.01.2022 06:36, © Fxzx mic wrote:
> > > Hello,
> > > I want to know how to change the default value of [...]
> >
> > Hi,
> >
> > bottom posting on this mailing list, please. [...]
>
> Hello,
> Sorry, I just want to ask the author first. I don't know this rule. Sorry.

See this explanation of posting styles:

https://en.wikipedia.org/wiki/Posting_style

-- 
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


Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-30 Thread © Fxzx mic
Hello,
Sorry, I just want to ask the author first. I don't know this rule. Sorry.

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.

Thanks.
---
From:
Fxzx mic
fxzx...@outlook.com<mailto:fxzx...@outlook.com>
---

发件人: Marco Atzeri<mailto:marco.atz...@gmail.com>
发送时间: 2022年1月31日 14:25
收件人: cygwin@cygwin.com<mailto:cygwin@cygwin.com>
抄送: fxzx...@outlook.com<mailto:fxzx...@outlook.com>
主题: Re: [ANNOUNCEMENT] Updated: setup (2.917)

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?
>

Hi,

bottom posting on this mailing list, please.


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
...


Regards
Marco


-- 
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


Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-30 Thread Marco Atzeri

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?



Hi,

bottom posting on this mailing list, please.


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
...


Regards
Marco

--
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


Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-30 Thread © Fxzx mic
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?

---
From:
Fxzx mic
fxzx...@outlook.com
---

发件人: Jon Turney
发送时间: 2022年1月25日 4:04
收件人: cygwin@cygwin.com
主题: [ANNOUNCEMENT] Updated: setup (2.917)

A new version of Setup (2.917) has been uploaded to:

  https://cygwin.com/setup-x86_64.exe  (64 bit version)
  https://cygwin.com/setup-x86.exe (32 bit version)

Changes compared to 2.915:

- Show a warning if running on a deprecated Windows version

Support for:
- Windows 6.0 (Windows Vista, Windows Server 2008)
- 32-bit Windows (including WoW64)
in Cygwin is deprecated and will be removed in the next major version,
sometime this year.

This warning can be disabled with the '--no-warn-deprecated-windows' or
'-w' option, or using a "In the future, do not show me this dialogue
box" checkbox.

- Fix setup silently exiting if elevated and 'CYGWIN=winsymlinks:lnk' is
in the environment (by ignoring that environment variable)
   Addresses: https://cygwin.com/pipermail/cygwin/2022-January/250523.html

- Fix creating bogus versions of obsoleted packages (under certain
specific circumstances), which then fail to download because they don't
exist!
   Addresses: https://cygwin.com/pipermail/cygwin/2022-January/250604.html

For instructions on obtaining and building the source code for setup,
see https://sourceware.org/cygwin-apps/setup.html

Please send bug reports, as usual, to the public mailing list cygwin AT
cygwin DOT com.

--
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


-- 
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


Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-30 Thread Shaddy Baddah

Hi Jon,

On 29/1/22 1:56 am, Jon Turney wrote:


Thanks for reporting this.

This seems to be a crash which occurs if you're not using 'download and 
install' mode, and have cached setup.ini files from multiple mirrors, 
and those differ in if any install package for a given source package is 
available.


I've uploaded an updated setup with an attempted fix for this:

   https://cygwin.com/setup/setup-2.917-3-g489d9c.x86_64.exe
   https://cygwin.com/setup/setup-2.917-3-g489d9c.x86.exe

Perhaps you could try that and see if it improves things for you?


It does. That's fixed it. Thank you for your prompt response.

--
Regards,
Shaddy Baddah


--
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


Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-28 Thread Jon Turney

On 27/01/2022 07:28, Shaddy Baddah wrote:

Hi,


On 25/1/22 7:02 am, Jon Turney wrote:
 > A new version of Setup (2.917) has been uploaded to:
 >
 >   https://cygwin.com/setup-x86_64.exe  (64 bit version)
 >   https://cygwin.com/setup-x86.exe (32 bit version)
 >
 > Changes compared to 2.915:
...

I've had a new problem with this version, which I have been able to
work around.


I guess this means 2.915 didn't have this problem.


I normally do a two stage update of Cygwin, with the second stage
being running down the "Install from Local Directory" path.

This was silently existing. As it turned out, it was doing so as I had
an old, setup.ini from a mirror I had unintentionally selected (rather
than my preferred mirror). Here's the preamble to that setup.ini:


[...]


I moved that out of the way, and then was able to proceed.

I was fortunate that I acted on a hunch. Otherwise, even with -v on
command line, there was nothing that could indicate to me what was
causing the issue.

I'm hoping that this silent exit can be fixed, to at least give an
indication, via logging or pop-up or other, of what is blocking the
install.


Thanks for reporting this.

This seems to be a crash which occurs if you're not using 'download and 
install' mode, and have cached setup.ini files from multiple mirrors, 
and those differ in if any install package for a given source package is 
available.


I've uploaded an updated setup with an attempted fix for this:

  https://cygwin.com/setup/setup-2.917-3-g489d9c.x86_64.exe
  https://cygwin.com/setup/setup-2.917-3-g489d9c.x86.exe

Perhaps you could try that and see if it improves things for you?

Thanks.

--
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


Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-26 Thread Shaddy Baddah

Hi,


On 25/1/22 7:02 am, Jon Turney wrote:
> A new version of Setup (2.917) has been uploaded to:
>
>   https://cygwin.com/setup-x86_64.exe  (64 bit version)
>   https://cygwin.com/setup-x86.exe (32 bit version)
>
> Changes compared to 2.915:
...

I've had a new problem with this version, which I have been able to
work around.

I normally do a two stage update of Cygwin, with the second stage
being running down the "Install from Local Directory" path.

This was silently existing. As it turned out, it was doing so as I had
an old, setup.ini from a mirror I had unintentionally selected (rather
than my preferred mirror). Here's the preamble to that setup.ini:

==
# This file was automatically generated at 2021-09-28 15:09:17 GMT.
#
# If you edit it, your edits will be discarded next time the file is
# generated.
#
# See https://sourceware.org/cygwin-apps/setup.ini.html for a description
# of the format.
release: cygwin
arch: x86_64
setup-timestamp: 1632841757
include-setup: setup <2.878 not supported
setup-minimum-version: 2.895
setup-version: 2.909
==

I moved that out of the way, and then was able to proceed.

I was fortunate that I acted on a hunch. Otherwise, even with -v on
command line, there was nothing that could indicate to me what was
causing the issue.

I'm hoping that this silent exit can be fixed, to at least give an
indication, via logging or pop-up or other, of what is blocking the
install.

--
Regards,
Shaddy Baddah

--
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


Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-26 Thread Adam Dinwoodie
On Tue, Jan 25, 2022 at 10:33:52PM +, Buchbinder, Barry (NIH/NIAID) [E] via 
Cygwin wrote:
> On Mon, Jan 24, 2022 at 6:12 PM Bill Stewart wrote:
> >
> >On Mon, Jan 24, 2022 at 3:49 PM Buchbinder, Barry (NIH/NIAID) [E] via Cygwin 
> >wrote:
> >
> >Windows protected your PC
> >> Microsoft Defender SmartScreen prevented an unrecognized app from starting.
> >> Running this app might put your PC at risk.
> >>
> >
> >Not to state the obvious, but this means that the Microsoft antivirus 
> >program prevented it from running.
> >
> >Exclude it.
> 
> I have no control over the antivirus, so cannot exclude it.
> 
> The point was that this wasn't a problem with 2.915, so most likely is the 
> result of some change made in 2.917.
> 
> However, this morning, after a reboot, it seems to work OK.

The difference was entirely that the new setup installer was new.
Microsoft Defender SmartScreen learns what programs are safe by seeing
how many people download and use them, on the basis that things that are
downloaded by lots of people and don't become known as a specific threat
should be fine, whereas something unknown may well be some new malware.

This flag doesn't indicate there's anything about 2.917 that had changed
to worry about, only that it had changed and that you were one of the
first to try to use it.

If you don't have the ability to override the spurious warning, your
only options will be to wait longer before using the new version, so
SmartScreen has a chance to learn it's safe from people who can click
past the warning, or to take it up with whoever manages your systems.
There is nothing the Cygwin project folks could do to help other than
never release new software.

There's a bit more information on the "reputation" checking under "How
Microsoft Defender SmartScreen works when a user tries to run an app" at
https://docs.microsoft.com/en-us/windows/security/threat-protection/microsoft-defender-smartscreen/microsoft-defender-smartscreen-set-individual-device

(For the sake of explicitness, I am a Microsoft employee these days, but
SmartScreen is nothing to do with my role at Microsoft, and Cygwin is at
best tangential.  I don't have any more knowledge or influence in this
area than any non-employee.)

Adam

-- 
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


Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-25 Thread Buchbinder, Barry (NIH/NIAID) [E] via Cygwin
On Mon, Jan 24, 2022 at 6:12 PM Bill Stewart wrote:
>
>On Mon, Jan 24, 2022 at 3:49 PM Buchbinder, Barry (NIH/NIAID) [E] via Cygwin 
> wrote:
>
>Windows protected your PC
>> Microsoft Defender SmartScreen prevented an unrecognized app from starting.
>> Running this app might put your PC at risk.
>>
>
>Not to state the obvious, but this means that the Microsoft antivirus program 
>prevented it from running.
>
>Exclude it.

I have no control over the antivirus, so cannot exclude it.

The point was that this wasn't a problem with 2.915, so most likely is the 
result of some change made in 2.917.

However, this morning, after a reboot, it seems to work OK.

Sorry for any bother.

Thanks,

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.


-- 
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


Re: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-24 Thread Bill Stewart
On Mon, Jan 24, 2022 at 3:49 PM Buchbinder, Barry (NIH/NIAID) [E] via
Cygwin  wrote:

Windows protected your PC
> Microsoft Defender SmartScreen prevented an unrecognized app from starting.
> Running this app might put your PC at risk.
>

[Responding to mailing list]

Not to state the obvious, but this means that the Microsoft antivirus
program prevented it from running.

Exclude it.

Bill

-- 
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


RE: [ANNOUNCEMENT] Updated: setup (2.917)

2022-01-24 Thread Buchbinder, Barry (NIH/NIAID) [E] via Cygwin
I cannot run setup 2.917.

When trying to start setup-x86_64 -n -B under cmd.exe or by cygstart under
bash, I get the following error message.

Unable to start 'C:\cygwin\usr\local\bin\setup-x86_64.exe': The operating
system denied access to the specified file.

Adding -w to the command line does not help.

Opening direct from Chrome gets the following error message.

Windows protected your PC
Microsoft Defender SmartScreen prevented an unrecognized app from starting.
Running this app might put your PC at risk.

Setup 2.915 still works fine.

Thanks

- Barry
  Disclaimer: Statements made herein are not made on behalf of NIAID.

-- 
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