public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: [ANNOUNCEMENT] Updated: setup (2.917)
@ 2022-01-25 22:33 Buchbinder, Barry (NIH/NIAID) [E]
  2022-01-26  8:47 ` Adam Dinwoodie
  0 siblings, 1 reply; 15+ messages in thread
From: Buchbinder, Barry (NIH/NIAID) [E] @ 2022-01-25 22:33 UTC (permalink / raw)
  To: 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 <cygwin@cygwin.com> 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.


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Updated: setup (2.917)
  2022-01-25 22:33 [ANNOUNCEMENT] Updated: setup (2.917) Buchbinder, Barry (NIH/NIAID) [E]
@ 2022-01-26  8:47 ` Adam Dinwoodie
  0 siblings, 0 replies; 15+ messages in thread
From: Adam Dinwoodie @ 2022-01-26  8:47 UTC (permalink / raw)
  To: Buchbinder, Barry (NIH/NIAID) [E]; +Cc: cygwin

On Tue, Jan 25, 2022 at 10:33:52PM +0000, 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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Updated: setup (2.917)
  2022-01-31 15:46         ` Andrey Repin
@ 2022-01-31 19:56           ` Brian Inglis
  0 siblings, 0 replies; 15+ messages in thread
From: Brian Inglis @ 2022-01-31 19:56 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Updated: setup (2.917)
  2022-01-31 12:13       ` Jon Turney
@ 2022-01-31 15:46         ` Andrey Repin
  2022-01-31 19:56           ` Brian Inglis
  0 siblings, 1 reply; 15+ messages in thread
From: Andrey Repin @ 2022-01-31 15:46 UTC (permalink / raw)
  To: Jon Turney, cygwin

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


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Updated: setup (2.917)
  2022-01-31  6:43     ` © Fxzx mic
  2022-01-31  8:20       ` Samuel Lelièvre
@ 2022-01-31 12:13       ` Jon Turney
  2022-01-31 15:46         ` Andrey Repin
  1 sibling, 1 reply; 15+ messages in thread
From: Jon Turney @ 2022-01-31 12:13 UTC (permalink / raw)
  To: © Fxzx mic, The Cygwin Mailing List

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Updated: setup (2.917)
  2022-01-31  6:43     ` © Fxzx mic
@ 2022-01-31  8:20       ` Samuel Lelièvre
  2022-01-31 12:13       ` Jon Turney
  1 sibling, 0 replies; 15+ messages in thread
From: Samuel Lelièvre @ 2022-01-31  8:20 UTC (permalink / raw)
  To: © Fxzx mic; +Cc: Marco Atzeri, cygwin

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Updated: setup (2.917)
  2022-01-31  6:25   ` Marco Atzeri
@ 2022-01-31  6:43     ` © Fxzx mic
  2022-01-31  8:20       ` Samuel Lelièvre
  2022-01-31 12:13       ` Jon Turney
  0 siblings, 2 replies; 15+ messages in thread
From: © Fxzx mic @ 2022-01-31  6:43 UTC (permalink / raw)
  To: Marco Atzeri, cygwin

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
fxzxmic@outlook.com<mailto:fxzxmic@outlook.com>
---

发件人: Marco Atzeri<mailto:marco.atzeri@gmail.com>
发送时间: 2022年1月31日 14:25
收件人: cygwin@cygwin.com<mailto:cygwin@cygwin.com>
抄送: fxzxmic@outlook.com<mailto:fxzxmic@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


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Updated: setup (2.917)
  2022-01-31  5:36 ` © Fxzx mic
@ 2022-01-31  6:25   ` Marco Atzeri
  2022-01-31  6:43     ` © Fxzx mic
  0 siblings, 1 reply; 15+ messages in thread
From: Marco Atzeri @ 2022-01-31  6:25 UTC (permalink / raw)
  To: cygwin; +Cc: fxzxmic

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Updated: setup (2.917)
  2022-01-24 20:02 Jon Turney
  2022-01-27  7:28 ` Shaddy Baddah
@ 2022-01-31  5:36 ` © Fxzx mic
  2022-01-31  6:25   ` Marco Atzeri
  1 sibling, 1 reply; 15+ messages in thread
