This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Launch README.HTM file in User's Default Browser
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
‎Nov 07, 2010
04:36 PM
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.
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.
(4) Replies
‎Nov 08, 2010
04:38 PM
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.
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.
‎Nov 08, 2010
04:43 PM
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.
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.
‎Nov 09, 2010
02:38 AM
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;
function OnEnd()
string strReadme;
number nResult;
begin
strReadme = INSTALLDIR + "readme.htm";
LongPathToQuote(strReadme,TRUE);
nResult = LaunchApplication(strReadme, "", "", 0, 0, LAAW_OPTION_USE_SHELLEXECUTE);
end;