开发者

Adding custom links in action dialogs

I'm new t开发者_运维知识库o WIX and using 3.0. Can we display a link while displaying a dialog? basically i am stopping the installation when a framework version is missing. Requirement is to direct the user to some resource, below is what i did:

   <PropertyRef Id="NETFRAMEWORK10"/>
    <Condition Message="Microsoft .NET Framework Version 3.5 is missing. To download please visit **$(var.FrameworkDownload)**">
      <![CDATA[Installed OR NETFRAMEWORK10]]>
    </Condition>

Though it will display the url, obviously user can't click it or copy it? What should i do make it click-able?


This is not supported by Windows Installer. A solution is to use a prerequisite instead of a launch condition: Wix and .NET Framework (prerequisites)


There's actually Hyperlink control type in MSI. It does what you want, but it's not supported in Windows Installer 4.5 and earlier; it is supported as of version 5.0 which ships with Windows 7. (See Released Versions of Windows Installer for reference.)

You can conditionally display the text using Hyperlink control, if you're running in Windows Installer 5.0 and above; or if you're in an earlier version, display text description with a regular Button control. When user clicks the button, it opens the URL you provided (in the user's default browser).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