From: © Fxzx mic @ 2022-01-31  5:36 UTC (permalink / raw)
  To: cygwin

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
fxzxmic@outlook.com<mailto:fxzxmic@outlook.com>
---

发件人: Jon Turney<mailto:jon.turney@dronecode.org.uk>
发送时间: 2022年1月25日 4:04
收件人: cygwin@cygwin.com<mailto: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


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Updated: setup (2.917)
  2022-01-28 14:56   ` Jon Turney
@ 2022-01-31  3:06     ` Shaddy Baddah
  0 siblings, 0 replies; 15+ messages in thread
From: Shaddy Baddah @ 2022-01-31  3:06 UTC (permalink / raw)
  To: Jon Turney, The Cygwin Mailing List

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


^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Updated: setup (2.917)
  2022-01-27  7:28 ` Shaddy Baddah
@ 2022-01-28 14:56   ` Jon Turney
  2022-01-31  3:06     ` Shaddy Baddah
  0 siblings, 1 reply; 15+ messages in thread
From: Jon Turney @ 2022-01-28 14:56 UTC (permalink / raw)
  To: Shaddy Baddah, The Cygwin Mailing List

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.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Updated: setup (2.917)
  2022-01-24 20:02 Jon Turney
@ 2022-01-27  7:28 ` Shaddy Baddah
  2022-01-28 14:56   ` Jon Turney
  2022-01-31  5:36 ` © Fxzx mic
  1 sibling, 1 reply; 15+ messages in thread
From: Shaddy Baddah @ 2022-01-27  7:28 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* Re: [ANNOUNCEMENT] Updated: setup (2.917)
  2022-01-24 22:49 Buchbinder, Barry (NIH/NIAID) [E]
@ 2022-01-24 23:12 ` Bill Stewart
  0 siblings, 0 replies; 15+ messages in thread
From: Bill Stewart @ 2022-01-24 23:12 UTC (permalink / raw)
  To: cygwin

On Mon, Jan 24, 2022 at 3:49 PM Buchbinder, Barry (NIH/NIAID) [E] via
Cygwin <cygwin@cygwin.com> 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

^ permalink raw reply	[flat|nested] 15+ messages in thread

* RE: [ANNOUNCEMENT] Updated: setup (2.917)
@ 2022-01-24 22:49 Buchbinder, Barry (NIH/NIAID) [E]
  2022-01-24 23:12 ` Bill Stewart
  0 siblings, 1 reply; 15+ messages in thread
From: Buchbinder, Barry (NIH/NIAID) [E] @ 2022-01-24 22:49 UTC (permalink / raw)
  To: 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.

^ permalink raw reply	[flat|nested] 15+ messages in thread

* [ANNOUNCEMENT] Updated: setup (2.917)
@ 2022-01-24 20:02 Jon Turney
  2022-01-27  7:28 ` Shaddy Baddah
  2022-01-31  5:36 ` © Fxzx mic
  0 siblings, 2 replies; 15+ messages in thread
From: Jon Turney @ 2022-01-24 20:02 UTC (permalink / raw)
  To: cygwin

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.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-01-31 19:56 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25 22:33 [ANNOUNCEMENT] Updated: setup (2.917) Buchbinder, Barry (NIH/NIAID) [E]
2022-01-26  8:47 ` Adam Dinwoodie
  -- strict thread matches above, loose matches on Subject: below --
2022-01-24 22:49 Buchbinder, Barry (NIH/NIAID) [E]
2022-01-24 23:12 ` Bill Stewart
2022-01-24 20:02 Jon Turney
2022-01-27  7:28 ` Shaddy Baddah
2022-01-28 14:56   ` Jon Turney
2022-01-31  3:06     ` Shaddy Baddah
2022-01-31  5:36 ` © Fxzx mic
2022-01-31  6:25   ` Marco Atzeri
2022-01-31  6:43     ` © Fxzx mic
2022-01-31  8:20       ` Samuel Lelièvre
2022-01-31 12:13       ` Jon Turney
2022-01-31 15:46         ` Andrey Repin
2022-01-31 19:56           ` Brian Inglis

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