Skip to content
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

系统集成再次失效 (System integration failure on Win11) #367

Closed
lxgz12345 opened this issue Sep 4, 2021 · 20 comments
Closed

系统集成再次失效 (System integration failure on Win11) #367

lxgz12345 opened this issue Sep 4, 2021 · 20 comments

Comments

@lxgz12345
Copy link

【chinese】
我就是上次说系统集成失效的。
系统集成再次失效。
上次是卸载WindowsApp里面的Notepad,是能用的。
这次我更新了DEV频道的最新版22449.1000,再次失效了,但我找到了解决办法!
替换这个注册表下的子项目里的位置就可以了,“HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe”

【English from Youdao Translation】
Last time, I said the system integration failed.
System integration fails again.
Last time I uninstalled Notepad in WindowsApp, it is working.
This time I updated the latest version of the DEV channel, 22449.1000, and it failed again, but I found a solution!
Just replace the location in the subproject under the registry, “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe”

1
2
3

@zufuliu
Copy link
Owner

zufuliu commented Sep 4, 2021

Thanks, I have some questions:

  1. What's the original value for FilterFullPath?
  2. All of the FilterFullPath need been replaced with full path to Notepad2.exe?

Can you check whether adding an item 0 (space + zero), and remove existing 0,1,2 still works. see https://stackoverflow.com/questions/31964627/tortoisesvn-icons-overlay-not-showing-after-updating-to-windows-10 for why the space before number.

notepad.exe
     0
        AppExecutionAliasRedirect           REG_DWORD       1
        AppExecutionAliasRedirectPackages   REG_SZ          *
        FilterFullPath                      REG_SZ          Notepad2.exe

@zufuliu
Copy link
Owner

zufuliu commented Sep 5, 2021

Implemented by 3b27a22.

@zufuliu
Copy link
Owner

zufuliu commented Sep 5, 2021

marked as duplicate of issue #347.

@bluenlive
Copy link

Thanks you your work.
But It doesn't work in my environment.

  • Language: Korean
  • Windows 11 version: 10.0.22000.175

Registry keys were successfully changed and I rebooted my PC.
It seems something more to do...

notepad2

@zufuliu zufuliu reopened this Sep 5, 2021
@zufuliu
Copy link
Owner

zufuliu commented Sep 5, 2021

@bluenlive Thanks for the test.
@lxgz12345 can you check what is missing? is the UWP-based notepad still need be uninstalled?

@lxgz12345
Copy link
Author

谢谢,我有一些问题:

  1. 原值是做什么的?FilterFullPath
  2. 所有的需求都被完全路径替换为注释板 2.exe?FilterFullPath

您能否检查添加项目(空间 + 零)并删除现有的 0,1,2 是否仍然有效。请参阅https://stackoverflow.com/questions/31964627/tortoisesvn-icons-overlay-not-showing-after-updating-to-windows-10了解为什么数字前的空间。` 0`

notepad.exe
     0
        AppExecutionAliasRedirect           REG_DWORD       1
        AppExecutionAliasRedirectPackages   REG_SZ          *
        FilterFullPath                      REG_SZ          Notepad2.exe

【中文】
抱歉这么晚回复您。
它的原值是系统notepad的路径。
我有点记不清了,好像是“C:\windows\system32\notepad.exe”

【英语】
Sorry, I forgot to reply to you.
Its original value is the path to the system notepad.
I can't remember the Path. I think it's "C:\windows\system32\notepad.exe"

@zufuliu
Copy link
Owner

zufuliu commented Sep 10, 2021

Just some guess: sine all FilterFullPath are set to our Notepad2.exe, what about set UseFilter to 1 (Registry_SetInt(hKey, L"UseFilter", 1); in Dialogs.c), so registries changes looks like:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe
    Debugger                                REG_SZ      "Notepad2.exe" /z
    UseFilter                               REG_DWORD   1
    0
        AppExecutionAliasRedirect           REG_DWORD   1
        AppExecutionAliasRedirectPackages   REG_SZ      *
        FilterFullPath                      REG_SZ      "Notepad2.exe"
    1
        AppExecutionAliasRedirect           REG_DWORD   1
        AppExecutionAliasRedirectPackages   REG_SZ      *
        FilterFullPath                      REG_SZ      "Notepad2.exe"
    2
        AppExecutionAliasRedirect           REG_DWORD   1
        AppExecutionAliasRedirectPackages   REG_SZ      *
        FilterFullPath                      REG_SZ      "Notepad2.exe"

