网上解决方案很多,其实拿程序直接删除LocalMachine\\SOFTWARE\\Microsoft\\Shared Tools\\Text Converters\\Import\\MSWord6.wpc项就可以了
首先引用using Microsoft.Win32;
![](https://images.cnblogs.com/OutliningIndicators/ContractedBlock.gif)
1 // <summary>
2 /// 删除那个注册表项(容易让word程序出错的:word无法启动转换器mswrd632 wpc)
3 /// 定位到HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Text Converters\Import\MSWord6.wpc,
4 /// 单击右键,在编辑菜单点击“删除”键,单击Yes,退出注册表编辑器,即可。
5 /// </summary>
6 public static void deleteRegeditItem()
7 {
8 try
9 {
10 RegistryKey key = Registry.LocalMachine;
11 //删除
12 key.DeleteSubKey("SOFTWARE\\Microsoft\\Shared Tools\\Text Converters\\Import\\MSWord6.wpc", true);
13 //关闭
14 key.Close();
15 }
16 catch
17 { }
18 }
2 /// 删除那个注册表项(容易让word程序出错的:word无法启动转换器mswrd632 wpc)
3 /// 定位到HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shared Tools\Text Converters\Import\MSWord6.wpc,
4 /// 单击右键,在编辑菜单点击“删除”键,单击Yes,退出注册表编辑器,即可。
5 /// </summary>
6 public static void deleteRegeditItem()
7 {
8 try
9 {
10 RegistryKey key = Registry.LocalMachine;
11 //删除
12 key.DeleteSubKey("SOFTWARE\\Microsoft\\Shared Tools\\Text Converters\\Import\\MSWord6.wpc", true);
13 //关闭
14 key.Close();
15 }
16 catch
17 { }
18 }