Skip to content

Re-add New > Text Document context menu item if modern Notepad is uninstalled #217

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Mystyle-48
Copy link
Contributor

@Mystyle-48 Mystyle-48 commented Apr 23, 2025

With this PR, the script will now re-add the registry keys and values to restore right-click context menu support for new text documents when modern Notepad is uninstalled.

@Mystyle-48 Mystyle-48 marked this pull request as draft May 6, 2025 16:14
@Mystyle-48 Mystyle-48 marked this pull request as ready for review May 8, 2025 19:08
@Mystyle-48 Mystyle-48 changed the title Re-add New > Text Document context menu item if Notepad is uninstalled Re-add New > Text Document context menu item if modern Notepad is uninstalled May 8, 2025
@cschneegans
Copy link
Owner

Interesting! It appears that the New > Text Document menu item had been “owned” by the classic Notepad package in the past, but is now owned by the modern Notepad package.

@cschneegans
Copy link
Owner

The label Text Document should ideally be localized, but I am not sure how to do this. The desired string is available in C:\Windows\System32\<Locale>\notepad.exe.mui, but reading it will be quite complicated and probably not worth the effort.

@Mystyle-48
Copy link
Contributor Author

The label Text Document should ideally be localized, but I am not sure how to do this. The desired string is available in C:\Windows\System32\<Locale>\notepad.exe.mui, but reading it will be quite complicated and probably not worth the effort.

I got this to work with the latest commit. It restores two more registry values from Windows 10 that use MUI registry string redirection to fetch translations from notepad.exe. Here it is in action in a Windows 11 VM set to Spanish:

VirtualBoxVM_Kafdc59mPu

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.

2 participants