Maybe this change will work.

@bluenlive
Copy link

Report test result: FAILED.
Windows-internal notepad.exe is executed.

np1

np2

@zufuliu
Copy link
Owner

zufuliu commented Sep 11, 2021

@lxgz12345 Can you help to figure out why? Thanks.

@hingbong
Copy link

hingbong commented Sep 13, 2021

it seems not working on 22454.1000

@lxgz12345
Copy link
Author

它似乎不工作 22454.1000

On 22454.1000, this feature is still working
So, on 22454.1000, there is no need to modify the registry

@zufuliu
Copy link
Owner

zufuliu commented Sep 15, 2021

@lxgz12345 What means

there is no need to modify the registry

If there is no need to change UseFilter, FilterFullPath and related registries, I will revert all the changes.

zufuliu added a commit that referenced this issue Sep 17, 2021
… issue #347, #367.

Restore corresponding registry values to their initial system default value.
@zufuliu
Copy link
Owner

zufuliu commented Sep 17, 2021

Can anyone update the status? what change is really needed?🙏

@lxgz12345 lxgz12345 reopened this Sep 18, 2021
@lxgz12345
Copy link
Author

Can anyone update the status? what change is really needed?🙏
【english】
Result: You need to uninstall the UWP-based Notepad and then use “Replace the regedit” in “System Integration”.

【中文】
结果:需要卸载基于UWP的记事本,然后使用“系统集成”中的“替换注册表”即可。

Notepad 2 version: v4.21.07r3826
【english】
Result:
It still works in my computer. You need to uninstall the UWP-based Notepad and then use “Replace the regedit” in “System Integration”.

【中文】
结果:
在我的电脑里还能用。需要卸载基于UWP的记事本,然后使用“系统集成”中的“替换注册表”即可。

【My system information】
版本 Windows 11 专业版 Insider Preview
版本 Dev
安装日期 ‎2021/‎9/‎16
操作系统版本 22458.1000
体验 Windows Feature Experience Pack 1000.22458.1000.0

【My system information - from Youdao Translation】
Version Windows 11 Professional Insider Preview
Version of the Dev
Installation date astrology 2021/ astrology 9/ astrology 16
Operating system version 22458.1000
Experience Windows Feature Experience Pack 1000.22458.1000.0

@zufuliu
Copy link
Owner

zufuliu commented Sep 18, 2021

@lxgz12345 thanks.
Since Windows 11 will available on October 5, at that time there may needs other changes, so this issue can be kept open.

@zufuliu zufuliu changed the title 系统集成再次失效 (System integration failure) 系统集成再次失效 (System integration failure on Win11) Nov 20, 2021
@Yahasana
Copy link

Yahasana commented Dec 5, 2021

image
delete all subkeys 0,1,2 and set default = parth of notepad2.exe

@bluenlive
Copy link

image delete all subkeys 0,1,2 and set default = parth of notepad2.exe

Great! It Works!!!!!!!!
Thank you very much!!!

@zufuliu In my PC, It workes with following registry key!!!

  • Windows 11 Pro (Korean)
  • Version: 21H2
  • Build: 22000.348

great

@zufuliu
Copy link
Owner

zufuliu commented Dec 5, 2021

Thanks, committed changes as 872f9ec.

@zufuliu
Copy link
Owner

zufuliu commented Dec 8, 2021

It seems there will be a new notepad for Windows 11, see https://blogs.windows.com/windows-insider/2021/12/07/redesigned-notepad-for-windows-11-begins-rolling-out-to-windows-insiders/
Don't know whether above changes will works with the redesigned Notepad.

@zufuliu zufuliu closed this as completed Jan 16, 2022
@arshcaria
Copy link

arshcaria commented Feb 23, 2022

It seems there will be a new notepad for Windows 11, see https://blogs.windows.com/windows-insider/2021/12/07/redesigned-notepad-for-windows-11-begins-rolling-out-to-windows-insiders/ Don't know whether above changes will works with the redesigned Notepad.

Seems that you need to uninstall (which you can lol) the new Notepad app from Windows Settings to make it work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants