Skip to content

Ensure NVDA updates succeed with Controlled folder Access enabled#7697

Merged
michaelDCurran merged 2 commits into
masterfrom
i7696
Nov 23, 2017
Merged

Ensure NVDA updates succeed with Controlled folder Access enabled#7697
michaelDCurran merged 2 commits into
masterfrom
i7696

Conversation

@michaelDCurran

@michaelDCurran michaelDCurran commented Oct 25, 2017

Copy link
Copy Markdown
Member

Link to issue number:

Fixes #7696

Summary of the issue:

NVDA installs fail if Windows 10's Controlled Folder Access is enabled as NVDA is unable to create the desktop shortcut.

Description of how this pull request fixes the issue:

The interactive NVDA install has always asked the user if it should create a desktop shortcut (if no previous install was detected), or to keep the existing desktop shortcut (if a previous install was detected). However, if the user had chosen to keep the existing shortcut, NVDA would still update / re-save the desktop shortcut (but keeping the shortcut key in tact).
this PR now changes installer.createShortcut so that a shortcut is only physically saved to disc if it does not already exist, or one or more of its properties differ from what the new NVDA install requires.
this means that if the user updates NVDA via NVDA's update feature, or installs via the launcher and chooses to keep the existing Desktop shortcut, the install will now succeed, even if controlled folder access is enabled.

Testing performed:

Installed NVDA on Windows 10, with and with out Controlled folder Access, and with and with out an existing desktop shortcut.

Known issues with pull request:

The install will still fail if the user installs NVDA for the first time, and chooses to create the desktop shortcut. The user can avoid the failiour by unchecking the box, if they are unwilling to disable Controlled Folder Access.

Change log entry:

Bug fixes:

  • NVDA no longer fails to update on systems with Controlled Folder Access enabled (available in the Windows 10 Fall Creaters update)

…n't exist before, or some of the properties were different.
@josephsl

josephsl commented Oct 25, 2017 via email

Copy link
Copy Markdown
Contributor

@LeonarddeR

Copy link
Copy Markdown
Collaborator

I'd like to suggest either one of the following:

  1. When a desktop short cut can't be created under the all users profile, create it under the current user. This also requires checking the existence of a desktop icon for the current user on removal of NVDA.
  2. Make the installer succeed even though the desktop icon can't be created, and present the failure as a warning, not as an entire installation failure.

@michaelDCurran

michaelDCurran commented Oct 26, 2017 via email

Copy link
Copy Markdown
Member Author

@LeonarddeR

Copy link
Copy Markdown
Collaborator

@michaelDCurran commented on 26 okt. 2017 08:05 CEST:

I'm not willing to do this part for 2017.4 as we've had enough installer
trouble.

Very well said.

@Brian1Gaff

Brian1Gaff commented Oct 26, 2017 via email

Copy link
Copy Markdown

@feerrenrut feerrenrut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be worth adding a comment pointing to the issue number saying something to the effect of "Only try to create/modify the shortcut if it is missing or the details are incorrect."

@michaelDCurran michaelDCurran merged commit 73bc01d into master Nov 23, 2017
@nvaccessAuto nvaccessAuto added this to the 2017.4 milestone Nov 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

NVDA install fails when Windows 10's Controlled Folder Access is enabled

6 participants