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

使 WPS 个人版 支持文件管理器中预览窗格 #27

Open
maboloshi opened this issue Aug 17, 2021 · 1 comment
Open

使 WPS 个人版 支持文件管理器中预览窗格 #27

maboloshi opened this issue Aug 17, 2021 · 1 comment

Comments

@maboloshi
Copy link
Owner

maboloshi commented Aug 17, 2021

使 WPS 个人版 支持文件管理器中预览窗格

WPS 专业版,*.doc,*.xls,*.ppt等文档支持 Win 文件管理器预览窗格预览。但是,个人版默认不支持预览。

创建inf文件并导入注册表项

注意:

  1. 创建并保存inf文件为ANSI编码。(Win11 默认保存为 UTF-8
  2. 根据实际情况修改WPS_PATH中 WPS 程序路径。
  3. 根据实际 WPS 的窗口管理模式情况修改窗口管理模式,默认为整合模式,可改为多组件模式。
  4. 右键安装即可。
  5. 每次更新 WPS 后,均需要再次修改路径并再次安装。
  6. 每次修改 WPS 的窗口管理模式后,均需要再次修改窗口管理模式并再次安装。

恢复 WPS 个人版的文件管理器中预览功能.inf

[Version]
Signature="$Windows NT$"

[DefaultInstall]
AddReg=WPS_AddReg

[WPS_AddReg]
HKCR,".doc\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}"
HKCR,".docm\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}"
HKCR,".docx\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}"
HKCR,".dot\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}"
HKCR,".dotx\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}"
HKCR,".rtf\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}"
HKCR,".wps\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}"
HKCR,".wpsx\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}"
HKCR,".wpt\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}"
HKCR,"WOW6432Node\CLSID\{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}",,,"WPS文字 预览器"
HKCR,"WOW6432Node\CLSID\{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}","DisplayName",,"WPS文字 预览器"
HKCR,"WOW6432Node\CLSID\{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}","DisableLowILProcessIsolation",0x10001,01,00,00,00
HKCR,"WOW6432Node\CLSID\{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}\InprocHandler32",,,"ole32.dll"
; 2019版 整合模式
HKCR,"WOW6432Node\CLSID\{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}\LocalServer32",,,"""%WPS_PATH%\wpsoffice.exe"" /prometheus /wps /Preview"
; 多组件模式 / 2016版
; HKCR,"WOW6432Node\CLSID\{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}\LocalServer32",,,"""%WPS_PATH%\wps.exe"" /Preview"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\PreviewHandlers","{0C7FEF07-DCD9-4120-9647-D1CE32F289CD}",,"WPS文字 预览器"

HKCR,".csv\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{E260F96C-8EF4-4C24-A2B9-455F1D116531}"
HKCR,".et\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{E260F96C-8EF4-4C24-A2B9-455F1D116531}"
HKCR,".ett\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{E260F96C-8EF4-4C24-A2B9-455F1D116531}"
HKCR,".etx\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{E260F96C-8EF4-4C24-A2B9-455F1D116531}"
HKCR,".xls\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{E260F96C-8EF4-4C24-A2B9-455F1D116531}"
HKCR,".xlsb\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{E260F96C-8EF4-4C24-A2B9-455F1D116531}"
HKCR,".xlsm\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{E260F96C-8EF4-4C24-A2B9-455F1D116531}"
HKCR,".xlsx\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{E260F96C-8EF4-4C24-A2B9-455F1D116531}"
HKCR,".xlt\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{E260F96C-8EF4-4C24-A2B9-455F1D116531}"
HKCR,".xltx\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{E260F96C-8EF4-4C24-A2B9-455F1D116531}"
HKCR,"WOW6432Node\CLSID\{E260F96C-8EF4-4C24-A2B9-455F1D116531}",,,"WPS表格 预览器"
HKCR,"WOW6432Node\CLSID\{E260F96C-8EF4-4C24-A2B9-455F1D116531}","DisplayName",,"WPS表格 预览器"
HKCR,"WOW6432Node\CLSID\{E260F96C-8EF4-4C24-A2B9-455F1D116531}","DisableLowILProcessIsolation",0x10001,01,00,00,00
HKCR,"WOW6432Node\CLSID\{E260F96C-8EF4-4C24-A2B9-455F1D116531}\InprocHandler32",,,"ole32.dll"
; 2019版 整合模式
HKCR,"WOW6432Node\CLSID\{E260F96C-8EF4-4C24-A2B9-455F1D116531}\LocalServer32",,,"""%WPS_PATH%\wpsoffice.exe"" /prometheus /et /Preview"
; 多组件模式 / 2016版
; HKCR,"WOW6432Node\CLSID\{E260F96C-8EF4-4C24-A2B9-455F1D116531}\LocalServer32",,,"""%WPS_PATH%\et.exe"" /Preview"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\PreviewHandlers","{E260F96C-8EF4-4C24-A2B9-455F1D116531}",,"WPS表格 预览器"

HKCR,".dps\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}"
HKCR,".dpt\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}"
HKCR,".pot\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}"
HKCR,".potx\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}"
HKCR,".pps\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}"
HKCR,".ppsx\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}"
HKCR,".ppt\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}"
HKCR,".pptx\ShellEx\{8895b1c6-b41f-4c1c-a562-0d564250836f}",,,"{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}"
HKCR,"WOW6432Node\CLSID\{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}",,,"WPS演示 预览器"
HKCR,"WOW6432Node\CLSID\{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}","DisplayName",,"WPS演示 预览器"
HKCR,"WOW6432Node\CLSID\{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}","DisableLowILProcessIsolation",0x10001,01,00,00,00
HKCR,"WOW6432Node\CLSID\{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}\InprocHandler32",,,"ole32.dll"
; 2019版 整合模式
HKCR,"WOW6432Node\CLSID\{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}\LocalServer32",,,"""%WPS_PATH%\wpsoffice.exe"" /prometheus /wpp /Preview"
; 多组件模式 / 2016版
; HKCR,"WOW6432Node\CLSID\{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}\LocalServer32",,,"""%WPS_PATH%\wpp.exe"" /Preview"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\PreviewHandlers","{A1BBCFD9-B54C-443D-BC56-0BC3840120DB}",,"WPS演示 预览器"

[Strings]
WPS_PATH = "C:\Program Files (x86)\Kingsoft\WPS Office\11.8.2.12014\office6"
@maboloshi maboloshi changed the title 恢复 WPS 2019 文件管理器预览窗格 使 WPS 个人版 支持文件管理器中预览窗格 Apr 29, 2023
@talentsjj
Copy link

可以预览了,但是预览窗口不能实现复制功能,office在预览窗口里直接用鼠标选择内容就可以复制。wps可否实现?

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

No branches or pull requests

2 participants