WiX 对话框中的可点击横幅图像
我想在我的一个 WiX 对话框上放置一个图像横幅,单击该对话框会打开一个网页以获取我们的产品支持,以防用户在安装时遇到问题。我想我知道如何打开网页,但问题是注册点击事件。有办法做到这一点吗?
根据我自己的尝试,我得出的结论是“位图”类型控件不会让您检测点击。我还有其他选择吗,比如制作一个带有图片的按钮并隐藏边框以使其看起来不错?我在这方面还没有成功。
我正在使用 WiX 3.5。
I would like to put an image banner on one of my WiX dialogs that when clicked opens a web page for our product support, in case users have trouble with the installation. I think I know how to open the web page but the problem is registering the click event. Is there a way to do this?
From my own attempts I've concluded that a "bitmap" type control won't let you detect clicks. Do I have any other options, like making a pushbutton with a picture on it and hiding the borders so it looks good? I've not been successful with this.
I'm using WiX 3.5.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为你不能用 WiX 提供的内部 MSI UI 来做你想做的事情。
您可以创建一个带有图像的按钮,但无法隐藏按钮的边框。
从 Windows Installer 4.5 开始,可以包含自定义 UI 元素,请参阅使用嵌入式 UI 供参考。另一种选择是使用外部 UI,您可以在其中将 UI 开发为常规应用程序并处理来自 MSI 的通知消息。
I think you can't do what you want with internal MSI UI for which WiX provides interface.
You can create a button with image on it but you can't hide the borders of the button.
Starting from Windows Installer 4.5, there's ability to include custom UI elements, see Using an Embedded UI for reference. Another option is using External UI, where you develop UI as a regular application and handle notification messages from MSI.