【发布时间】:2019-10-09 11:52:12
【问题描述】:
我开发了 QT 应用程序来查看图像/视频。我正在使用 windeployqt 部署应用程序,并使用 Inno Setup 工具创建了 setup.exe。
我已经实现了通过我的应用打开时显示图像的代码。
现在我希望我的应用程序名称在我点击图片或视频时显示在“使用列表打开”中。
有谁知道如何做到这一点?
【问题讨论】:
标签: windows qt inno-setup windeployqt
我开发了 QT 应用程序来查看图像/视频。我正在使用 windeployqt 部署应用程序,并使用 Inno Setup 工具创建了 setup.exe。
我已经实现了通过我的应用打开时显示图像的代码。
现在我希望我的应用程序名称在我点击图片或视频时显示在“使用列表打开”中。
有谁知道如何做到这一点?
【问题讨论】:
标签: windows qt inno-setup windeployqt
基于How to Include an Application in the Open With Dialog Box - 您必须创建如下注册表值:
[HKEY_CLASSES_ROOT\.cpp\OpenWithProgids]
"VisualStudio.cpp.14.0"=""
[HKEY_CLASSES_ROOT\VisualStudio.cpp.14.0]
@="C++ Source"
[HKEY_CLASSES_ROOT\VisualStudio.cpp.14.0\DefaultIcon]
@="C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\vcpackages\\VCProject.dll,2"
[HKEY_CLASSES_ROOT\VisualStudio.cpp.14.0\shell]
[HKEY_CLASSES_ROOT\VisualStudio.cpp.14.0\shell\Open]
[HKEY_CLASSES_ROOT\VisualStudio.cpp.14.0\shell\Open\Command]
@="\"C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\Common7\\IDE\\devenv.exe\" /dde"
有关如何创建类似注册表项的示例,请参阅:
Inno Setup: Extending Windows default apps list
【讨论】: