如何使用 WiX 为关联文件设置图标? [英] How can I set an icon for an asscociated file using WiX?

查看:23
本文介绍了如何使用 WiX 为关联文件设置图标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序安装文件是使用 WiX 生成的.在 WiX 配置中,我关联了一个适用于应用程序的文件类型.如何在 WiX 配置中将图标与此文件类型相关联?

My application install file is being generated using WiX. In the WiX configuration I am associating a file type that works with the application. How can I associate an icon with this file type in the WiX configuration?

推荐答案

我就是这样做的.我声明:

This is how I did it. I declared:

<Icon Id="Icon.exe" SourceFile="..\Installer\Graph.ico" />

</Product>之前添加,作为参考如下:

before </Product> and added it as a reference as follows:

<ProgId Id='myApp.exe' Description='Some description' Advertise='yes' Icon='Icon.exe'>
          <Extension Id='xyz' ContentType='application/text'>
            <Verb Id='open' Sequence='10' Command='Open' Argument='"%1"' />
          </Extension>
</ProgId>

这篇关于如何使用 WiX 为关联文件设置图标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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