Skip to content

Add --copy-portable-config command line parameter to automatically copy the portable configuration with a silent installation#9679

Merged
michaelDCurran merged 9 commits intonvaccess:masterfrom
BabbageCom:copyConfig
Nov 16, 2020
Merged

Add --copy-portable-config command line parameter to automatically copy the portable configuration with a silent installation#9679
michaelDCurran merged 9 commits intonvaccess:masterfrom
BabbageCom:copyConfig

Conversation

@LeonarddeR
Copy link
Copy Markdown
Collaborator

@LeonarddeR LeonarddeR commented Jun 6, 2019

Link to issue number:

Closes #9676

Summary of the issue:

There is currently no automated way to install NVDA silently, thereby also copying a configuration profile folder to the user account. This is currently only possible when manually installing from a portable copy.

Description of how this pull request fixes the issue:

Added a new --copy-portable-config command line argument, which is stored as a boolean. If the core module initializes and discovers that copying the portable config is hazardous (particularly when running the currently installed config), this variable is set to None. This evaluates to False in most situations. IN the gui however, we explicitly check for None in order to disable the checkbox to enable this feature.

Note that commit 7eaf961 contains changes to the formatting of several huge lines in nvda.pyw. It has no functional changes.

Testing performed:

  1. Started a portable copy, started the installation gui. Made sure that "copy the current user config" check box was unchecked.
  2. Started a portable copy with --copy-portable-config parameter, started the installation gui. Made sure that "copy the current user config" check box was checked.
  3. Started a portable copy with --copy-portable-config -c %appdata%\nvda, started the installation gui. Made sure that "copy the current user config" check box was disabled.
  4. Started a snapshot from the launcher with --copy-portable-config -c somepath. Made sure that the checkbox was enabled and checked.
  5. Started a portable copy with --copy-portable-config --install. Made sure that the configuration was successfully kopied after the installation.

Known issues with pull request:

There is no warning when --copy-portable-config is silently discarded for silent installations. I guess we really want to stay silent, and this will hardly happen.

Change log entry:

@LeonarddeR LeonarddeR requested a review from feerrenrut June 6, 2019 10:02
@LeonarddeR LeonarddeR changed the title Copy config Add --copy-portable-config command line parameter to automatically copy the portable configuration with a silent installation Jun 6, 2019
@AppVeyorBot
Copy link
Copy Markdown

PR introduces Flake8 errors 😲

See test results for Failed build of commit 6f17a6bb1a

@LeonarddeR LeonarddeR added the BabbageWork Pull requests filed on behalf of Babbage B.V. label Oct 8, 2019
@LeonarddeR
Copy link
Copy Markdown
Collaborator Author

I wrote this pull request on behalf of @BabbageCom. As I'm leaving @BabbageCom after the 29th of November, I can no longer afford maintaining this pr other than applying very basic review actions. If this pull request requires major changes, they will have to be applied by someone else.

@LeonarddeR
Copy link
Copy Markdown
Collaborator Author

I just fixed the merge conflicts of this. I think it was pretty thoroughly tested.

@AppVeyorBot
Copy link
Copy Markdown

See test results for failed build of commit 744b79dd7d

@feerrenrut feerrenrut added the Abandoned requested reports or updates are missing since more than 1 year, author or users are not available. label Aug 11, 2020
@lukaszgo1
Copy link
Copy Markdown
Contributor

Please note that this functionality has been requested once again in #11635. Since it has been well tested according to @LeonarddeR would it be possible to have this reviewed? cc @michaelDCurran @feerrenrut

@michaelDCurran michaelDCurran merged commit 93bbd21 into nvaccess:master Nov 16, 2020
@nvaccessAuto nvaccessAuto added this to the 2020.4 milestone Nov 16, 2020
feerrenrut added a commit that referenced this pull request Apr 21, 2021
Related PR #9679
Fixes #12071
Fixes #12205 

Co-authored-by: Reef Turner <reef@nvaccess.org>
feerrenrut added a commit that referenced this pull request Jun 11, 2021
Fix an issue introduced in commit 93bbd21
"Add --copy-portable-config command line parameter to automatically copy
 the portable configuration with a silent installation #9679"
feerrenrut added a commit that referenced this pull request Jun 11, 2021
Fix an issue introduced in commit 93bbd21
"Add --copy-portable-config command line parameter to automatically copy
 the portable configuration with a silent installation #9679"
feerrenrut added a commit that referenced this pull request Jun 15, 2021
Fix an issue introduced in commit 93bbd21
"Add --copy-portable-config command line parameter to automatically copy
 the portable configuration with a silent installation #9679"
@CyrilleB79 CyrilleB79 removed the Abandoned requested reports or updates are missing since more than 1 year, author or users are not available. label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

BabbageWork Pull requests filed on behalf of Babbage B.V. feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Command line parameter to copy portable configuration on silent installations

7 participants