Loading
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.

  • 0_M Urman (Flexera Software)

    Use LaunchApplication with the LAAW_OPTION_USE_SHELLEXECUTE flag.
  • 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.
    Expand Post
  • 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;
    Expand Post

Loading
Launch README.HTM file in User's Default Browser