关联 .wpf 文件:
[HKEY_CLASSES_ROOT\.wpf]
@="wpffile"
[HKEY_CLASSES_ROOT\.wpf\DefaultIcon]
[HKEY_CLASSES_ROOT\.wpf\shell]
[HKEY_CLASSES_ROOT\.wpf\shell\open]
[HKEY_CLASSES_ROOT\.wpf\shell\open\command]
@="\"c:\\wpftest.exe\""
[HKEY_CLASSES_ROOT\.wpf\shell\用wpf打开]
[HKEY_CLASSES_ROOT\.wpf\shell\用wpf打开\command]
@="\"c:\\wpftest.exe\""
c:\\wpftest.exe: 替换成你的程序的路径
[HKEY_CLASSES_ROOT\.wpf]
@="wpffile"
[HKEY_CLASSES_ROOT\.wpf\DefaultIcon]
[HKEY_CLASSES_ROOT\.wpf\shell]
[HKEY_CLASSES_ROOT\.wpf\shell\open]
[HKEY_CLASSES_ROOT\.wpf\shell\open\command]
@="\"c:\\wpftest.exe\""
[HKEY_CLASSES_ROOT\.wpf\shell\用wpf打开]
[HKEY_CLASSES_ROOT\.wpf\shell\用wpf打开\command]
@="\"c:\\wpftest.exe\""
c:\\wpftest.exe: 替换成你的程序的路径