Archive: Force display of Help File: How To?


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


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


NSIS has an EnableWindow command, no need to use System.


oops, i'll read up on the commands a bit more i think ;) thanks for the heads up Joost

-daz


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.


Yes, that sounds right to me. Another question: is it possible to use ExecShell to open MyHelp.chm at a specific page?

JAS


Sure, just use it in the pre, show or leave function according to the place you want it to show.


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


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.


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"