Copy the system config when updating from 32- to 64-bit NVDA#19068
Merged
Conversation
seanbudd
approved these changes
Oct 9, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Link to issue number:
Fixes #19022
Summary of the issue:
When updating frm 32-bit NVDA to 64-bit NVDA, the system config is lost.
Description of user facing changes:
The system config is retained when updating from 32- to 64-bit NVDA.
Description of developer facing changes:
None
Description of development approach:
Add a keyword-only parameter,
prefix, toconfig._setSystemConfig, which by default is set tosys.prefixso as not to break existing callers.In the installer, if
shouldCleanX86isTrueand the x86 copy has asystemConfigdirectory, useconfig._setSystemConfigto copy the 32-bit copy's system config to the 64-bit directory before deleting the 32-bit copy's directory.Testing strategy:
Installed nvda_snapshot_alpha-52864,2772fde8. Changed the user configuration, and used the "Use currently saved settings during sign-in and on secure screens (requires administrator privileges)" button to copy the config to the system profile. Checked that the expected files were in
C:\Program Files (x86)\nvda\systemConfig.Ran a launcher built from this branch. Installed NVDA. Checked that the same contents were present in
C:\Program Files\nvda\systemConfig.Performed the abovesteps, but without changing the system config, and ensured that the upgrade process worked as expected and no
systemConfigdirectory was created.Known issues with pull request:
None
Code Review Checklist: