
DataAnalyzer asked a question.
Launch README.HTM file in User's Default Browser
I know how to open a README.HTM file by explicitly launching IEXPLORER.EXE with LaunchApp.
However, I'd like to just launch the HTM document and let Windows open the user's default browser. How do I do that? Thanks.
Do I still have to provide a program name or do I simply pass the htm file name?
For instance, this doesn't work since it requires many other parameters:
LaunchApplication(INSTALLDIR + "Readme.htm", LAAW_OPTION_USE_SHELLEXECUTE)
What are the settings for the other parameters, or are they all "" and 0?
Thanks.
Looks like http://kb.flexerasoftware.com/selfservice/viewContent.do?externalID=Q200158 has an example you can base this on, and yes, you can pass a document file instead of an executable as the program when using the LAAW_OPTION_USE_SHELLEXECUTE flag.
function OnEnd()
string strReadme;
number nResult;
begin
strReadme = INSTALLDIR + "readme.htm";
LongPathToQuote(strReadme,TRUE);
nResult = LaunchApplication(strReadme, "", "", 0, 0, LAAW_OPTION_USE_SHELLEXECUTE);
end;