Skip to content
⌘ NSIS Forum Archive

Force display of Help File: How To?

10 posts

jaschulz#

Force display of Help File: How To?

My app requires some fairly detailed set up steps once it has been installed. I have written an HTMLHelp file to help the user through this process, and I would like to guarantee that that help file is opened once the installer finishes. However, all the options I can find in the MUI seem to allow the user of "uncheck" the "show readme" option. How can I force my help file to be displayed after the installer finishes?

JAS
DrO#
you'd need to use EnableWindow(check_wnd,0) which will block the checkbox from being changed by the user (will appear grayed out). you'd need to use the system plugin to do it

-daz
kichik#
You can also simply show the readme yourself in the leave function of the finish page. No need to give the user an option that's not really an option.
jaschulz#
Yes, that sounds right to me. Another question: is it possible to use ExecShell to open MyHelp.chm at a specific page?

JAS
kichik#
Sure, just use it in the pre, show or leave function according to the place you want it to show.
jaschulz#
Sorry, I wasn't clear about my question. I was wondering if it was possible to use ExecShell to open MyHelp.chm at one of its pages, i.e. to the "SetUp" entry of the MyHelp TOC.

JAS
Joost Verburg#
I don't think you can use ExecShell, but there might be some command line parameters for the MS HTML Help Viewer, you will have to check MSDN.
jaschulz#
In case anyone's still following this thread, the right way to open HTMLHelp to a specific page (via NSIS) is:

Exec "$WINDIR\hh.exe $INSTDIR\MyHelp.chm::/MyPage.html"