在 WindOS 7 x64 中,MSU 文件类型与 System32 文件夹下的 WUSA.exe 相关联。
我犯了一个很大的错误,把它改为Windows文件夹下的Explorer.exe。
现在,我无法永久恢复文件关联。 Always use the selected program to open this kind of file
打开方式 | 选择默认程序下的复选框被禁用。
我尝试删除注册表项 (HKCR | .msu),但没有成功。
有什么方法可以解决这个问题吗(除了重新安装 Windows)?
答案1
Windows 注册表包含所有文件关联的列表,特别是“HKEY_CLASSES_ROOT”部分。删除该条目不会解决问题,因为这会使它与任何东西都无关。我认为您需要做的是将键设置回其原始值。
顺便说一句,我从我的 Windows 7 Home Premium 电脑导出了 .MSU 密钥,它应该仍为默认值。应该可以将其放入记事本中,用 .REG 保存,然后运行它:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.msu]
@="Microsoft.System.Update.1"
[HKEY_CLASSES_ROOT\Microsoft.System.Update.1]
@="Microsoft Update Standalone Package"
"FriendlyTypeName"=hex(2):40,00,22,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,\
00,72,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,\
33,00,32,00,5c,00,77,00,75,00,73,00,61,00,2e,00,65,00,78,00,65,00,22,00,2c,\
00,2d,00,31,00,30,00,32,00,00,00
[HKEY_CLASSES_ROOT\Microsoft.System.Update.1\CurVer]
@="Microsoft.System.Update.1"
[HKEY_CLASSES_ROOT\Microsoft.System.Update.1\DefaultIcon]
@=hex(2):22,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\
00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,77,00,\
75,00,73,00,61,00,2e,00,65,00,78,00,65,00,22,00,2c,00,2d,00,31,00,30,00,31,\
00,00,00
[HKEY_CLASSES_ROOT\Microsoft.System.Update.1\shell]
[HKEY_CLASSES_ROOT\Microsoft.System.Update.1\shell\open]
[HKEY_CLASSES_ROOT\Microsoft.System.Update.1\shell\open\command]
@=hex(2):22,00,25,00,73,00,79,00,73,00,74,00,65,00,6d,00,72,00,6f,00,6f,00,74,\
00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,77,00,\
75,00,73,00,61,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,00,25,00,31,00,22,\
00,20,00,25,00,32,00,20,00,25,00,33,00,20,00,25,00,34,00,20,00,25,00,35,00,\
20,00,25,00,36,00,20,00,25,00,37,00,20,00,25,00,38,00,20,00,25,00,39,00,00,\
00