我正在使用Inno安装程序为我的应用程序创建一个安装文件。当右键单击Windows操作系统上的PDF文件时,我可以看到“编辑与Acrobat”菜单项:

我想为我的应用程序添加一个类似的菜单项,使其显示为“”。这可以使用Inno安装程序吗?
---------------------------------------------------------更新:
下面是我尝试在Inno安装程序中使用的注册表代码,但它不起作用:
Root: "HKCR"; Subkey: ".pdf"; ValueType: string; ValueData: "PDF_File"; Flags: uninsdeletevalue
Root: "HKCR"; Subkey: "PDF_File\shell\Edit with My PDF Editor"; ValueType: string; ValueData: """{app}\My PDF Editor.exe"" ""%1"""; Flags: uninsdeletevalue
Root: "HKCR"; Subkey: "PDF_File\DefaultIcon"; ValueType: string; ValueData: "{app}\images\my_pdf_editor_icon.ico"; Flags: uninsdeletevalue发布于 2019-11-13 20:14:04
我能够做到这一点,如果有人需要的话,我将在这里分享我的解决方案:
; Add 'My PDF Editor' menu item to the Shell menu for PDF files:
Root: "HKCR"; Subkey: "SystemFileAssociations\.pdf\shell\Edit with My PDF Editor"; ValueType: none; ValueName: ""; ValueData: ""; Flags: uninsdeletekey
; Specify icon for the menu item:
Root: "HKCR"; Subkey: "SystemFileAssociations\.pdf\shell\Edit with My PDF Editor"; ValueType: string; ValueName: "Icon"; ValueData: "{app}\images\shortcut.ico"; Flags: uninsdeletekey
; Add separator before and after the menu item:
Root: "HKCR"; Subkey: "SystemFileAssociations\.pdf\shell\Edit with My PDF Editor"; ValueType: string; ValueName: "SeparatorBefore"; ValueData: ""; Flags: uninsdeletekey
Root: "HKCR"; Subkey: "SystemFileAssociations\.pdf\shell\Edit with My PDF Editor"; ValueType: string; ValueName: "SeparatorAfter"; ValueData: ""; Flags: uninsdeletekey
; Define command for the menu item:
Root: "HKCR"; Subkey: "SystemFileAssociations\.pdf\shell\Edit with My PDF Editor\command"; ValueType: string; ValueName: ""; ValueData: """{app}\My PDF Editor.exe"" ""%1"""; Flags: uninsdeletekeyhttps://stackoverflow.com/questions/58802049
复制相似问题