简体   繁体   English

在NSIS自定义页面中创建超链接:不执行任何操作

[英]Creating a hyperlink in NSIS Custom Page: doesn't do anything

I am trying to place a hyperlink in one of my NSIS pages. 我试图在我的NSIS页面之一中放置超链接。

My Problem: The hyperlink doesn't open the webpage or even web browser when clicked(nothing happens) and when I hover over the link it doesn't underline. 我的问题:单击超链接时,超链接无法打开网页,甚至无法打开网络浏览器(什么都没有发生),并且当我将鼠标悬停在链接上时,超链接也不会下划线。

Am I using the hyperlink incorrectly? 我使用超链接的方式有误吗? Is a hyperlink in a NSIS page meant to underline/highlight when hovered over? 当悬停在NSIS页面上时,超链接是否意味着要加下划线/突出显示?

Can you help me get my code to create a functioning hyperlink? 您能帮我得到我的代码来创建有效的超链接吗?

${NSD_CreateLink} 218u 128u 60u 20u "Manual Installation"
Pop $R9
${NSD_OnClick} $R9 onManualInstallClick

Function onManualInstallClick
    ExecShell "open" "http://www.google.com.au" 
FunctionEnd

You forgot to pop the HWND parameter that is pushed into stack while calling the onClick callback. 您忘记了在调用onClick回调时弹出被压入堆栈的HWND参数。

Try 尝试

!define DEBUG `System::Call kernel32::OutputDebugString(ts)`
Function onManualInstallClick
    pop $0
    ${DEBUG} "Link clicked"
    ExecShell "open" "http://www.google.com.au" 
FunctionEnd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM