【问题标题】:Associate my QT application with video/image files in Inno Setup将我的 QT 应用程序与 Inno Setup 中的视频/图像文件相关联
【发布时间】:2019-10-09 11:52:12
【问题描述】:

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

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

现在我希望我的应用程序名称在我点击图片或视频时显示在“使用列表打开”中。

有谁知道如何做到这一点?

【问题讨论】:

    标签: windows qt inno-setup windeployqt


    【解决方案1】:

    基于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

    【讨论】:

      猜你喜欢
      • 2014-12-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多