将我的 QT 应用程序与 Inno Setup 中的视频/图像文件关联起来 [英] Associate my QT application with video/image files in Inno Setup

查看:20
本文介绍了将我的 QT 应用程序与 Inno Setup 中的视频/图像文件关联起来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了 QT 应用程序来查看图像/视频.我正在使用 windeployqt 部署应用程序,并使用 Inno Setup 工具创建了 setup.exe.

I have developed QT application to view image/videos. I am deploying the application using windeployqt and have created setup.exe using Inno Setup tool.

我已经实现了通过我的应用打开时显示图像的代码.

I have already implemented code to show up image when opened through my app.

现在我希望我的应用程序名称显示在 打开方式列表" 中,每当我点击图像或视频.

Now I want my application name to show up in "Open with list" whenever I click on image or video.

有没有人知道如何实现这一目标?

Has anyone idea how to achieve this?

推荐答案

基于 如何在打开方式对话框中包含应用程序 –您必须创建这样的注册表值:

Based on How to Include an Application in the Open With Dialog Box – you have to create a registry values like these:

[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:扩展 Windows 默认应用列表

For an example how to create similar registry keys, see:
Inno Setup: Extending Windows default apps list

这篇关于将我的 QT 应用程序与 Inno Setup 中的视频/图像文件关联起来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