how to open a web page on click of button in InstallShield?

岁酱吖の 提交于 2021-02-09 20:40:17

问题


HI,

I want to open a web page on click of a button in any dialog that is created in InstallShield. I think it can be created by using custom actions but as I am new in this tool do not find the exact way to achieve this. Please help if anyone have idea for this.

Thanks.


回答1:


Like epotter mentioned, you could do the following

To open a local html file

LaunchAppAndWait( "explorer.exe", "c:\temp\readme.html", WAIT );

or to open a remote site

LaunchAppAndWait( "explorer.exe", "http://www.stackoverflow.com", WAIT );

Hope this helps!




回答2:


In the handler code for the button press, call LaunchApplication. Pass in the full path to the browser of your choice and the URL to which you want to navigate.



来源:https://stackoverflow.com/questions/1809204/how-to-open-a-web-page-on-click-of-button-in-installshield

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!