cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
DataAnalyzer
Level 8

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.
Labels (1)
0 Kudos
(4) Replies
MichaelU
Level 12 Flexeran
Level 12 Flexeran

Use LaunchApplication with the LAAW_OPTION_USE_SHELLEXECUTE flag.
0 Kudos
DataAnalyzer
Level 8

It would be helpful if you could provide the exact line of code to do this.

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.
0 Kudos
MichaelU
Level 12 Flexeran
Level 12 Flexeran

http://kb.flexerasoftware.com/doc/Helpnet/installshield14langref/LaunchApplication.htm

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.
0 Kudos
DataAnalyzer
Level 8

This is what seems to work for launching our README.HTM file after the installation program completes successfully:

function OnEnd()
string strReadme;
number nResult;
begin
strReadme = INSTALLDIR + "readme.htm";
LongPathToQuote(strReadme,TRUE);
nResult = LaunchApplication(strReadme, "", "", 0, 0, LAAW_OPTION_USE_SHELLEXECUTE);
end;
0 Kudos